Class CxScriptProfileMapper<T>
java.lang.Object
de.hybris.platform.personalizationintegration.mapping.mapper.impl.CxScriptProfileMapper<T>
- All Implemented Interfaces:
Populator<T,MappingData>
- Direct Known Subclasses:
CxTestScriptProfileMapper,DefaultCxScriptConsumptionLayerMapper
This mapper implementation retrieve all the active CxMapperScript in the database and execute them to retrieve
instances of SegmentMappingData. These segments will be added to the target of the populator. If a script doesn't
return a result of the expected type (a list), the mapper will log an error but will continue with subsequent
scripts.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateInputParameters(T source) protected List<SegmentMappingData>executeMapperScrip(CxMapperScriptModel script, Map<String, Object> inputParameters) protected List<CxMapperScriptModel>protected FlexibleSearchServiceprotected Stringprotected ScriptingLanguagesServicevoidpopulate(T source, MappingData target) Populate the target instance with values from the source instance.voidsetFlexibleSearchService(FlexibleSearchService flexibleSearchService) voidsetScriptGroup(String scriptGroup) voidsetScriptingLanguagesService(ScriptingLanguagesService scriptingLanguagesService)
-
Constructor Details
-
CxScriptProfileMapper
public CxScriptProfileMapper()
-
-
Method Details
-
populate
Description copied from interface:PopulatorPopulate the target instance with values from the source instance.- Specified by:
populatein interfacePopulator<T,MappingData> - Parameters:
source- the source objecttarget- the target to fill
-
createInputParameters
-
findMapperScripts
-
executeMapperScrip
protected List<SegmentMappingData> executeMapperScrip(CxMapperScriptModel script, Map<String, Object> inputParameters) -
getFlexibleSearchService
-
getScriptingLanguagesService
-
getScriptGroup
-
setScriptingLanguagesService
-
setFlexibleSearchService
-
setScriptGroup
-