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 |
---|---|
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
accessProfile
query parameter.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)
instrumentor
- the instrumentorpublic 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)
personalizationId
- personalization IDbContext
- the b contextcbh
- the cbhaccessProfile
- the access profile of the get expression.public boolean checkCustomerSegmentByPersonalizatoinId(java.lang.String personalizationId, java.lang.String segmentId, java.lang.String accessProfile)
personalizationId
- personalizationIdsegmentId
- segmentIdaccessProfile
- accessProfilepublic ShowMemberGroupDataAreaType getCustomerSegment(int pageNumber, int pageSize, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile) throws MemberGroupException
getCustomerSegment
service request.pageNumber
- pageSize
- bContext
- cbh
- expression
- accessProfile
- MemberGroupException