public class PropertiesMappingComponent extends DefaultComponent implements PropertiesMappingService
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
log |
static String |
MAPPING_EP |
protected PropertiesMappingContributionRegistry |
mappingsRegistry |
lastModified
Constructor and Description |
---|
PropertiesMappingComponent() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
compatibleTypes(Type targetType,
Type sourceType) |
Map<String,String> |
getMapping(String mappingName)
Gets a map of xpaths defining properties on the target and source documents
|
void |
mapProperties(CoreSession session,
DocumentModel sourceDoc,
DocumentModel targetDoc,
String mapping)
Copies the properties defined by the given xpaths in the mapping from the target to the source document.
|
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
activate, applicationStarted, deactivate, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, setModifiedNow, unregisterContribution, unregisterExtension
public static final org.apache.commons.logging.Log log
public static final String MAPPING_EP
protected PropertiesMappingContributionRegistry mappingsRegistry
public PropertiesMappingComponent()
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public Map<String,String> getMapping(String mappingName)
PropertiesMappingService
getMapping
in interface PropertiesMappingService
public void mapProperties(CoreSession session, DocumentModel sourceDoc, DocumentModel targetDoc, String mapping)
PropertiesMappingService
mapProperties
in interface PropertiesMappingService
protected boolean compatibleTypes(Type targetType, Type sourceType)
Copyright © 2015 Nuxeo SA. All rights reserved.