Class FileImporterContext
java.lang.Object
org.nuxeo.ecm.platform.filemanager.api.FileImporterContext
Class containing everything needed to create or update a document from a
Blob
with the FileManager
.- Since:
- 10.10
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprotected final Blob
protected boolean
protected boolean
protected String
protected boolean
protected boolean
protected final String
protected boolean
protected final CoreSession
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileImporterContext.Builder
builder
(CoreSession session, Blob blob, String parentPath) getBlob()
boolean
boolean
boolean
boolean
boolean
-
Field Details
-
session
-
blob
-
parentPath
-
fileName
-
overwrite
protected boolean overwrite -
mimeTypeCheck
protected boolean mimeTypeCheck -
excludeOneToMany
protected boolean excludeOneToMany -
persistDocument
protected boolean persistDocument -
bypassAllowedSubtypeCheck
protected boolean bypassAllowedSubtypeCheck
-
-
Constructor Details
-
FileImporterContext
-
-
Method Details
-
builder
public static FileImporterContext.Builder builder(CoreSession session, Blob blob, String parentPath) -
getSession
-
getBlob
-
getParentPath
-
getFileName
-
isOverwrite
public boolean isOverwrite() -
isMimeTypeCheck
public boolean isMimeTypeCheck() -
isExcludeOneToMany
public boolean isExcludeOneToMany() -
isPersistDocument
public boolean isPersistDocument() -
isBypassAllowedSubtypeCheck
public boolean isBypassAllowedSubtypeCheck()- Since:
- 11.3
-