org.nuxeo.ecm.platform.filemanager.service.extension
Class ExportedZipImporter
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
org.nuxeo.ecm.platform.filemanager.service.extension.ExportedZipImporter
- All Implemented Interfaces:
- Serializable, Comparable<FileImporter>, FileImporter
public class ExportedZipImporter
- extends AbstractFileImporter
Simple Plugin that imports IO Zip archive into Nuxeo using the IO core
service.
- Author:
- tiry
- See Also:
- Serialized Form
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 |
ExportedZipImporter
public ExportedZipImporter()
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 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 File
- Throws:
ClientException
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.