Class FileImporterContext
- java.lang.Object
-
- org.nuxeo.ecm.platform.filemanager.api.FileImporterContext
-
public class FileImporterContext extends Object
Class containing everything needed to create or update a document from aBlobwith theFileManager.- Since:
- 10.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classFileImporterContext.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Blobblobprotected booleanbypassAllowedSubtypeCheckprotected booleanexcludeOneToManyprotected StringfileNameprotected booleanmimeTypeCheckprotected booleanoverwriteprotected StringparentPathprotected booleanpersistDocumentprotected CoreSessionsession
-
Constructor Summary
Constructors Modifier Constructor Description protectedFileImporterContext(FileImporterContext.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileImporterContext.Builderbuilder(CoreSession session, Blob blob, String parentPath)BlobgetBlob()StringgetFileName()StringgetParentPath()CoreSessiongetSession()booleanisBypassAllowedSubtypeCheck()booleanisExcludeOneToMany()booleanisMimeTypeCheck()booleanisOverwrite()booleanisPersistDocument()
-
-
-
Field Detail
-
session
protected final CoreSession session
-
blob
protected final Blob blob
-
parentPath
protected final String parentPath
-
fileName
protected String fileName
-
overwrite
protected boolean overwrite
-
mimeTypeCheck
protected boolean mimeTypeCheck
-
excludeOneToMany
protected boolean excludeOneToMany
-
persistDocument
protected boolean persistDocument
-
bypassAllowedSubtypeCheck
protected boolean bypassAllowedSubtypeCheck
-
-
Constructor Detail
-
FileImporterContext
protected FileImporterContext(FileImporterContext.Builder builder)
-
-
Method Detail
-
builder
public static FileImporterContext.Builder builder(CoreSession session, Blob blob, String parentPath)
-
getSession
public CoreSession getSession()
-
getBlob
public Blob getBlob()
-
getParentPath
public String getParentPath()
-
getFileName
public String getFileName()
-
isOverwrite
public boolean isOverwrite()
-
isMimeTypeCheck
public boolean isMimeTypeCheck()
-
isExcludeOneToMany
public boolean isExcludeOneToMany()
-
isPersistDocument
public boolean isPersistDocument()
-
isBypassAllowedSubtypeCheck
public boolean isBypassAllowedSubtypeCheck()
- Since:
- 11.3
-
-