Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.filemanager.service.extension
Class CSVZipImporter

java.lang.Object
  extended by org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
      extended by org.nuxeo.ecm.platform.filemanager.service.extension.CSVZipImporter
All Implemented Interfaces:
Serializable, Comparable<FileImporter>, FileImporter

public class CSVZipImporter
extends AbstractFileImporter

See Also:
Serialized Form

Constructor Summary
CSVZipImporter()
           
 
Method Summary
 DocumentModel create(CoreSession documentManager, Blob content, String path, boolean overwrite, String filename, TypeManager typeService)
          Creates the document.
static ZipFile getArchiveFileIfValid(File file)
           
 
Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
compareTo, create, getFileManagerService, getFilters, getName, getOrder, isEnabled, matches, setEnabled, setFileManagerService, setFilters, setName, setOrder
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVZipImporter

public CSVZipImporter()
Method Detail

getArchiveFileIfValid

public static ZipFile getArchiveFileIfValid(File file)
                                     throws IOException
Throws:
IOException

create

public DocumentModel create(CoreSession documentManager,
                            Blob content,
                            String path,
                            boolean overwrite,
                            String filename,
                            TypeManager typeService)
                     throws ClientException,
                            IOException
Description copied from interface: FileImporter
Creates the document.

Parameters:
documentManager - the manager used to create the Document
content - the content of the File
path - the path of current document
overwrite - a boolean deciding whether to create or update if we find a document with the same fileName
filename - the filename of the File
Throws:
ClientException
IOException

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.