public class NoteImporter extends AbstractFileImporter
If an existing document with the same title is found the existing Note document is updated instead.
DISABLE_AUDIT_LOGGER, SKIP_UPDATE_AUDIT_LOGGING
Constructor and Description |
---|
NoteImporter() |
Modifier and Type | Method and Description |
---|---|
String |
getDefaultDocType()
Default document type to use when the plugin XML configuration does not
specify one.
|
boolean |
isOverwriteByTitle()
Whether document overwrite is detected by checking title or filename.
|
void |
updateDocument(DocumentModel doc,
Blob content)
Updates the document (sets its properties).
|
compareTo, create, createDocument, getBlob, getDocType, getDocType, getFileManagerService, getFilters, getName, getOrder, isEnabled, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder
public String getDefaultDocType()
AbstractFileImporter
To implement when the default AbstractFileImporter.create(org.nuxeo.ecm.core.api.CoreSession, org.nuxeo.ecm.core.api.Blob, java.lang.String, boolean, java.lang.String, org.nuxeo.ecm.platform.types.TypeManager)
method is used.
getDefaultDocType
in class AbstractFileImporter
public boolean isOverwriteByTitle()
AbstractFileImporter
To implement when the default AbstractFileImporter.create(org.nuxeo.ecm.core.api.CoreSession, org.nuxeo.ecm.core.api.Blob, java.lang.String, boolean, java.lang.String, org.nuxeo.ecm.platform.types.TypeManager)
method is used.
isOverwriteByTitle
in class AbstractFileImporter
public void updateDocument(DocumentModel doc, Blob content) throws ClientException
AbstractFileImporter
Default implementation sets the content.
updateDocument
in class AbstractFileImporter
ClientException
Copyright © 2013 Nuxeo SA. All Rights Reserved.