Class FileManagerImportWithProperties
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.services.FileManagerImportWithProperties
-
public class FileManagerImportWithProperties extends Object
UseFileManager
to create documents from blobs and set multiple properties on them.- Since:
- 10.10
-
-
Field Summary
Fields Modifier and Type Field Description protected AutomationService
as
protected OperationContext
context
protected FileManager
fileManager
static String
ID
protected boolean
mimeTypeCheck
protected boolean
overwrite
protected Properties
properties
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description FileManagerImportWithProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected DocumentModel
getCurrentDocument()
DocumentModelList
run(BlobList blobs)
DocumentModel
run(Blob blob)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
fileManager
protected FileManager fileManager
-
as
protected AutomationService as
-
context
protected OperationContext context
-
overwrite
protected boolean overwrite
-
mimeTypeCheck
protected boolean mimeTypeCheck
-
properties
protected Properties properties
-
-
Method Detail
-
getCurrentDocument
protected DocumentModel getCurrentDocument() throws OperationException
- Throws:
OperationException
-
run
public DocumentModel run(Blob blob) throws OperationException, IOException
- Throws:
OperationException
IOException
-
run
public DocumentModelList run(BlobList blobs) throws OperationException, IOException
- Throws:
OperationException
IOException
-
-