public class PropertiesMappingComponent extends DefaultComponent implements PropertiesMappingService
Modifier and Type | Field and Description |
---|---|
static Log |
log |
static String |
MAPPING_EP |
Constructor and Description |
---|
PropertiesMappingComponent() |
Modifier and Type | Method and Description |
---|---|
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, unregisterContribution, unregisterExtension
public static final Log log
public static final String MAPPING_EP
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public Map<String,String> getMapping(String mappingName)
PropertiesMappingService
getMapping
in interface PropertiesMappingService
public void mapProperties(CoreSession session, DocumentModel sourceDoc, DocumentModel targetDoc, String mapping) throws ClientException
PropertiesMappingService
mapProperties
in interface PropertiesMappingService
ClientException
- if trying to map incompatible typesCopyright © 2013 Nuxeo SA. All Rights Reserved.