Class ExportedZipImporter
- java.lang.Object
-
- org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
-
- org.nuxeo.ecm.platform.filemanager.service.extension.ExportedZipImporter
-
- All Implemented Interfaces:
Serializable
,Comparable<FileImporter>
,FileImporter
- Direct Known Subclasses:
RouteModelsZipImporter
public class ExportedZipImporter extends AbstractFileImporter
Simple Plugin that imports IO Zip archive into Nuxeo using the IO core service.- Author:
- tiry
- See Also:
- Serialized Form
-
-
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
Constructors Constructor Description ExportedZipImporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
createOrUpdate(FileImporterContext context)
Returns a created or updated document based on the givencontext
.static ZipFile
getArchiveFileIfValid(File file)
static boolean
isArchiveFileValid(File file)
boolean
isOneToMany()
Returnstrue
ifFileImporter.createOrUpdate(FileImporterContext)
creates more than one document for the given blob,false
otherwise.-
Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
checkAllowedSubtypes, checkIn, checkInAfterAdd, checkSecurity, compareTo, create, createDocument, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOverwriteByTitle, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, skipCheckInForBlob, updateDocument, updateDocumentIfPossible
-
-
-
-
Method Detail
-
isArchiveFileValid
public static boolean isArchiveFileValid(File file) throws IOException
- Throws:
IOException
-
getArchiveFileIfValid
public static ZipFile getArchiveFileIfValid(File file) throws IOException
- Throws:
IOException
-
isOneToMany
public boolean isOneToMany()
Description copied from interface:FileImporter
Returnstrue
ifFileImporter.createOrUpdate(FileImporterContext)
creates more than one document for the given blob,false
otherwise.- Specified by:
isOneToMany
in interfaceFileImporter
- Overrides:
isOneToMany
in classAbstractFileImporter
-
createOrUpdate
public DocumentModel createOrUpdate(FileImporterContext context) throws IOException
Description copied from interface:FileImporter
Returns a created or updated document based on the givencontext
.- Specified by:
createOrUpdate
in interfaceFileImporter
- Overrides:
createOrUpdate
in classAbstractFileImporter
- Throws:
IOException
- See Also:
FileImporterContext
-
-