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 ImporterConfigconfigstatic StringCONFIG_EPstatic StringMAPPING_EPprotected ScanFileMappingDescriptormappingDesc-
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 ImporterConfiggetImporterConfig()ScanFileMappingDescriptorgetMappingDesc()StringgetTargetContainerType()StringgetTargetLeafType()ScanFileBlobHolderparseMetaData(File xmlFile)voidregisterContribution(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:
registerContributionin classDefaultComponent
-
parseMetaData
public ScanFileBlobHolder parseMetaData(File xmlFile) throws IOException
- Specified by:
parseMetaDatain interfaceScannedFileMapperService- Throws:
IOException
-
getMappingDesc
public ScanFileMappingDescriptor getMappingDesc()
-
getTargetContainerType
public String getTargetContainerType()
- Specified by:
getTargetContainerTypein interfaceScannedFileMapperService
-
getTargetLeafType
public String getTargetLeafType()
- Specified by:
getTargetLeafTypein interfaceScannedFileMapperService
-
getImporterConfig
public ImporterConfig getImporterConfig()
- Specified by:
getImporterConfigin interfaceScannedFileMapperService
-
-