Class FileImporterContext.Builder
java.lang.Object
org.nuxeo.ecm.platform.filemanager.api.FileImporterContext.Builder
- Enclosing class:
- FileImporterContext
-
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 TypeMethodDescriptionbuild()
bypassAllowedSubtypeCheck
(boolean bypassAllowedSubtypeCheck) Whether to bypass the allowed subtype check.excludeOneToMany
(boolean excludeOneToMany) Whether to exclude the importers creating more than one document for the given blob when selecting the importer.Overrides the file name from the givenblob
.mimeTypeCheck
(boolean mimeTypeCheck) Whether to check the blob's mime-type against the file name.overwrite
(boolean overwrite) Whether to overwrite an existing file with the same title.persistDocument
(boolean persistDocument) Whether to persist the created or updated document.
-
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
-
Builder
-
-
Method Details
-
fileName
Overrides the file name from the givenblob
. -
overwrite
Whether to overwrite an existing file with the same title.Defaults to
false
. -
mimeTypeCheck
Whether to check the blob's mime-type against the file name.Defaults to
true
. -
excludeOneToMany
Whether to exclude the importers creating more than one document for the given blob when selecting the importer.Defaults to
false
. -
persistDocument
Whether to persist the created or updated document.If the document is not persisted, it's the caller's responsibility to persist it.
Defaults to
true
. -
bypassAllowedSubtypeCheck
Whether to bypass the allowed subtype check.Defaults to
false
.- Since:
- 11.3
-
build
-