public class CSVZipImporter extends AbstractFileImporter
DISABLE_AUDIT_LOGGER, docType, enabled, fileManagerService, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING
Constructor and Description |
---|
CSVZipImporter() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
createOrUpdate(FileImporterContext context)
Returns a created or updated document based on the given
context . |
static ZipFile |
getArchiveFileIfValid(File file) |
protected Serializable |
getFieldValue(Field field,
String stringValue,
ZipFile zip) |
boolean |
isOneToMany()
Returns
true if FileImporter.createOrUpdate(FileImporterContext) creates more than one document for the given
blob, false otherwise. |
checkIn, checkInAfterAdd, 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
public CSVZipImporter()
public static ZipFile getArchiveFileIfValid(File file) throws IOException
IOException
public boolean isOneToMany()
FileImporter
true
if FileImporter.createOrUpdate(FileImporterContext)
creates more than one document for the given
blob, false
otherwise.isOneToMany
in interface FileImporter
isOneToMany
in class AbstractFileImporter
public DocumentModel createOrUpdate(FileImporterContext context) throws IOException
FileImporter
context
.createOrUpdate
in interface FileImporter
createOrUpdate
in class AbstractFileImporter
IOException
FileImporterContext
protected Serializable getFieldValue(Field field, String stringValue, ZipFile zip)
Copyright © 2019 Nuxeo. All rights reserved.