public interface FileManager
File Manager to handle file
| Modifier and Type | Method and Description |
|---|---|
DocumentModel |
createDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullName)
Deprecated.
since 10.10. Use
createOrUpdateDocument(FileImporterContext) instead. |
DocumentModel |
createDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullName,
boolean noMimeTypeCheck)
Deprecated.
since 10.10. Use
createOrUpdateDocument(FileImporterContext) instead. |
default DocumentModel |
createFolder(CoreSession documentManager,
String fullname,
String path)
Deprecated.
since 9.1, use
createFolder(CoreSession, String, String, boolean) instead |
DocumentModel |
createFolder(CoreSession documentManager,
String fullname,
String path,
boolean overwrite)
Creates a Folder.
|
DocumentModel |
createOrUpdateDocument(FileImporterContext context)
Returns a created or updated document based on the given
context. |
boolean |
doVersioningAfterAdd()
Deprecated.
since 9.1 automatic versioning is now handled at versioning service level, remove versioning
behaviors from importers
|
List<DocumentLocation> |
findExistingDocumentWithFile(CoreSession documentManager,
String path,
String digest,
NuxeoPrincipal 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(NuxeoPrincipal 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()
Deprecated.
since 9.1 automatic versioning is now handled at versioning service level, remove versioning
behaviors from importers
|
boolean |
isDigestComputingEnabled() |
boolean |
isUnicityEnabled() |
DocumentModel |
updateDocumentFromBlob(CoreSession documentManager,
Blob input,
String path,
String fullName)
Deprecated.
since 10.10. Not used.
|
@Deprecated DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite, String fullName) throws IOException
createOrUpdateDocument(FileImporterContext) instead.input - the blob containing the content and the mime typepath - the path were to create the documentoverwrite - whether to overwrite an existing file with the same title or notfullName - the fullname that contains the filenameIOException@Deprecated DocumentModel createDocumentFromBlob(CoreSession documentManager, Blob input, String path, boolean overwrite, String fullName, boolean noMimeTypeCheck) throws IOException
createOrUpdateDocument(FileImporterContext) instead.input - the blob containing the content and the mime typepath - the path were to create the documentoverwrite - whether to overwrite an existing file with the same title or notfullName - the fullname that contains the filenamenoMimeTypeCheck - true if the blob's mime-type doesn't have to be checked against fullNameIOExceptionDocumentModel createOrUpdateDocument(FileImporterContext context) throws IOException
context.
The document may not be persisted according to FileImporterContext.isPersistDocument(). That's the
caller's responsibility to actually persist the document.
Note that file importers may not use FileImporterContext.isPersistDocument() and always persist the
document.
IOExceptionFileImporterContext@Deprecated DocumentModel updateDocumentFromBlob(CoreSession documentManager, Blob input, String path, String fullName)
input - the blob containing the content and the mime typepath - the path to the file to updatefullName - the full name that contains the filename@Deprecated default DocumentModel createFolder(CoreSession documentManager, String fullname, String path) throws IOException
createFolder(CoreSession, String, String, boolean) insteadfullname - the full name of the folderpath - the path were to create the folderIOExceptionDocumentModel createFolder(CoreSession documentManager, String fullname, String path, boolean overwrite) throws IOException
fullname - the full name of the folderpath - the path were to create the folderoverwrite - whether to overwrite an existing folder with the same title or notIOExceptionDocumentModelList getCreationContainers(NuxeoPrincipal principal, String docType)
DocumentModelList getCreationContainers(CoreSession documentManager, String docType)
List<DocumentLocation> findExistingDocumentWithFile(CoreSession documentManager, String path, String digest, NuxeoPrincipal principal)
boolean isUnicityEnabled()
String getDigestAlgorithm()
boolean isDigestComputingEnabled()
@Deprecated VersioningOption getVersioningOption()
@Deprecated boolean doVersioningAfterAdd()
Copyright © 2019 Nuxeo. All rights reserved.