|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface FileManager
File Manager.
File Manager to handle file
Method Summary | |
---|---|
java.lang.String |
computeDigest(Blob blob)
|
DocumentModel |
createDocumentFromBlob(CoreSession documentManager,
Blob input,
java.lang.String path,
boolean overwrite,
java.lang.String fullName)
Returns an initialized doc based on a given blob. |
DocumentModel |
createFolder(CoreSession documentManager,
java.lang.String fullname,
java.lang.String path)
Creates a Folder. |
java.util.List<DocumentLocation> |
findExistingDocumentWithFile(CoreSession documentManager,
java.lang.String path,
java.lang.String digest,
java.security.Principal principal)
|
DocumentModelList |
getCreationContainers(CoreSession documentManager,
java.lang.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(java.security.Principal principal,
java.lang.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. |
java.lang.String |
getDigestAlgorithm()
|
java.util.List<java.lang.String> |
getFields()
|
boolean |
isDigestComputingEnabled()
|
boolean |
isUnicityEnabled()
|
DocumentModel |
updateDocumentFromBlob(CoreSession documentManager,
Blob input,
java.lang.String path,
java.lang.String fullName)
Just applies the same actions as creation but does not changes the doc type. |
Method Detail |
---|
DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, java.lang.String path, boolean overwrite, java.lang.String fullName) throws java.lang.Exception
input
- 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
java.lang.Exception
DocumentModel updateDocumentFromBlob(CoreSession documentManager, Blob input, java.lang.String path, java.lang.String fullName) throws java.lang.Exception
input
- the blob containing the content and the mime typepath
- the path to the file to updatefullName
- the full name that contains the filename
java.lang.Exception
DocumentModel createFolder(CoreSession documentManager, java.lang.String fullname, java.lang.String path) throws java.lang.Exception
fullname
- the full name of the folderpath
- the path were to create the folder
java.lang.Exception
DocumentModelList getCreationContainers(java.security.Principal principal, java.lang.String docType) throws java.lang.Exception
java.lang.Exception
DocumentModelList getCreationContainers(CoreSession documentManager, java.lang.String docType) throws java.lang.Exception
java.lang.Exception
java.lang.String computeDigest(Blob blob) throws ClientException, java.security.NoSuchAlgorithmException, java.io.IOException
ClientException
java.security.NoSuchAlgorithmException
java.io.IOException
java.util.List<DocumentLocation> findExistingDocumentWithFile(CoreSession documentManager, java.lang.String path, java.lang.String digest, java.security.Principal principal) throws ClientException
ClientException
boolean isUnicityEnabled() throws ClientException
ClientException
java.util.List<java.lang.String> getFields() throws ClientException
ClientException
java.lang.String getDigestAlgorithm()
boolean isDigestComputingEnabled()
|
Nuxeo Enterprise Platform 5.4 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |