Class FileManagerImport
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.operations.services.FileManagerImport
-
public class FileManagerImport extends Object
UseFileManager
to create documents from blobs- Author:
- Tiry ([email protected])
-
-
Field Summary
Fields Modifier and Type Field Description protected AutomationService
as
protected OperationContext
context
protected FileManager
fileManager
static String
ID
protected static int
IMPORT_TX_TIMEOUT_SEC
protected Boolean
noMimeTypeCheck
protected Boolean
overwite
Deprecated.since 11.2, use overwrite instead.protected Boolean
overwrite
protected CoreSession
session
-
Constructor Summary
Constructors Constructor Description FileManagerImport()
-
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
-
IMPORT_TX_TIMEOUT_SEC
protected static final int IMPORT_TX_TIMEOUT_SEC
- See Also:
- Constant Field Values
-
session
protected CoreSession session
-
fileManager
protected FileManager fileManager
-
as
protected AutomationService as
-
context
protected OperationContext context
-
overwite
@Deprecated(since="11.2") protected Boolean overwite
Deprecated.since 11.2, use overwrite instead. No more used.
-
overwrite
protected Boolean overwrite
- Since:
- 11.2
-
noMimeTypeCheck
protected Boolean noMimeTypeCheck
-
-
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
-
-