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 aBlob
with theFileManager
.- Since:
- 10.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FileImporterContext.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Blob
blob
protected boolean
bypassAllowedSubtypeCheck
protected boolean
excludeOneToMany
protected String
fileName
protected boolean
mimeTypeCheck
protected boolean
overwrite
protected String
parentPath
protected boolean
persistDocument
protected CoreSession
session
-
Constructor Summary
Constructors Modifier Constructor Description protected
FileImporterContext(FileImporterContext.Builder builder)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileImporterContext.Builder
builder(CoreSession session, Blob blob, String parentPath)
Blob
getBlob()
String
getFileName()
String
getParentPath()
CoreSession
getSession()
boolean
isBypassAllowedSubtypeCheck()
boolean
isExcludeOneToMany()
boolean
isMimeTypeCheck()
boolean
isOverwrite()
boolean
isPersistDocument()
-
-
-
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
-
-