public class PromotionHelper
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 | DEFAULT_EXPRESSION
The default expression, used to retrieve promotion.
|
static java.lang.String | FIND_BY_ID_EXPRESSION
The expression to find promotion by id.
|
static java.lang.String | FIND_BY_NAME_EXPRESSION
The expression to find promotion by name.
|
Constructor and Description |
---|
PromotionHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor, javax.ws.rs.core.UriInfo uriInfo)
Instantiates a new promotion data 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, int pageNumber, int pageSize)
This method creates the Order Get Verb.
|
com.ibm.commerce.rest.utils.Instrumentor | getInstrumentor()
Get the instrumentor associated with this request instance.
|
commonj.sdo.DataObject | getPromotion(BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile, java.lang.String dataLanguageIds, int pageNumber, int pageSize)
This method performs a GetPromotion service request and returns DataObject for DataArea.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String DEFAULT_ACCESS_PROFILE
public static final java.lang.String DEFAULT_EXPRESSION
public static final java.lang.String FIND_BY_NAME_EXPRESSION
public static final java.lang.String FIND_BY_ID_EXPRESSION
public PromotionHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor, javax.ws.rs.core.UriInfo uriInfo)
public com.ibm.commerce.rest.utils.Instrumentor getInstrumentor()
public commonj.sdo.DataObject getPromotion(BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile, java.lang.String dataLanguageIds, int pageNumber, int pageSize) throws PromotionException
protected GetType buildGetVerb(ExpressionType expression, int pageNumber, int pageSize)
protected SelectionCriteriaHelper buildExpression(java.lang.String expression, java.lang.String accessProfile)