public class FileSystemFileHostingService extends java.lang.Object implements IFileHostingService, IInternalBMFileSystem
| Modifier and Type | Field and Description | 
|---|---|
static java.lang.String | 
DEFAULT_STORE_PATH  | 
| Constructor and Description | 
|---|
FileSystemFileHostingService()  | 
| Modifier and Type | Method and Description | 
|---|---|
int | 
cleanup(int retentionTimeInDays,
       java.lang.String domainUid)  | 
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)
Retrieves an entity from the file hosting repository 
 | 
Stream | 
getSharedFile(SecurityContext context,
             java.lang.String uid)
Retrieves a document from the file hosting repository by its public uid 
 | 
java.util.List<java.lang.String> | 
getShareUidsByPath(java.lang.String path)  | 
FileHostingInfo | 
info(SecurityContext context)
Retrieves informations about the filehosting implementation 
 | 
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 
 | 
void | 
unShare(SecurityContext context,
       java.lang.String url)
Remove a public link 
 | 
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitsupportspublic static final java.lang.String DEFAULT_STORE_PATH
public java.util.List<FileHostingItem> list(SecurityContext context, java.lang.String path) throws ServerFault
IFileHostingServicelist in interface IFileHostingServicepath - the folder pathServerFaultpublic java.util.List<FileHostingItem> find(SecurityContext context, java.lang.String query) throws ServerFault
IFileHostingServicefind in interface IFileHostingServicequery - the query. The format of the query is repository dependentServerFaultpublic Stream get(SecurityContext context, java.lang.String path) throws ServerFault
IFileHostingServiceget in interface IFileHostingServicepath - the relative path to the documentServerFaultpublic boolean exists(SecurityContext context, java.lang.String path) throws ServerFault
IFileHostingServiceexists in interface IFileHostingServicepath - the relative path to the documentServerFault - common error objectpublic Stream getSharedFile(SecurityContext context, java.lang.String uid) throws ServerFault
IFileHostingServicegetSharedFile in interface IFileHostingServiceuid - the document uidServerFaultpublic FileHostingItem getComplete(SecurityContext context, java.lang.String uid) throws ServerFault
IFileHostingServicegetComplete in interface IFileHostingServiceuid - the entity uidServerFaultpublic FileHostingPublicLink share(SecurityContext context, java.lang.String path, java.lang.Integer downloadLimit, java.lang.String expirationDate) throws ServerFault
IFileHostingServiceshare in interface IFileHostingServicepath - the relative path to the documentdownloadLimit - the number of times the file can be downloaded, <= 0 if
                       unlimitedexpirationDate - a ISO-8601 compliant date, null otherwiseServerFaultpublic void unShare(SecurityContext context, java.lang.String url) throws ServerFault
IFileHostingServiceunShare in interface IFileHostingServicecontext - the securityContexturl - the share urlServerFaultpublic void store(SecurityContext context, java.lang.String path, Stream document) throws ServerFault
IFileHostingServicestore in interface IFileHostingServicepath - the relative path in the file hosting repositorydocument - the document dataServerFaultpublic void delete(SecurityContext context, java.lang.String path) throws ServerFault
IFileHostingServicedelete in interface IFileHostingServicepath - the relative path in the file hosting repositoryServerFaultpublic int cleanup(int retentionTimeInDays,
                   java.lang.String domainUid)
            throws java.lang.Exception
java.lang.Exceptionpublic FileHostingInfo info(SecurityContext context) throws ServerFault
IFileHostingServiceinfo in interface IFileHostingServiceServerFaultpublic boolean isDefaultImplementation()
isDefaultImplementation in interface IFileHostingServicepublic java.util.List<java.lang.String> getShareUidsByPath(java.lang.String path)
                                                    throws ServerFault
getShareUidsByPath in interface IInternalBMFileSystemServerFaultCopyright © 2023. All Rights Reserved.