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
public class CSVZipImporter extends AbstractFileImporter
- 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 CSVZipImporter()
-
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)
protected Serializable
getFieldValue(Field field, String stringValue, ZipFile zip)
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
-
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
-
getFieldValue
protected Serializable getFieldValue(Field field, String stringValue, ZipFile zip)
-
-