Interface PropertiesMappingService

All Known Implementing Classes:
PropertiesMappingComponent

public interface PropertiesMappingService
Service that allows to copy a set of metadata from a source to a target document
Since:
5.6
  • Method Summary

    Modifier and Type
    Method
    Description
    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 mappingName)
    Copies the properties defined by the given xpaths in the mapping from the target to the source document.
  • Method Details

    • getMapping

      Map<String,String> getMapping(String mappingName)
      Gets a map of xpaths defining properties on the target and source documents
    • mapProperties

      void mapProperties(CoreSession session, DocumentModel sourceDoc, DocumentModel targetDoc, String mappingName)
      Copies the properties defined by the given xpaths in the mapping from the target to the source document. Assumes that the xpaths are valid.