Class CSVZipImporter
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
org.nuxeo.ecm.platform.filemanager.service.extension.CSVZipImporter
- All Implemented Interfaces:
Serializable
,Comparable<FileImporter>
,FileImporter
- 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
.static ZipFile
getArchiveFileIfValid
(File file) protected Serializable
getFieldValue
(Field field, String stringValue, ZipFile zip) boolean
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, 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
-
Constructor Details
-
CSVZipImporter
public CSVZipImporter()
-
-
Method Details
-
getArchiveFileIfValid
- 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
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:
-
getFieldValue
-