public class NoteImporter extends AbstractFileImporter
If an existing document with the same title is found the existing Note document is updated instead.
Constructor and Description |
---|
NoteImporter() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
create(CoreSession documentManager,
Blob content,
String path,
boolean overwrite,
String fullname,
TypeManager typeService)
Creates the document.
|
compareTo, create, getDocType, getFileManagerService, getFilters, getName, getOrder, isEnabled, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder
public DocumentModel create(CoreSession documentManager, Blob content, String path, boolean overwrite, String fullname, TypeManager typeService) throws ClientException, IOException
FileImporter
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 fileNamefullname
- the filename of the FileClientException
IOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.