Interface SegmentationHelper

All Known Implementing Classes:
DefaultSegmentationHelper

public interface SegmentationHelper
  • Field Details

  • Method Details

    • getCustomerSegmentationCode

      String getCustomerSegmentationCode(CxUserToSegmentModel userSegment)
      Generate customer segmentation code
      Parameters:
      userSegment - relation beetween customer and segment
      Returns:
      customer segmentation code
    • getSegmentationCode

      String getSegmentationCode(String... parameters)
      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

      String[] splitCustomerSegmentationCode(String segmentationId)
    • validateSegmentationCode

      String validateSegmentationCode(String code)
      Method validates segmentation code and returns error message if code is incorrect.
      Parameters:
      code - Segmentation code
      Returns:
      error message