public class PropertiesMappingComponent extends DefaultComponent implements PropertiesMappingService
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.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 org.apache.commons.logging.Log log
public static final String MAPPING_EP
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) throws ClientException
PropertiesMappingService
mapProperties
in interface PropertiesMappingService
ClientException
- if trying to map incompatible typesCopyright © 2015 Nuxeo SA. All rights reserved.