public interface FileManager
File Manager to handle file
| Modifier and Type | Method and Description |
|---|---|
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.
|
boolean |
doVersioningAfterAdd()
Checks whether versioning should also be applied after a document is
added.
|
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() |
VersioningOption |
getVersioningOption()
Gets the versioning applied on an overwritten document before it is
overwritten.
|
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.
|
DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite, String fullName) throws 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 filenameExceptionDocumentModel updateDocumentFromBlob(CoreSession documentManager, Blob input, String path, String fullName) throws Exception
input - the blob containing the content and the mime typepath - the path to the file to updatefullName - the full name that contains the filenameExceptionDocumentModel createFolder(CoreSession documentManager, String fullname, String path) throws Exception
fullname - the full name of the folderpath - the path were to create the folderExceptionDocumentModelList getCreationContainers(Principal principal, String docType) throws Exception
ExceptionDocumentModelList getCreationContainers(CoreSession documentManager, String docType) throws Exception
ExceptionString computeDigest(Blob blob) throws ClientException, NoSuchAlgorithmException, IOException
List<DocumentLocation> findExistingDocumentWithFile(CoreSession documentManager, String path, String digest, Principal principal) throws ClientException
ClientExceptionboolean isUnicityEnabled()
throws ClientException
ClientExceptionList<String> getFields() throws ClientException
ClientExceptionString getDigestAlgorithm()
boolean isDigestComputingEnabled()
VersioningOption getVersioningOption()
boolean doVersioningAfterAdd()
Copyright © 2013 Nuxeo SA. All Rights Reserved.