public class WishlistHelper
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_BY_EXTERNALID_XPATH
The XPath key to find a GiftList noun by externaId.
|
static java.lang.String |
FIND_BY_EXTERNALID_XPATH2
The Constant FIND_BY_EXTERNALID_XPATH2.
|
static java.lang.String |
FIND_BY_USERID_DEFAULT_XPATH
The Constant FIND_BY_UserId_default_XPATH.
|
static java.lang.String |
FIND_BY_USERID_XPATH
The Constant FIND_BY_UserId_XPATH.
|
static java.lang.String |
FIND_ITEMS_BY_EXTERNALID_XPATH
The XPath key to find a GiftList items noun part by externaId.
|
static java.lang.String |
FIND_ITEMS_BY_EXTERNALID_XPATH2
The Constant FIND_BY_EXTERNALID_XPATH2.
|
Constructor and Description |
---|
WishlistHelper() |
WishlistHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor)
Instantiates a new wish list helper.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
changeWishlist(java.util.Map<java.lang.String,java.lang.Object> requestMap,
java.lang.String resourceName,
java.lang.String urlParamGrpName,
java.lang.String actionCode,
BusinessContextType bContext,
javax.security.auth.callback.CallbackHandler cbh)
Change wishlist.
|
com.ibm.commerce.rest.utils.Instrumentor |
getInstrumentor()
Get the instrumentor associated with this request instance.
|
ShowGiftListDataAreaType |
getWishlist(BusinessContextType bContext,
javax.security.auth.callback.CallbackHandler cbh,
java.lang.String expression,
java.lang.String accessProfile)
This method performs a
GetWishlist service request. |
ShowGiftListDataAreaType |
getWishlist(BusinessContextType bContext,
javax.security.auth.callback.CallbackHandler cbh,
java.lang.String expression,
java.lang.String accessProfile,
java.lang.Long recordStartNumber,
java.lang.Long maxItems)
This method performs a
GetWishlist service request with paging support. |
java.util.Map<java.lang.String,java.lang.Object> |
processWishlist(java.util.Map<java.lang.String,java.lang.Object> requestMap,
java.lang.String resourceName,
java.lang.String urlParamGrpName,
java.lang.String actionCode,
BusinessContextType bContext,
javax.security.auth.callback.CallbackHandler cbh)
Process wishlist.
|
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_BY_EXTERNALID_XPATH
public static final java.lang.String FIND_BY_EXTERNALID_XPATH2
public static final java.lang.String FIND_ITEMS_BY_EXTERNALID_XPATH
public static final java.lang.String FIND_ITEMS_BY_EXTERNALID_XPATH2
public static final java.lang.String FIND_BY_USERID_DEFAULT_XPATH
public static final java.lang.String FIND_BY_USERID_XPATH
public WishlistHelper()
public WishlistHelper(com.ibm.commerce.rest.utils.Instrumentor instrumentor)
instrumentor
- the instrumentorpublic com.ibm.commerce.rest.utils.Instrumentor getInstrumentor()
public ShowGiftListDataAreaType getWishlist(BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile) throws GiftCenterException
GetWishlist
service request.bContext
- the b contextcbh
- the cbhexpression
- the XPath expression.accessProfile
- the access profile of the get expression.GiftCenterException
- the exception representing the error of the
GetWishlist request.
public ShowGiftListDataAreaType getWishlist(BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh, java.lang.String expression, java.lang.String accessProfile, java.lang.Long recordStartNumber, java.lang.Long maxItems) throws GiftCenterException
GetWishlist
service request with paging support.bContext
- the b contextcbh
- the cbhexpression
- the XPath expression.accessProfile
- the access profile of the get expression.recordStartNumber
- the record start number.maxItems
- the maximum number of items to return.GiftCenterException
- the exception representing the error of the
GetWishlist request.
public java.util.Map<java.lang.String,java.lang.Object> processWishlist(java.util.Map<java.lang.String,java.lang.Object> requestMap, java.lang.String resourceName, java.lang.String urlParamGrpName, java.lang.String actionCode, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh) throws java.lang.Exception
requestMap
- the request mapresourceName
- the resource nameurlParamGrpName
- the url param grp nameactionCode
- the action codebContext
- the b contextcbh
- the cbhjava.lang.Exception
- the exceptionpublic java.util.Map<java.lang.String,java.lang.Object> changeWishlist(java.util.Map<java.lang.String,java.lang.Object> requestMap, java.lang.String resourceName, java.lang.String urlParamGrpName, java.lang.String actionCode, BusinessContextType bContext, javax.security.auth.callback.CallbackHandler cbh) throws java.lang.Exception
requestMap
- the request mapresourceName
- the resource nameurlParamGrpName
- the url param grp nameactionCode
- the action codebContext
- the b contextcbh
- the cbhjava.lang.Exception
- the exception