public class DefaultFileImporter extends AbstractFileImporter
Constructor and Description |
---|
DefaultFileImporter() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
create(CoreSession documentManager,
Blob input,
String path,
boolean overwrite,
String fullname,
TypeManager typeService)
Creates a file in nearest container.
|
static String |
getTypeName(DocumentModel currentDoc) |
compareTo, create, getDocType, getFileManagerService, getFilters, getName, getOrder, isEnabled, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder
public static final String TYPE_NAME
public static String getTypeName(DocumentModel currentDoc)
public DocumentModel create(CoreSession documentManager, Blob input, String path, boolean overwrite, String fullname, TypeManager typeService) throws ClientException, IOException
If a document with same title already exists, creates a new version.
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 FileClientException
IOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.