org.nuxeo.ecm.platform.filemanager.service.extension
Class DefaultFileImporter
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
org.nuxeo.ecm.platform.filemanager.service.extension.DefaultFileImporter
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<FileImporter>, FileImporter
public class DefaultFileImporter
- extends AbstractFileImporter
- Author:
- Anahide Tchertchian
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
TYPE_NAME
|
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 |
TYPE_NAME
public static final java.lang.String TYPE_NAME
- See Also:
- Constant Field Values
DefaultFileImporter
public DefaultFileImporter()
getTypeName
public java.lang.String getTypeName()
create
public DocumentModel create(CoreSession documentManager,
Blob input,
java.lang.String path,
boolean overwrite,
java.lang.String fullname,
TypeManager typeService)
throws ClientException,
java.io.IOException
- Creates a file in nearest container.
If a document with same title already exists, creates a new version.
- Parameters:
documentManager
- the manager used to create the Documentinput
- 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 fileNamefullname
- the filename of the File
- Throws:
ClientException
java.io.IOException
Copyright © 2010 Nuxeo SAS. All Rights Reserved.