@Path(value="store/{storeId}/person/@self/contact") @Encoded public class PersonContactHandler extends AbstractResourceHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CONTACT_MAPPING_KEY
Resource mapping key for contact
|
static java.lang.String |
COPYRIGHT
IBM Copyright notice field.
|
static java.lang.String |
FORMAT_GROUP_NAME
The constant FORMAT_GROUP_NAME
|
static java.lang.String |
PARAMETER_ADDRESS_ID
Parameter constant for address ID
|
static java.lang.String |
PARAMETER_ADDRESS_ID_DESCRIPTION
Parameter description constants for address ID
|
static java.lang.String |
PARAMETER_ADDRESS_TYPE
Parameter constant for address type
|
static java.lang.String |
PARAMETER_ADDRESS_TYPE_DESCRIPTION
Parameter description constants for address type
|
static java.lang.String |
PARAMETER_NICKNAME
Parameter constant for nickname
|
static java.lang.String |
PARAMETER_NICKNAME_DESCRIPTION
Parameter description constants for nickname
|
static java.lang.String |
RESOURCE_NAME
Resource name for person
|
static java.lang.String |
SINGLE_CONTACT_MAPPING_KEY
The constant SINGLE_CONTACT_MAPPING_KEY
|
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 |
---|
PersonContactHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addPersonContact(java.lang.String storeId,
java.lang.String responseFormat)
This method performs a
AddPersonContact to he shopper's addressBook. |
javax.ws.rs.core.Response |
deletePersonContact(java.lang.String storeId,
java.lang.String nickName,
java.lang.String responseFormat)
Delete a Contact for a registered shopper.
|
javax.ws.rs.core.Response |
findPersonContactById(java.lang.String storeId,
java.lang.String addressId,
java.lang.String responseFormat)
This method retrieve a person contact by address id.
|
javax.ws.rs.core.Response |
findPersonContactByNickName(java.lang.String storeId,
java.lang.String nickName,
java.lang.String responseFormat)
This method retrieve a person contact by nick name.
|
javax.ws.rs.core.Response |
getAllPersonContact(java.lang.String storeId,
java.lang.String addressType,
java.lang.String responseFormat)
Get contacts in a person's address book.
|
java.lang.String |
getExternalResourceName()
Get the resource name to show externally.
|
java.lang.String |
getFormattingGroupName()
This method returns the format group name to locate JSP template.
|
PersonHelper |
getHelper()
This method returns the BOD helper used to get product 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 |
updatePersonContact(java.lang.String storeId,
java.lang.String nickName,
java.lang.String responseFormat)
Update person contact data for a shopper.
|
createMapForProvider, createMapForProvider, generateResponseForEntireDataObject, getMapFromRequest, getStoreId, getUserId, isRequestInPreviewMode, mergeMapsForProvider, prepareAndValidate
addError, createMapForProviderWithResultData, documentApi, generateResponseFromHttpStatusCodeAndRespData, getActionRegistry, getBooleanParameterValue, getClassDescription, getDoubleParameterValue, getDoubleParameterValues, getEnumeratedParameterValue, getErrorCodeFromMessage, 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
public static final java.lang.String COPYRIGHT
public static final java.lang.String RESOURCE_NAME
public static final java.lang.String CONTACT_MAPPING_KEY
public static final java.lang.String SINGLE_CONTACT_MAPPING_KEY
public static final java.lang.String FORMAT_GROUP_NAME
public static final java.lang.String PARAMETER_ADDRESS_TYPE
public static final java.lang.String PARAMETER_ADDRESS_TYPE_DESCRIPTION
public static final java.lang.String PARAMETER_ADDRESS_ID
public static final java.lang.String PARAMETER_ADDRESS_ID_DESCRIPTION
public static final java.lang.String PARAMETER_NICKNAME
public static final java.lang.String PARAMETER_NICKNAME_DESCRIPTION
public java.lang.String getResourceName()
IResourceHandler
public java.lang.String getFormattingGroupName()
getFormattingGroupName
in interface IResourceHandler
getFormattingGroupName
in class AbstractBaseResourceHandler
public PersonHelper getHelper()
@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) public javax.ws.rs.core.Response getAllPersonContact(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="addressType") java.lang.String addressType, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- store IDaddressType
- address type.responseFormat
- response format.@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="byAddressId/{addressId}") public javax.ws.rs.core.Response findPersonContactById(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="addressId") java.lang.String addressId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- store IDaddressId
- address id.responseFormat
- response format.@GET @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{nickName}") public javax.ws.rs.core.Response findPersonContactByNickName(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="nickName") java.lang.String nickName, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store Id.nickName
- the contact name saved in addressBook by registered shopper.responseFormat
- the response format (xml, json, or atom).@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 addPersonContact(@PathParam(value="storeId") java.lang.String storeId, @QueryParam(value="responseFormat") java.lang.String responseFormat)
AddPersonContact
to he shopper's addressBook.storeId
- the store Id.responseFormat
- the response format (xml, json, or atom).@PUT @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Consumes(value={"application/json","application/xml"}) @Path(value="{nickName}") public javax.ws.rs.core.Response updatePersonContact(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="nickName") java.lang.String nickName, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- store idnickName
- nick nameresponseFormat
- response format@DELETE @Produces(value={"application/json","application/xml","application/xhtml+xml","application/atom+xml"}) @Path(value="{nickName}") public javax.ws.rs.core.Response deletePersonContact(@PathParam(value="storeId") java.lang.String storeId, @PathParam(value="nickName") java.lang.String nickName, @QueryParam(value="responseFormat") java.lang.String responseFormat)
storeId
- the store idnickName
- the nick nameresponseFormat
- the response formatpublic java.lang.String getExternalResourceName()
AbstractBaseResourceHandler
getExternalResourceName
in class AbstractBaseResourceHandler