Class DefaultSegmentationHelper
java.lang.Object
de.hybris.platform.personalizationfacades.segmentation.impl.DefaultSegmentationHelper
- All Implemented Interfaces:
SegmentationHelper
-
Field Summary
FieldsFields inherited from interface de.hybris.platform.personalizationfacades.segmentation.SegmentationHelper
BASESITE_INDEX, CUSTOMER_INDEX, NUMBER_OF_CODE_INDEXES, PROVIDER_INDEX, SEGMENT_INDEX -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected String[]protected StringgetCustomerSegmentationCode(CxUserToSegmentModel userSegment) Generate customer segmentation codegetSegmentationCode(String... parameters) Generate customer segmentation codeprotected String[]String[]splitCustomerSegmentationCode(String segmentationId) Method validates segmentation code and returns error message if code is incorrect.
-
Field Details
-
DEFAULT_SEPARATOR
- See Also:
-
NULL_STRING
-
-
Constructor Details
-
DefaultSegmentationHelper
public DefaultSegmentationHelper() -
DefaultSegmentationHelper
-
-
Method Details
-
getSegmentationCode
Description copied from interface:SegmentationHelperGenerate customer segmentation code- Specified by:
getSegmentationCodein interfaceSegmentationHelper- Parameters:
parameters- parameters needed to create segmentation code like : user identifier, segment code, basesite identifier, provider identifier. Indexes used to read parameters :SegmentationHelper.CUSTOMER_INDEX,SegmentationHelper.SEGMENT_INDEX,SegmentationHelper.BASESITE_INDEX,SegmentationHelper.PROVIDER_INDEX- Returns:
- customer segmentation code
-
encode
-
getCustomerSegmentationCode
Description copied from interface:SegmentationHelperGenerate customer segmentation code- Specified by:
getCustomerSegmentationCodein interfaceSegmentationHelper- Parameters:
userSegment- relation beetween customer and segment- Returns:
- customer segmentation code
-
splitCustomerSegmentationCode
- Specified by:
splitCustomerSegmentationCodein interfaceSegmentationHelper
-
split
-
decode
-
validateSegmentationCode
Description copied from interface:SegmentationHelperMethod validates segmentation code and returns error message if code is incorrect.- Specified by:
validateSegmentationCodein interfaceSegmentationHelper- Parameters:
code- Segmentation code- Returns:
- error message
-