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 |
create(CoreSession documentManager,
Blob content,
String path,
boolean overwrite,
String filename,
TypeManager typeService)
Creates the document.
|
static ZipFile |
getArchiveFileIfValid(File file) |
protected Serializable |
getFieldValue(Field field,
String stringValue,
ZipFile zip) |
boolean |
isOneToMany()
Returns
true if FileImporter.create(CoreSession, Blob, String, boolean, String, TypeManager) creates more
than one document for the given blob, false otherwise. |
checkIn, checkInAfterAdd, compareTo, createDocument, 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.create(CoreSession, Blob, String, boolean, String, TypeManager)
creates more
than one document for the given blob, false
otherwise.isOneToMany
in interface FileImporter
isOneToMany
in class AbstractFileImporter
public DocumentModel create(CoreSession documentManager, Blob content, String path, boolean overwrite, String filename, TypeManager typeService) throws IOException
FileImporter
create
in interface FileImporter
create
in class AbstractFileImporter
documentManager
- the manager used to create the Documentcontent
- the content of the Filepath
- the path of current documentoverwrite
- a boolean deciding whether to create or update if we find a document with the same fileNamefilename
- the filename of the FileIOException
protected Serializable getFieldValue(Field field, String stringValue, ZipFile zip)
Copyright © 2018 Nuxeo. All rights reserved.