Interface IFileHosting
- All Known Subinterfaces:
IInternalBMFileSystem
@Path("/filehosting/{domainUid}")
public interface IFileHosting
-
Method Summary
Modifier and TypeMethodDescriptionvoidDeletes a documentbooleanChecks if a file existsFinds items in the file hosting repositorynet.bluemind.core.api.StreamRetrieves a document from the file hosting repositoryRetrieves the configurationinfo()Retrieves informations about the filehosting implementationLists files and folders.Retrieves a public URL to the document in the file hosting repositoryvoidUpdate/insert a documentstoreAndShare(String path, Integer downloadLimit, String expirationDate, net.bluemind.core.api.Stream document) Store a document and retrieves a public URL to the document in the file hosting repositoryvoidRemove a public link
-
Method Details
-
getConfiguration
@GET @Path("_config") Configuration getConfiguration() throws net.bluemind.core.api.fault.ServerFaultRetrieves the configuration- Returns:
- the Filehosting service configuration
- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
list
@GET @Path("_list") List<FileHostingItem> list(@QueryParam("path") String path) throws net.bluemind.core.api.fault.ServerFault Lists files and folders. The listing contains only non-recursive items- Parameters:
path- the folder path- Returns:
- the files and folders found under this path
- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
find
@GET @Path("_find") List<FileHostingItem> find(@QueryParam("query") String query) throws net.bluemind.core.api.fault.ServerFault Finds items in the file hosting repository- Parameters:
query- the query. The format of the query is repository dependent- Returns:
- all items matching the query
- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
exists
@GET @Path("{path}/_exists") boolean exists(@PathParam("path") String path) throws net.bluemind.core.api.fault.ServerFault Checks if a file exists- Parameters:
path- the relative path to the document- Returns:
- true if the file exists, false otherwise
- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
get
@GET @Path("{path}/_content") net.bluemind.core.api.Stream get(@PathParam("path") String path) throws net.bluemind.core.api.fault.ServerFault Retrieves a document from the file hosting repository- Parameters:
path- the relative path to the document- Returns:
- the document data
- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
store
@PUT @Path("{path}") void store(@PathParam("path") String path, net.bluemind.core.api.Stream document) throws net.bluemind.core.api.fault.ServerFault Update/insert a document- Parameters:
path- the relative path in the file hosting repositorydocument- the document data- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
delete
@DELETE @Path("{path}") void delete(@PathParam("path") String path) throws net.bluemind.core.api.fault.ServerFault Deletes a document- Parameters:
path- the relative path in the file hosting repository- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-
info
Retrieves informations about the filehosting implementation- Throws:
net.bluemind.core.api.fault.ServerFault- common error object
-