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
public class DefaultFileImporter extends AbstractFileImporter
Default file importer, creating a regular file.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
TYPE_NAME
-
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 DefaultFileImporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static UITypesConfiguration
getConfiguration(DocumentModel currentDoc)
String
getDocType(DocumentModel container)
Gets the doc type to use in the given container.static String
getTypeName(DocumentModel currentDoc)
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, createOrUpdate, doSecurityCheck, doSecurityCheck, getBlob, getDefaultDocType, getDocType, getFileManagerService, getFilters, getName, getNearestContainerPath, getOrder, isEnabled, isOneToMany, matches, setDocType, setEnabled, setFileManagerService, setFilters, setName, setOrder, skipCheckInForBlob, updateDocument, updateDocumentIfPossible
-
-
-
-
Field Detail
-
TYPE_NAME
public static final String TYPE_NAME
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
public String getDocType(DocumentModel container)
Description copied from class:AbstractFileImporter
Gets the doc type to use in the given container.- Overrides:
getDocType
in classAbstractFileImporter
-
getTypeName
public static String getTypeName(DocumentModel currentDoc)
-
getConfiguration
protected static UITypesConfiguration getConfiguration(DocumentModel currentDoc)
-
-