public class ThreeDImporter extends AbstractFileImporter
Modifier and Type | Field and Description |
---|---|
static String |
MIMETYPE_ZIP |
DISABLE_AUDIT_LOGGER, docType, enabled, fileManagerService, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING
Constructor and Description |
---|
ThreeDImporter() |
Modifier and Type | Method and Description |
---|---|
DocumentModel |
create(CoreSession session,
Blob content,
String path,
boolean overwrite,
String fullname,
TypeManager typeService)
Creates the document.
|
String |
getDefaultDocType()
Default document type to use when the plugin XML configuration does not specify one.
|
protected String |
getModelFilename(Blob zipContent) |
boolean |
isOverwriteByTitle()
Whether document overwrite is detected by checking title or filename.
|
checkIn, checkInAfterAdd, compareTo, createDocument, doSecurityCheck, getBlob, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, skipCheckInForBlob, updateDocument, updateDocumentIfPossible
public static final String MIMETYPE_ZIP
public ThreeDImporter()
public DocumentModel create(CoreSession session, Blob content, String path, boolean overwrite, String fullname, TypeManager typeService) throws IOException
FileImporter
create
in interface FileImporter
create
in class AbstractFileImporter
session
- 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 FileIOException
protected String getModelFilename(Blob zipContent) throws IOException
IOException
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
Copyright © 2018 Nuxeo. All rights reserved.