Package net.bluemind.filehosting.api
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 repositoryRetrieves 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 documentvoidRemove a public link
-
Method Details
-
getConfiguration
Retrieves the configuration- Returns:
- the Filehosting service configuration
- Throws:
ServerFault- common error object
-
list
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:
ServerFault- common error object
-
find
@GET @Path("_find") List<FileHostingItem> find(@QueryParam("query") String query) throws 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:
ServerFault- common error object
-
exists
Checks if a file exists- Parameters:
path- the relative path to the document- Returns:
- true if the file exists, false otherwise
- Throws:
ServerFault- common error object
-
get
Retrieves a document from the file hosting repository- Parameters:
path- the relative path to the document- Returns:
- the document data
- Throws:
ServerFault- common error object
-
store
Update/insert a document- Parameters:
path- the relative path in the file hosting repositorydocument- the document data- Throws:
ServerFault- common error object
-
delete
Deletes a document- Parameters:
path- the relative path in the file hosting repository- Throws:
ServerFault- common error object
-
info
Retrieves informations about the filehosting implementation- Throws:
ServerFault- common error object
-