public interface IFileHostingService
| Modifier and Type | Method and Description | 
|---|---|
void | 
delete(SecurityContext context,
      java.lang.String path)
Deletes a document 
 | 
boolean | 
exists(SecurityContext context,
      java.lang.String path)
Checks if a file exists 
 | 
java.util.List<FileHostingItem> | 
find(SecurityContext context,
    java.lang.String query)
Finds items in the file hosting repository 
 | 
Stream | 
get(SecurityContext context,
   java.lang.String path)
Retrieves a document from the file hosting repository 
 | 
FileHostingItem | 
getComplete(SecurityContext context,
           java.lang.String uid)
Deprecated.  
 | 
Stream | 
getSharedFile(SecurityContext context,
             java.lang.String uid)
Deprecated.  
 | 
FileHostingInfo | 
info(SecurityContext context)
Retrieves informations about the filehosting implementation 
 | 
default boolean | 
isDefaultImplementation()  | 
java.util.List<FileHostingItem> | 
list(SecurityContext context,
    java.lang.String path)
Lists files and folders. 
 | 
FileHostingPublicLink | 
share(SecurityContext context,
     java.lang.String path,
     java.lang.Integer downloadLimit,
     java.lang.String expirationDate)
Retrieves a public URL to the document in the file hosting repository 
 | 
void | 
store(SecurityContext context,
     java.lang.String path,
     Stream document)
Update/insert a document 
 | 
default boolean | 
supports(SecurityContext context)
Checks, if filehosting operations are available using the provided context 
 | 
void | 
unShare(SecurityContext context,
       java.lang.String url)
Remove a public link 
 | 
default boolean isDefaultImplementation()
default boolean supports(SecurityContext context)
context - java.util.List<FileHostingItem> list(SecurityContext context, java.lang.String path) throws ServerFault
path - the folder pathServerFaultjava.util.List<FileHostingItem> find(SecurityContext context, java.lang.String query) throws ServerFault
query - the query. The format of the query is repository dependentServerFaultStream get(SecurityContext context, java.lang.String path) throws ServerFault
path - the relative path to the documentServerFaultboolean exists(SecurityContext context, java.lang.String path) throws ServerFault
path - the relative path to the documentServerFault - common error objectFileHostingPublicLink share(SecurityContext context, java.lang.String path, java.lang.Integer downloadLimit, java.lang.String expirationDate) throws ServerFault
path - the relative path to the documentdownloadLimit - the number of times the file can be downloaded, <= 0 if
                       unlimitedexpirationDate - a ISO-8601 compliant date, null otherwiseServerFaultvoid unShare(SecurityContext context, java.lang.String url) throws ServerFault
context - the securityContexturl - the share urlServerFaultvoid store(SecurityContext context, java.lang.String path, Stream document) throws ServerFault
path - the relative path in the file hosting repositorydocument - the document dataServerFaultvoid delete(SecurityContext context, java.lang.String path) throws ServerFault
path - the relative path in the file hosting repositoryServerFault@Deprecated FileHostingItem getComplete(SecurityContext context, java.lang.String uid) throws ServerFault
uid - the entity uidServerFault@GET
 @Path(value="{path}/_public")
 @Deprecated
Stream getSharedFile(SecurityContext context,
                                                                      java.lang.String uid)
                                                               throws ServerFault
uid - the document uidServerFault@GET @Path(value="_info") FileHostingInfo info(SecurityContext context) throws ServerFault
ServerFaultCopyright © 2021. All Rights Reserved.