public class GiftCenterFacadeClient extends AbstractGiftCenterFacadeClient
This class provides common methods that this and other utility classes of the GiftCenter facade can use. This class also provides a set of convenient Java APIs to represent particular GiftCenter operations. This set of Java APIs also includes APIs for Web-based requests to transform the name-value pair request into the appropriate request documents.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
CHANGE_VERB_ACTION_ADD, CHANGE_VERB_ACTION_CHANGE, CHANGE_VERB_ACTION_CREATE, CHANGE_VERB_ACTION_DELETE, CHANGE_VERB_ACTION_UPDATE
Constructor and Description |
---|
GiftCenterFacadeClient()
This method creates an instance of the client to communicate with the GiftCenter facade.
|
GiftCenterFacadeClient(BusinessContextType businessContext,
javax.security.auth.callback.CallbackHandler callbackHandler)
This method creates an instance of the client to communicate with the GiftCenter facade.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map |
addGiftListCoRegistrants(java.util.Map parameters)
This method adds new coregistrant details to the registry.
|
java.util.Map |
addItem(java.util.Map parameters)
This method adds an item to the GiftList.
|
java.util.Map |
announceGiftList(java.util.Map parameters)
This method invokes the gift list announcement service based on the input parameters.
|
java.util.Map |
authenticate(java.util.Map parameters)
This method invokes the authenticate service to authenticate the user for
the gift list.
|
java.util.Map |
changeGiftListStatus(java.util.Map parameters)
This method performs a Change GiftList status request.
|
java.util.Map |
completeGiftList(java.util.Map parameters)
This method invokes the gift list complete service to complete a gift registry.
|
java.util.Map |
createGiftList(java.util.Map parameters)
This method creates a gift list using the input provided in the map.
|
java.util.Map |
deleteGiftList(java.util.Map parameters)
This method deletes a GiftList.
|
java.util.Map |
deleteGiftListCoRegistrants(java.util.Map parameters)
This method deletes coregistrant details from the registry.
|
java.util.Map |
deleteItem(java.util.Map parameters)
This method deletes an item from the gift list.
|
java.util.Map |
deletePurchaseRecord(java.util.Map parameters)
This method delete purchase record of a Gift List.
|
java.util.List |
getCustomersWishListIds(java.util.List wishListParameters,
java.lang.Long userId,
java.lang.Integer storeId,
java.lang.Boolean create,
java.util.Locale locale)
This method finds a customer's wish lists.
|
java.util.Map |
updateAccessOptions(java.util.Map parameters)
This method updates the gift list access options.
|
java.util.Map |
updateDescription(java.util.Map parameters)
This method updates the description of the gift list.
|
java.util.Map |
updateEventInformation(java.util.Map parameters)
This method updates event information for the gift list.
|
java.util.Map |
updateGiftList(java.util.Map parameters)
This method updates the gift list using the input provided in the map.
|
java.util.Map |
updateGiftListCoRegistrants(java.util.Map parameters)
This method updates Gift List CoRegistrant details.
|
java.util.Map |
updateGiftListRegistrant(java.util.Map parameters)
This method updates registrant details.
|
java.util.Map |
updateItem(java.util.Map parameters)
This method updates an item in the gift list.
|
java.util.Map |
updatePurchaseRecord(java.util.Map parameters)
This method updates purchase record to the GiftList.
|
changeGiftList, getGiftList, getGiftList, getGiftList, processGiftList
createActionExpression, createChangeVerb, createGetVerb, createGetVerb, createProcessVerb, createSyncVerb
public static final java.lang.String COPYRIGHT
public GiftCenterFacadeClient()
public GiftCenterFacadeClient(BusinessContextType businessContext, javax.security.auth.callback.CallbackHandler callbackHandler)
businessContext
- The default business context to associate with the messages
when making requests.callbackHandler
- Used for authentication purposes so the controller can give
the authentication information to the transport when required.public java.util.Map createGiftList(java.util.Map parameters) throws GiftListException
parameters
- - a HashMap of type HashMappopulateGiftListResponse
method.GiftListException
- - when the operation was not successful.GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#processGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map deleteGiftList(java.util.Map parameters) throws GiftListException
parameters
- the input parameters.populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#processGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map authenticate(java.util.Map parameters) throws GiftCenterException
ProcessGiftList
service with
the GiftListAccessSpecifier
noun part which contains the
guest or manage access password.
The parameters are:
parameters
- Map of input parameters.populateGiftListResponse
method.GiftCenterException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#processGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map announceGiftList(java.util.Map parameters) throws GiftListException
message
- The message to be to shown to guests who are
viewing the email announcementsubject
- The subject text that need to be used in the
emailtemplate
- The email template name that need to be used
for sending the emailsenderName
- The name of the sendersenderEmail
- The e-mail address of the senderrecipientName
- Name of the recipientrecipientEmail
- E-mail address of the recipientaddressingMethod
- The method in which the recipient is
addressed in the mail. E.g they are directly addressed (TO), they are
copied on the mail (CC) etc..parameters
- The map containing the input parameters. The keys that need to
be used in the input parameter map are defined above.populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#processGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map completeGiftList(java.util.Map parameters) throws GiftListException
giftListId
or the externalId.parameters
- The map containing the input parameter.populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#processGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map addItem(java.util.Map parameters) throws GiftListException
ChangeGiftList
service with the items to be added.parameters
- Map of input parameters. The mandatory parameters required
are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateItem(java.util.Map parameters) throws GiftListException
ChangeGiftList
service with the items to be added.parameters
- Map of input parameters. The mandatory parameters required
are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map deleteItem(java.util.Map parameters) throws GiftListException
ChangeGiftList
service with the items to be deleted.parameters
- Map of input parameters. The mandatory parameters required
are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map addGiftListCoRegistrants(java.util.Map parameters) throws GiftListException
ChangeGiftListCoRegistrant
service with the list
of coregistrant noun parts to be added.parameters
- Map of input parameters. The mandatory parameters required
are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateGiftListCoRegistrants(java.util.Map parameters) throws GiftListException
ChangeGiftListCoRegistrant
service with the list of
coregistrant noun parts to be updatedparameters
- Map of input parameters. The mandatory parameters required
are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map deleteGiftListCoRegistrants(java.util.Map parameters) throws GiftListException
parameters
- Map of input parameters. The required parameters are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateDescription(java.util.Map parameters) throws GiftCenterException
ChangeGiftList
service with the description
part to be updated. The description part contains the name,
description, and guest message for the gift list.parameters
- Map of input parameters. The parameters accepted are: populateGiftListResponse
method.GiftCenterException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateEventInformation(java.util.Map parameters) throws GiftCenterException
ChangeGiftList
service with the even information part to be
added. The event information part contains the event date, post event/pre
event shipping addresses, preference for accepting gift cards, for this
gift listparameters
- Map of input parameters.The parameters accepted are: preEventShippingPreference
is O
. The pre-event shipping address field names are :preEventShippingPreference
is O
. The post-event shipping address field names are :populateGiftListResponse
method.GiftCenterException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateAccessOptions(java.util.Map parameters) throws GiftCenterException
ChangeGiftList
service with the
GiftListAccessSpecifier
noun part to be updated. The
GiftListAccessSpecifier
noun part contains the access
specifier, the guest access password and manage access password.parameters
- Map of input parameters. The parameters accepted are: populateGiftListResponse
method.GiftCenterException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateGiftListRegistrant(java.util.Map parameters) throws GiftCenterException
ChangeGiftListRegistrantMediator
service with the registrant part to be updated. The registrant part contains the registrant
relationship and address.parameters
- Map of input parameters. The parameters accepted are: populateGiftListResponse
method.GiftCenterException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updatePurchaseRecord(java.util.Map parameters) throws GiftListException
ChangeGiftList
service with the purchase records to be
added.parameters
- Map of input parameters. The parameters accepted are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map deletePurchaseRecord(java.util.Map parameters) throws GiftListException
ChangeGiftList
service with the purchase record to be
deleted.parameters
- Map of input parameters. The parameters accepted are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map updateGiftList(java.util.Map parameters) throws GiftListException
parameters
- - a HashMap of type HashMappopulateGiftListResponse
method.GiftListException
- - when the operation was not successful.GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, List, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.Map changeGiftListStatus(java.util.Map parameters) throws GiftListException
parameters
- input parameters. The parameters accepted are: populateGiftListResponse
method.GiftListException
GiftCenterFacadeClient#buildGiftListDataObject(Map, String)}
{@link GiftCenterFacadeClient#changeGiftList(String, String, GiftListType)}
{@link GiftCenterFacadeClient#populateGiftListResponse(Map, GiftListType)}
public java.util.List getCustomersWishListIds(java.util.List wishListParameters, java.lang.Long userId, java.lang.Integer storeId, java.lang.Boolean create, java.util.Locale locale) throws GiftListException
wishListParameters
- A list of wish list IDs or parameters. A value of . means locate the customer's current
wish list. A value of * means locate all of the customer's wish lists. Otherwise, it is assumed the
value is a unique identifier of a wish list (in the GRGFTREG database table).userId
- The customer's member ID.storeId
- The store ID.create
- Should a wish list be created if a wish list does not already exist.locale
- The customer's locale.GiftListException