Interface SegmentationHelper
- All Known Implementing Classes:
DefaultSegmentationHelper
public interface SegmentationHelper
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptiongetCustomerSegmentationCode(CxUserToSegmentModel userSegment) Generate customer segmentation codegetSegmentationCode(String... parameters) Generate customer segmentation codeString[]splitCustomerSegmentationCode(String segmentationId) Method validates segmentation code and returns error message if code is incorrect.
-
Field Details
-
SEGMENT_INDEX
static final int SEGMENT_INDEX- See Also:
-
CUSTOMER_INDEX
static final int CUSTOMER_INDEX- See Also:
-
BASESITE_INDEX
static final int BASESITE_INDEX- See Also:
-
PROVIDER_INDEX
static final int PROVIDER_INDEX- See Also:
-
NUMBER_OF_CODE_INDEXES
static final int NUMBER_OF_CODE_INDEXES- See Also:
-
-
Method Details
-
getCustomerSegmentationCode
Generate customer segmentation code- Parameters:
userSegment- relation beetween customer and segment- Returns:
- customer segmentation code
-
getSegmentationCode
Generate customer segmentation code- Parameters:
parameters- parameters needed to create segmentation code like : user identifier, segment code, basesite identifier, provider identifier. Indexes used to read parameters :CUSTOMER_INDEX,SEGMENT_INDEX,BASESITE_INDEX,PROVIDER_INDEX- Returns:
- customer segmentation code
-
splitCustomerSegmentationCode
-
validateSegmentationCode
Method validates segmentation code and returns error message if code is incorrect.- Parameters:
code- Segmentation code- Returns:
- error message
-