@Path(value="store/{storeId}/wishlist") @Encoded public class WishlistHandler extends AbstractResourceHandler implements IResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
EXTERNAL_IDENTIFIER
The constant EXTERNAL_IDENTIFIER.
|
static java.lang.String |
FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME.
|
static java.lang.String |
RESOURCE_MAPPING_KEY
RESOURCE MAPPING KEY.
|
static java.lang.String |
RESOURCE_NAME
Resource name.
|
static java.lang.String |
WISHLIST_MAPPING_KEY
The Constant WISHLIST.
|
APPLICATION_ATOM_XML, APPLICATION_JSON, APPLICATION_XHTML_XML, APPLICATION_XML, CHANGE_VERB, PARAMETER_ACTION, PARAMETER_ACTION_DESCRIPTION, PARAMETER_CATALOG_ID, PARAMETER_CATALOG_ID_DESCRIPTION, PARAMETER_CURRENCY, PARAMETER_CURRENCY_DESCRIPTION, PARAMETER_FOR_USER, PARAMETER_FOR_USER_DESCRIPTION, PARAMETER_FOR_USER_ID, PARAMETER_FOR_USER_ID_DESCRIPTION, PARAMETER_LANG_ID, PARAMETER_LANG_ID_DESCRIPTION, PARAMETER_LOCALE, PARAMETER_LOCALE_DESCRIPTION, PARAMETER_MODE, PARAMETER_MODE_DESCRIPTION, PARAMETER_PAGE_NUMBER, PARAMETER_PAGE_NUMBER_DESCRIPTION, PARAMETER_PAGE_SIZE, PARAMETER_PAGE_SIZE_DESCRIPTION, PARAMETER_PROFILE_NAME, PARAMETER_PROFILE_NAME_DESCRIPTION, PARAMETER_QUERY, PARAMETER_QUERY_DESCRIPTION, PARAMETER_RESET_PASSWORD_DESCRIPTION, PARAMETER_RESPONSE_FORMAT, PARAMETER_RESPONSE_FORMAT_DESCRIPTION, PARAMETER_STORE_ID, PARAMETER_STORE_ID_DESCRIPTION, PARAMETER_WORKSPACE_IDENTIFIER, PARAMETER_WORKSPACE_IDENTIFIER_DESCRIPTION, PARAMETER_WORKSPACE_NAME, PARAMETER_WORKSPACE_NAME_DESCRIPTION, PARAMETER_WORKSPACE_TASK, PARAMETER_WORKSPACE_TASK_DESCRIPTION, PARAMETER_WORKSPACE_TASKGROUP, PARAMETER_WORKSPACE_TASKGROUP_DESCRIPTION, PROCESS_VERB, RESPONSE_200_DESCRIPTION, RESPONSE_201_DESCRIPTION, RESPONSE_204_DESCRIPTION, RESPONSE_400_DESCRIPTION, RESPONSE_401_DESCRIPTION, RESPONSE_403_DESCRIPTION, RESPONSE_404_DESCRIPTION, RESPONSE_500_DESCRIPTION
Constructor and Description |
---|
WishlistHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
createWishlist(java.lang.String storeId,
java.lang.String responseFormat)
Creates a wishlist for shopper.
|
javax.ws.rs.core.Response |
deleteWishlist(java.lang.String storeId,
java.lang.String externalId,
java.lang.String responseFormat,
java.lang.String itemId)
Delete wishlist information for a registered shopper.
|
javax.ws.rs.core.Response |
findWishlist(java.lang.String storeId,
java.lang.String responseFormat)
This method returns wish list for the logged in user.
|
javax.ws.rs.core.Response |
findWishlistByExternalId(java.lang.String externalId,
java.lang.String storeId,
java.lang.String guestAccessKey,
java.lang.String responseFormat)
This method returns wish list by external id.
|
javax.ws.rs.core.Response |
findWishlistByUserId_default(java.lang.String storeId,
java.lang.String responseFormat)
This method returns the default wish list for a logged in user.
|
javax.ws.rs.core.Response |
findWishlistItemsByExternalId(java.lang.String externalId,
java.lang.String storeId,
java.lang.String guestAccessKey,
java.lang.String responseFormat)
This method returns wish list items by wish list external id with paging support.
|
java.lang.String |
getFormattingGroupName()
Returns the formatting group name for resolving the struts action of the
formatting JSP.
|
WishlistHelper |
getHelper()
This method returns the BOD helper used to get wishlist data.
|
java.lang.String |
getResourceName()
This method returns the name of the resource used primarily to determine
the representation of the resource.
|
javax.ws.rs.core.Response |
processWishlist(java.lang.String storeId,
java.lang.String externalId)
Processes a wish list for shopper.
|
javax.ws.rs.core.Response |
updateWishlist(java.lang.String storeId,
java.lang.String externalId,
java.lang.String responseFormat,
java.lang.String addItem)
Update wishlist for a registered shopper.
|
createMapForProvider, createMapForProvider, generateResponseForEntireDataObject, getMapFromRequest, getStoreId, getUserId, isRequestInPreviewMode, mergeMapsForProvider, prepareAndValidate
addError, createMapForProviderWithResultData, documentApi, generateResponseFromHttpStatusCodeAndRespData, getActionRegistry, getBooleanParameterValue, getClassDescription, getDoubleParameterValue, getDoubleParameterValues, getEnumeratedParameterValue, getErrorCodeFromMessage, getExternalResourceName, getFormattedMessage, getFormattedMessageWithLocale, getInstrumentor, getIntegerParameterValue, getIntegerParameterValues, getLongParameterValue, getLongParameterValues, getParameterValue, getParameterValue, getParameterValues, getQueryRegistry, getRequest, getResponse, getUriInfo, handleException, initializeActionRegistry, initializeQueryRegistry, performAction, postProcess, preProcess, registerOperationWithMethodSignature, runQuery, staticConvertStreamToString, throwInvalidQueryNameException, throwInvalidQueryNameException, throwRestException, throwRestExceptionIfErrorsAreDetected, validatePageNumberPageSize
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generateResponseFromHttpStatusCodeAndRespData, postProcess, preProcess
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String RESOURCE_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
public static final java.lang.String EXTERNAL_IDENTIFIER
public static final java.lang.String WISHLIST_MAPPING_KEY
public java.lang.String getFormattingGroupName()
AbstractBaseResourceHandler
getFormattingGroupName
in interface IResourceHandler
getFormattingGroupName
in class AbstractBaseResourceHandler
public java.lang.String getResourceName()
IResourceHandler
getResourceName
in interface IResourceHandler
public WishlistHelper getHelper()
@GET @Path(value="@self") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findWishlist(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id of the request.responseFormat
- the response format.@GET @Path(value="@default") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findWishlistByUserId_default(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id of the request.responseFormat
- the response format.@GET @Path(value="{externalId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findWishlistByExternalId(@PathParam(value="externalId") java.lang.String externalId, @PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="guestAccessKey") java.lang.String guestAccessKey, @QueryParam(value="responseFormat") java.lang.String responseFormat)
externalId
- the external idstoreId
- the store Id of the request.guestAccessKey
- the guest access keyresponseFormat
- the response format.@GET @Path(value="{externalId}/item") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response findWishlistItemsByExternalId(@PathParam(value="externalId") java.lang.String externalId, @PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="guestAccessKey") java.lang.String guestAccessKey, @QueryParam(value="responseFormat") java.lang.String responseFormat)
externalId
- the external idstoreId
- the store Id of the request.guestAccessKey
- the guest access keyresponseFormat
- the response format.@POST @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) public javax.ws.rs.core.Response createWishlist(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the storeidresponseFormat
- the response format@POST @Path(value="{externalId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) public javax.ws.rs.core.Response processWishlist(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="externalId") java.lang.String externalId)
storeId
- the store idexternalId
- the external id of the wish list@PUT @Path(value="{externalId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) public javax.ws.rs.core.Response updateWishlist(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="externalId") java.lang.String externalId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="addItem") java.lang.String addItem)
storeId
- the store idexternalId
- the external idresponseFormat
- the response formataddItem
- the add item@DELETE @Path(value="{externalId}") @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response deleteWishlist(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="externalId") java.lang.String externalId, @QueryParam(value="responseFormat") java.lang.String responseFormat, @QueryParam(value="itemId") java.lang.String itemId)
storeId
- the store idexternalId
- the external idresponseFormat
- the response formatitemId
- the item id