public class DefaultSegmentationHelper extends Object implements SegmentationHelper
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SEPARATOR |
CUSTOMER_INDEX, SEGMENT_INDEX| Constructor and Description |
|---|
DefaultSegmentationHelper() |
DefaultSegmentationHelper(String seperator) |
| Modifier and Type | Method and Description |
|---|---|
protected String[] |
decode(String[] codes) |
protected String |
encode(String segmentId,
String relatedObjectId) |
String |
getCustomerSegmentationCode(UserModel user,
CxSegmentModel segment) |
String |
getSegmentationCode(String segmentId,
String relatedObjectId) |
protected String[] |
split(String code) |
String[] |
splitCustomerSegmentationCode(String segmentationId) |
String |
validateSegmentationCode(String code)
Method validates segmentation code and returns error message if code is incorrect.
|
public static final String DEFAULT_SEPARATOR
public DefaultSegmentationHelper()
public DefaultSegmentationHelper(String seperator)
public String getSegmentationCode(String segmentId, String relatedObjectId)
getSegmentationCode in interface SegmentationHelperpublic String getCustomerSegmentationCode(UserModel user, CxSegmentModel segment)
getCustomerSegmentationCode in interface SegmentationHelperpublic String[] splitCustomerSegmentationCode(String segmentationId)
splitCustomerSegmentationCode in interface SegmentationHelperpublic String validateSegmentationCode(String code)
SegmentationHelpervalidateSegmentationCode in interface SegmentationHelpercode - Segmentation codeCopyright © 2017 SAP SE. All Rights Reserved.