Class DefaultFileImporter
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
org.nuxeo.ecm.platform.filemanager.service.extension.DefaultFileImporter
- All Implemented Interfaces:
Serializable
,Comparable<FileImporter>
,FileImporter
Default file importer, creating a regular file.
- See Also:
-
Field Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionprotected static UITypesConfiguration
getConfiguration
(DocumentModel currentDoc) getDocType
(DocumentModel container) Gets the doc type to use in the given container.static String
getTypeName
(DocumentModel currentDoc) boolean
Whether document overwrite is detected by checking title or filename.Methods inherited from class org.nuxeo.ecm.platform.filemanager.service.extension.AbstractFileImporter
checkAllowedSubtypes, checkSecurity, compareTo, create, createDocument, createOrUpdate, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, updateDocument, updateDocumentIfPossible
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
DefaultFileImporter
public DefaultFileImporter()
-
-
Method Details
-
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
-
getDocType
Description copied from class:AbstractFileImporter
Gets the doc type to use in the given container.- Overrides:
getDocType
in classAbstractFileImporter
-
getTypeName
-
getConfiguration
-