Class CxScriptPropertiesSupplier
- java.lang.Object
-
- de.hybris.platform.personalizationaddon.properties.CxScriptPropertiesSupplier
-
- All Implemented Interfaces:
CMSItemPropertiesSupplier
public class CxScriptPropertiesSupplier extends java.lang.Object implements CMSItemPropertiesSupplier
-
-
Constructor Summary
Constructors Constructor Description CxScriptPropertiesSupplier()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CxViewActionResultencodeActionResult(CxAbstractActionResult action)protected SegmentDataencodeSegmentData(SegmentData segment)java.util.function.Predicate<CMSItemModel>getConstrainedBy()ThePredicateto test whether this supplier can be applied to providedCMSItemModeljava.util.List<CxViewActionResult>getEncodedActionResults()java.util.List<SegmentData>getEncodedSegmentData()protected java.util.List<java.lang.Object>getFormatedActionResults()protected java.util.List<java.lang.Object>getFormatedSegmentData()java.util.Map<java.lang.String,java.lang.Object>getProperties(CMSItemModel itemModel)Returns aMapof properties.java.lang.StringgroupName()Method to provide the properties' group name.voidsetCustomerSegmentationFacade(CustomerSegmentationFacade customerSegmentationFacade)voidsetCxService(CxService cxService)voidsetCxViewValueCoder(CxViewValueCoder cxViewValueCoder)voidsetUserService(UserService userService)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface de.hybris.platform.cmsfacades.cmsitems.properties.CMSItemPropertiesSupplier
isEnabled
-
-
-
-
Method Detail
-
getConstrainedBy
public java.util.function.Predicate<CMSItemModel> getConstrainedBy()
Description copied from interface:CMSItemPropertiesSupplierThePredicateto test whether this supplier can be applied to providedCMSItemModel- Specified by:
getConstrainedByin interfaceCMSItemPropertiesSupplier- Returns:
- the
Predicate
-
getProperties
public java.util.Map<java.lang.String,java.lang.Object> getProperties(CMSItemModel itemModel)
Description copied from interface:CMSItemPropertiesSupplierReturns aMapof properties.- Specified by:
getPropertiesin interfaceCMSItemPropertiesSupplier- Parameters:
itemModel- theCMSItemModel- Returns:
- the
Mapof properties.
-
getFormatedActionResults
protected java.util.List<java.lang.Object> getFormatedActionResults()
-
getEncodedActionResults
public java.util.List<CxViewActionResult> getEncodedActionResults()
-
getFormatedSegmentData
protected java.util.List<java.lang.Object> getFormatedSegmentData()
-
getEncodedSegmentData
public java.util.List<SegmentData> getEncodedSegmentData()
-
encodeActionResult
protected CxViewActionResult encodeActionResult(CxAbstractActionResult action)
-
encodeSegmentData
protected SegmentData encodeSegmentData(SegmentData segment)
-
groupName
public java.lang.String groupName()
Description copied from interface:CMSItemPropertiesSupplierMethod to provide the properties' group name.- Specified by:
groupNamein interfaceCMSItemPropertiesSupplier- Returns:
- the properties' group name.
-
setCxService
public void setCxService(CxService cxService)
-
setUserService
public void setUserService(UserService userService)
-
setCustomerSegmentationFacade
public void setCustomerSegmentationFacade(CustomerSegmentationFacade customerSegmentationFacade)
-
setCxViewValueCoder
public void setCxViewValueCoder(CxViewValueCoder cxViewValueCoder)
-
-