Class ThreeDImporter
- java.lang.Object
-
- org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
-
- org.nuxeo.ecm.platform.threed.importer.ThreeDImporter
-
- All Implemented Interfaces:
Serializable
,Comparable<FileImporter>
,FileImporter
public class ThreeDImporter extends AbstractFileImporter
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
MIMETYPE_ZIP
-
Fields inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
DISABLE_AUDIT_LOGGER, docType, enabled, fileManagerService, filters, name, order, patterns, SKIP_UPDATE_AUDIT_LOGGING
-
-
Constructor Summary
Constructors Constructor Description ThreeDImporter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DocumentModel
createOrUpdate(FileImporterContext context)
Returns a created or updated document based on the givencontext
.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.-
Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
checkAllowedSubtypes, checkIn, checkInAfterAdd, checkSecurity, compareTo, create, createDocument, doSecurityCheck, doSecurityCheck, getBlob, getDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, skipCheckInForBlob, updateDocument, updateDocumentIfPossible
-
-
-
-
Field Detail
-
MIMETYPE_ZIP
public static final String MIMETYPE_ZIP
- See Also:
- Constant Field Values
-
-
Method Detail
-
createOrUpdate
public DocumentModel createOrUpdate(FileImporterContext context) throws IOException
Description copied from interface:FileImporter
Returns a created or updated document based on the givencontext
.- Specified by:
createOrUpdate
in interfaceFileImporter
- Overrides:
createOrUpdate
in classAbstractFileImporter
- Throws:
IOException
- See Also:
FileImporterContext
-
getModelFilename
protected String getModelFilename(Blob zipContent) throws IOException
- Throws:
IOException
-
getDefaultDocType
public String getDefaultDocType()
Description copied from class:AbstractFileImporter
Default document type to use when the plugin XML configuration does not specify one.To implement when the default
AbstractFileImporter.createOrUpdate(FileImporterContext)
method is used.- Overrides:
getDefaultDocType
in classAbstractFileImporter
-
isOverwriteByTitle
public boolean isOverwriteByTitle()
Description copied from class:AbstractFileImporter
Whether document overwrite is detected by checking title or filename.To implement when the default
AbstractFileImporter.createOrUpdate(FileImporterContext)
method is used.- Overrides:
isOverwriteByTitle
in classAbstractFileImporter
-
-