Class FileImporterDescriptor
java.lang.Object
org.nuxeo.ecm.platform.filemanager.service.extension.FileImporterDescriptor
- All Implemented Interfaces:
Descriptor
- Author:
- akalogeropoulos
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
Deprecated.since 11.1.protected String
protected String
protected Class<? extends FileImporter>
protected String
Fields inherited from interface org.nuxeo.runtime.model.Descriptor
UNIQUE_DESCRIPTOR_ID
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
defaultValue
(T value, T defaultValue) boolean
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.Deprecated.since 11.1.Returns the configured document type to be created when using the importergetId()
The descriptor id, descriptors with same id are merged.getName()
getOrder()
boolean
boolean
isMerge()
Returnstrue
if thisFileImporterDescriptor
should be merged with an existing one,false
otherwise.merge
(Descriptor o) Returns a descriptor representingother
merged intothis
void
setClassName
(String className) Deprecated.since 11.1.void
void
setFilters
(List<String> filters) void
-
Field Details
-
DEFAULT_FILTER
-
name
-
className
Deprecated.since 11.1. -
klass
- Since:
- 11.1
-
docType
-
filters
-
filter
-
-
Constructor Details
-
FileImporterDescriptor
public FileImporterDescriptor()
-
-
Method Details
-
getName
-
setName
-
getClassName
Deprecated.since 11.1. Useklass
. -
setClassName
Deprecated.since 11.1. Useklass
. -
getDocType
Returns the configured document type to be created when using the importer- Since:
- 5.5
-
getFilter
-
setFilter
-
getFilters
-
setFilters
-
isEnabled
public boolean isEnabled() -
getOrder
-
isMerge
public boolean isMerge()Returnstrue
if thisFileImporterDescriptor
should be merged with an existing one,false
otherwise.- Since:
- 5.5
-
newInstance
- Since:
- 11.1
-
getId
Description copied from interface:Descriptor
The descriptor id, descriptors with same id are merged.To forbid multiple descriptors use UNIQUE_DESCRIPTOR_ID.
To forbid merge use a unique value, non-overriden
toString()
for exemple.- Specified by:
getId
in interfaceDescriptor
-
merge
Description copied from interface:Descriptor
Returns a descriptor representingother
merged intothis
Default implementation returns
other
.- Specified by:
merge
in interfaceDescriptor
- Returns:
- the merged descriptor
-
defaultValue
protected <T> T defaultValue(T value, T defaultValue) -
doesRemove
public boolean doesRemove()Description copied from interface:Descriptor
During merge if a descriptor whose doesRemove() returns true is encountered, the merge chain is reset and started again on next descriptor.If the last descriptor of same id doesRemove() return true, the descriptor for this id will be
null
.- Specified by:
doesRemove
in interfaceDescriptor
-