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:
- Serializable, Comparable<FileImporter>, FileImporter
public class DefaultFileImporter
- extends AbstractFileImporter
- Author:
- Anahide Tchertchian
- 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 |
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
DefaultFileImporter
public DefaultFileImporter()
getTypeName
public static String getTypeName(DocumentModel currentDoc)
create
public DocumentModel create(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname,
TypeManager typeService)
throws ClientException,
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
IOException
Copyright © 2011 Nuxeo SAS. All Rights Reserved.