Class ScannedFileMapperComponent
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.platform.scanimporter.service.ScannedFileMapperComponent
-
- All Implemented Interfaces:
ScannedFileMapperService
,Adaptable
,Component
,Extensible
,TimestampedService
public class ScannedFileMapperComponent extends DefaultComponent implements ScannedFileMapperService
Component to provide service logic : - meta-data parsing - configuration management - extension points- Author:
- Thierry Delprat
-
-
Field Summary
Fields Modifier and Type Field Description protected ImporterConfig
config
static String
CONFIG_EP
static String
MAPPING_EP
protected ScanFileMappingDescriptor
mappingDesc
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description ScannedFileMapperComponent()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImporterConfig
getImporterConfig()
ScanFileMappingDescriptor
getMappingDesc()
String
getTargetContainerType()
String
getTargetLeafType()
ScanFileBlobHolder
parseMetaData(File xmlFile)
void
registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Field Detail
-
MAPPING_EP
public static final String MAPPING_EP
- See Also:
- Constant Field Values
-
CONFIG_EP
public static final String CONFIG_EP
- See Also:
- Constant Field Values
-
mappingDesc
protected ScanFileMappingDescriptor mappingDesc
-
config
protected ImporterConfig config
-
-
Method Detail
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
- Overrides:
registerContribution
in classDefaultComponent
-
parseMetaData
public ScanFileBlobHolder parseMetaData(File xmlFile) throws IOException
- Specified by:
parseMetaData
in interfaceScannedFileMapperService
- Throws:
IOException
-
getMappingDesc
public ScanFileMappingDescriptor getMappingDesc()
-
getTargetContainerType
public String getTargetContainerType()
- Specified by:
getTargetContainerType
in interfaceScannedFileMapperService
-
getTargetLeafType
public String getTargetLeafType()
- Specified by:
getTargetLeafType
in interfaceScannedFileMapperService
-
getImporterConfig
public ImporterConfig getImporterConfig()
- Specified by:
getImporterConfig
in interfaceScannedFileMapperService
-
-