Class RouteModelsZipImporter
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
org.nuxeo.ecm.platform.filemanager.service.extension.ExportedZipImporter
org.nuxeo.ecm.platform.routing.core.persistence.RouteModelsZipImporter
- All Implemented Interfaces:
Serializable
,Comparable<FileImporter>
,FileImporter
Imports a route document from a zip archive using the IO core service . Existing route model with the same path as
the are one to be imported is deleted before import.
- Since:
- 5.6
- See Also:
-
Field Summary
Fields inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
DISABLE_AUDIT_LOGGER, docType, enabled, fileManagerService, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateOrUpdate
(FileImporterContext context) Returns a created or updated document based on the givencontext
.protected String
getMD5Digest
(File file) protected ExportedDocument
getRootExportedDocument
(File file) Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.ExportedZipImporter
getArchiveFileIfValid, isArchiveFileValid, isOneToMany
Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
checkAllowedSubtypes, checkSecurity, compareTo, create, createDocument, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOverwriteByTitle, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, updateDocument, updateDocumentIfPossible
-
Field Details
-
WORKFLOW_KEY_VALUE_STORE
- Since:
- 11.5
- See Also:
-
-
Constructor Details
-
RouteModelsZipImporter
public RouteModelsZipImporter()
-
-
Method Details
-
createOrUpdate
Description copied from interface:FileImporter
Returns a created or updated document based on the givencontext
.- Specified by:
createOrUpdate
in interfaceFileImporter
- Overrides:
createOrUpdate
in classExportedZipImporter
- Throws:
IOException
- See Also:
-
getRootExportedDocument
- Throws:
IOException
-
getMD5Digest
-