public class SegmentHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String | DEFAULT_ACCESS_PROFILE
The default access profile, used when an access profile is not specified using the accessProfile query parameter.
|
static java.lang.String | FIND_ALL_BY_STOREID_XPATH
The XPath key to find all customer segment noun by storeId.
|
static java.lang.String | FIND_BY_BY_USER_ID
The XPath key to search customer segment based on user and usage
|
static java.lang.String | FIND_BY_NAME_XPATH
The XPath key to search customer segment noun by name.
|
static java.lang.String | FIND_BY_SEGMENT_ID_AND_UNIQUE_ID
The XPath key to check if specific user is in the customer segment
|
static java.lang.String | FIND_BY_UNIQUE_ID
The XPath key to search customer segment by id
|
Constructor and Description |
---|
SegmentHelper() |
SegmentHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor)
Instantiates a new customer segment helper.
|
Modifier and Type | Method and Description |
---|---|
protected SelectionCriteriaHelper | buildExpression(java.lang.String expression, java.lang.String accessProfile)
This method creates a SelectionCriteriaHelper object with the provided XPath expression and access profile.
|
protected GetType | buildGetVerb(ExpressionType expression)
This method creates the Get Verb.
|
boolean | checkCustomerSegmentByPersonalizatoinId(java.lang.String personalizationId, java.lang.String segmentId, java.lang.String accessProfile)
The method check if given personalizationId is in specific customer segment
|
ShowMemberGroupDataAreaType | getCustomerSegment(int pageNumber, int pageSize, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile)
This method performs a getCustomerSegment service request.
|
ShowMemberGroupDataAreaType | getCustomerSegmentByPersonalizationId(java.lang.String personalizationId, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String accessProfile)
The method get customer segment by specific peronalizationId
|
com.ibm.commerce.rest.utils.Instrumentor | getInstrumentor()
Get the instrumentor associated with this request instance.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String DEFAULT_ACCESS_PROFILE
public static final java.lang.String FIND_ALL_BY_STOREID_XPATH
public static final java.lang.String FIND_BY_NAME_XPATH
public static final java.lang.String FIND_BY_UNIQUE_ID
public static final java.lang.String FIND_BY_SEGMENT_ID_AND_UNIQUE_ID
public static final java.lang.String FIND_BY_BY_USER_ID
public SegmentHelper()
public SegmentHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor)
public com.ibm.commerce.rest.utils.Instrumentor getInstrumentor()
public ShowMemberGroupDataAreaType getCustomerSegmentByPersonalizationId(java.lang.String personalizationId, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String accessProfile)
public boolean checkCustomerSegmentByPersonalizatoinId(java.lang.String personalizationId, java.lang.String segmentId, java.lang.String accessProfile)
public ShowMemberGroupDataAreaType getCustomerSegment(int pageNumber, int pageSize, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile) throws MemberGroupException
protected GetType buildGetVerb(ExpressionType expression)
protected SelectionCriteriaHelper buildExpression(java.lang.String expression, java.lang.String accessProfile)