| 
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.nuxeo.ecm.platform.filemanager.ejb.FileManagerBean
public class FileManagerBean
File Manager bean.
EJB Facade on the file manager service.
| Constructor Summary | |
|---|---|
FileManagerBean()
 | 
|
| Method Summary | |
|---|---|
 String | 
computeDigest(Blob blob)
 | 
 DocumentModel | 
createDocumentFromBlob(CoreSession documentManager,
                       Blob input,
                       String path,
                       boolean overwrite,
                       String fullName)
Returns an initialized doc based on a given blob.  | 
 DocumentModel | 
createFolder(CoreSession documentManager,
             String fullname,
             String path)
Creates a Folder.  | 
 List<DocumentLocation> | 
findExistingDocumentWithFile(CoreSession documentManager,
                             String path,
                             String digest,
                             Principal principal)
 | 
 DocumentModelList | 
getCreationContainers(CoreSession documentManager,
                      String docType)
Returns the list of document that are to be suggested to the principal of documentManager as a candidate container for a new document of type docType.  | 
 DocumentModelList | 
getCreationContainers(Principal principal,
                      String docType)
Returns the list of document that are to be suggested to principalName as a candidate container for a new document of type docType on all registered repositories.  | 
 String | 
getDigestAlgorithm()
 | 
 List<String> | 
getFields()
 | 
 boolean | 
isDigestComputingEnabled()
 | 
 boolean | 
isUnicityEnabled()
 | 
 DocumentModel | 
updateDocumentFromBlob(CoreSession documentManager,
                       Blob input,
                       String path,
                       String fullName)
Just applies the same actions as creation but does not changes the doc type.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public FileManagerBean()
| Method Detail | 
|---|
public DocumentModel createDocumentFromBlob(CoreSession documentManager,
                                            Blob input,
                                            String path,
                                            boolean overwrite,
                                            String fullName)
                                     throws ClientException
FileManager
createDocumentFromBlob in interface FileManagerinput - the blob containing the content and the mime typepath - the path were to create the documentoverwrite - boolean how decide to overwrite or notfullName - the fullname that contains the filename
ClientException
public DocumentModel updateDocumentFromBlob(CoreSession documentManager,
                                            Blob input,
                                            String path,
                                            String fullName)
                                     throws ClientException
FileManager
updateDocumentFromBlob in interface FileManagerinput - the blob containing the content and the mime typepath - the path to the file to updatefullName - the full name that contains the filename
ClientException
public DocumentModel createFolder(CoreSession documentManager,
                                  String fullname,
                                  String path)
                           throws ClientException
FileManager
createFolder in interface FileManagerfullname - the full name of the folderpath - the path were to create the folder
ClientException
public String computeDigest(Blob blob)
                     throws ClientException,
                            NoSuchAlgorithmException,
                            IOException
computeDigest in interface FileManagerClientException
NoSuchAlgorithmException
IOException
public List<String> getFields()
                       throws ClientException
getFields in interface FileManagerClientException
public boolean isUnicityEnabled()
                         throws ClientException
isUnicityEnabled in interface FileManagerClientException
public List<DocumentLocation> findExistingDocumentWithFile(CoreSession documentManager,
                                                           String path,
                                                           String digest,
                                                           Principal principal)
                                                    throws ClientException
findExistingDocumentWithFile in interface FileManagerClientException
public DocumentModelList getCreationContainers(Principal principal,
                                               String docType)
                                        throws Exception
FileManager
getCreationContainers in interface FileManagerException
public DocumentModelList getCreationContainers(CoreSession documentManager,
                                               String docType)
                                        throws Exception
FileManager
getCreationContainers in interface FileManagerExceptionpublic String getDigestAlgorithm()
getDigestAlgorithm in interface FileManagerpublic boolean isDigestComputingEnabled()
isDigestComputingEnabled in interface FileManager
  | 
Nuxeo Enterprise Platform 5.3 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||