|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectatg.nucleus.logging.VariableArgumentApplicationLoggingImpl
atg.nucleus.GenericService
atg.droplet.EmptyFormHandler
atg.droplet.GenericFormHandler
atg.droplet.TransactionalFormHandler
atg.commerce.gifts.GiftlistFormHandler
atg.projects.store.gifts.StoreGiftlistFormHandler
public class StoreGiftlistFormHandler
Extensions to the atg.commerce.gifts.GiftlistFormHandler.
GiftlistFormHandler| Field Summary | |
|---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
protected static java.lang.String |
GIFT_LIST_DATE_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_DESCRIPTION_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_EVENT_NAME_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_EVENT_TYPE_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_INSTRUCTIONS_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_MONTH_MAP_KEY
|
static java.lang.String |
GIFT_LIST_NOT_LOGGED_IN
|
protected static java.lang.String |
GIFT_LIST_PUBLISHED_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_SHIPPING_ADDRESS_MAP_KEY
|
protected static java.lang.String |
GIFT_LIST_YEAR_MAP_KEY
|
protected static java.lang.String |
GIFT_LISTS_PROPERTY
|
static java.lang.String |
GIFTLIST_ID
Gift list id constant. |
protected java.lang.String |
mAddItemToGiftlistLoginURL
property: addItemToGiftlistLoginURL |
protected atg.commerce.gifts.GiftlistSiteFilter |
mGiftlistSiteFilter
property: giftlistSiteFilter |
protected java.lang.String |
mMoveItemsFromCartLoginURL
property: moveItemsFromCartLoginURL |
protected atg.userprofiling.PropertyManager |
mProfilePropertyManager
property: profilePropertyManager |
protected java.lang.String |
mRemoveItemsFromGiftlistErrorURL
property: removeItemsFromGiftlistErrorURL |
protected java.lang.String |
mRemoveItemsFromGiftlistSuccessURL
property: removeItemsFromGiftlistSuccessURL |
static java.lang.String |
MSG_DUPLICATE_EVENT_NAME
|
static java.lang.String |
MSG_ERROR_LONG_DESCRIPTION
|
static java.lang.String |
MSG_ERROR_LONG_SPECIAL_INSTRUCTIONS
|
static java.lang.String |
MSG_INVALID_DATE
|
static java.lang.String |
PRODUCT_ID
Product id constant. |
static java.lang.String |
QUANTITY
Quantity constant. |
static java.lang.String |
SKU_ID
Sku id constant. |
static java.lang.String |
SUCCESS_URL
Success URL constant. |
static java.lang.String |
WISH_LIST_NOT_LOGGED_IN
|
| Fields inherited from class atg.commerce.gifts.GiftlistFormHandler |
|---|
dateUtil, LOCALE_PARAM, mEnableSecurity, MSG_ERROR_ADDING_TO_GIFTLIST, MSG_ERROR_DELETING_GIFTLIST, MSG_ERROR_NO_SUCH_GIFTLIST, MSG_ERROR_REMOVING_RROM_GIFTLIST, MSG_ERROR_SAVING_GIFTLIST, MSG_ERROR_UPDATING_GIFTLIST_ITEMS, MSG_INVALID_EVENT_DATE, MSG_INVALID_GIFTLIST_QUANTITY, MSG_NO_GIFTLIST_TO_MODIFY, MSG_NO_ITEM_FOUND, MSG_NO_ITEMS_TO_ADD, MSG_NO_SKU_WITH_ID, MSG_QUANTITY_LESSTHAN_OR_EQUALTO_ZERO, MY_RESOURCE_NAME, QUANTITY_NOT_VALID, sResourceBundle |
| Fields inherited from class atg.droplet.GenericFormHandler |
|---|
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS |
| Fields inherited from class atg.nucleus.GenericService |
|---|
SERVICE_INFO_KEY |
| Fields inherited from interface atg.nucleus.logging.TraceApplicationLogging |
|---|
DEFAULT_LOG_TRACE_STATUS |
| Fields inherited from interface atg.nucleus.logging.ApplicationLogging |
|---|
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS |
| Constructor Summary | |
|---|---|
StoreGiftlistFormHandler()
|
|
| Method Summary | |
|---|---|
protected void |
addLoginErrorParameter(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Adds 'error' query parameter to the request with the resource key to the error message that should be displayed on the login page. |
void |
clearForm()
Clears the form handler property values. |
java.lang.String |
getAddItemToGiftlistLoginURL()
|
atg.service.util.CurrentDate |
getCurrentDate()
Gets the CurrentDate component. |
atg.commerce.gifts.GiftlistSiteFilter |
getGiftlistSiteFilter()
|
java.lang.String |
getMoveItemsFromCartLoginURL()
|
java.lang.String |
getMoveToNewGiftListAddressErrorURL()
|
java.lang.String |
getMoveToNewGiftListAddressSuccessURL()
Returns property MoveToNewGiftListAddressSuccessURL. |
atg.userprofiling.PropertyManager |
getProfilePropertyManager()
|
java.lang.String |
getRemoveItemsFromGiftlistErrorURL()
|
java.lang.String |
getRemoveItemsFromGiftlistSuccessURL()
|
SessionBean |
getSessionBean()
|
java.lang.String |
getUnmodifiedEventName()
|
java.lang.String |
getUpdateGiftlistAndItemsErrorURL()
|
java.lang.String |
getUpdateGiftlistAndItemsSuccessURL()
Returns property UpdateGiftlistAndItemsSuccessURL. |
boolean |
handleCancel(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Clears form errors as part of the cancel operation. |
boolean |
handleInitializeGiftListForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Initializes Gift list form with previously entered data stored in the session-scoped component. |
boolean |
handleMoveToNewGiftListAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Stores entered by user data to the sessions-scoped component before moving to Add New Address URL. |
boolean |
handleRemoveItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
HandleRemoveItemsFromGiftlist is called when the user hits the "delete" button on the wish list page. |
boolean |
handleUpdateGiftlistAndItems(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
The combined handler that allows to update gift list and its items at the same time. |
void |
postMoveItemsFromCart(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just after an item has been moved from shopping cart. |
void |
postRemoveItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just after items are removed from a a gift list. |
void |
postSaveGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Overrides base method to clear the form after the new gift list has been successfully saved. |
void |
postUpdateGiftlistAndItems(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just after a gift list and gift items are updated. |
void |
preAddItemToGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Before adding an item to the giftlist validate quantity and SKU ID, also check if user is explicitly logged in. |
void |
preMoveItemsFromCart(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Before moving item to the gift list check if user is explicitly logged in. |
void |
preRemoveItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just before items are removed from a a gift list. |
void |
preSaveGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Calls validatation of event name |
void |
preUpdateGiftlistAndItems(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just before a gift list and gift items are updated. |
protected void |
removeItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Removes the given items to the selected gift list. |
void |
setAddItemToGiftlistLoginURL(java.lang.String pAddItemToGiftlistLoginURL)
|
void |
setCurrentDate(atg.service.util.CurrentDate pCurrentDate)
Sets the CurrentDate component. |
void |
setGiftlist(atg.repository.RepositoryItem pGiftlist)
Initializes all the form values from the provided gift list. |
void |
setGiftlistSiteFilter(atg.commerce.gifts.GiftlistSiteFilter pGiftlistSiteFilter)
|
void |
setMoveItemsFromCartLoginURL(java.lang.String pMoveItemsFromCartLoginURL)
|
void |
setMoveToNewGiftListAddressErrorURL(java.lang.String pMoveToNewGiftListAddressErrorURL)
|
void |
setMoveToNewGiftListAddressSuccessURL(java.lang.String pMoveToNewGiftListAddressSuccessURL)
|
void |
setProfilePropertyManager(atg.userprofiling.PropertyManager pProfilePropertyManager)
|
void |
setRemoveItemsFromGiftlistErrorURL(java.lang.String pRemoveItemsFromGiftlistErrorURL)
|
void |
setRemoveItemsFromGiftlistSuccessURL(java.lang.String pRemoveItemsFromGiftlistSuccessURL)
|
void |
setSessionBean(SessionBean pSessionBean)
|
void |
setUnmodifiedEventName(java.lang.String pUnmodifiedEventName)
|
void |
setUpdateGiftlistAndItemsErrorURL(java.lang.String pUpdateGiftlistAndItemsErrorURL)
|
void |
setUpdateGiftlistAndItemsSuccessURL(java.lang.String pUpdateGiftlistAndItemsSuccessURL)
|
void |
storeNewGiftListData()
Stores entered by user data to the session-scoped component. |
protected void |
updateOrder(atg.commerce.order.CommerceItem pItem,
long pQuantity,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Will update the quantity of the commerceItem passed in. |
protected void |
validateEventName(java.lang.String pEventName,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This method validates event name. |
| Methods inherited from class atg.commerce.gifts.GiftlistFormHandler |
|---|
addFormException, addItemToGiftlist, checkGiftlistAccess, createGiftlist, createNewShippingAddress, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, generatePropertyPath, getAddItemToGiftlistErrorURL, getAddItemToGiftlistSuccessURL, getAddresses, getCatalogRefIds, getCatalogTools, getComments, getCreateGiftlistErrorURL, getCreateGiftlistSuccessURL, getDate, getDates, getDefaultLocale, getDeleteGiftlistErrorURL, getDeleteGiftlistSuccessURL, getDescription, getEventDate, getEventName, getEventType, getEventTypes, getGeneralFailureURL, getGeneralSuccessURL, getGiftlistId, getGiftlistManager, getGiftlistRepository, getInstructions, getIsNewAddress, getIsPublic, getIsPublished, getItemIds, getItemRemovedFromOrderEventType, getMonth, getMonths, getMoveItemsFromCartErrorURL, getMoveItemsFromCartSuccessURL, getNewAddress, getNewAddressName, getOrder, getOrderManager, getPipelineManager, getProductId, getProfile, getProfileTools, getQuantity, getQuantity, getRemoveGiftitemIds, getSaveGiftlistErrorURL, getSaveGiftlistSuccessURL, getShippingAddressId, getShoppingCart, getSiteId, getSpecialInstructions, getUpdateGiftlistErrorURL, getUpdateGiftlistItemsErrorURL, getUpdateGiftlistItemsSuccessURL, getUpdateGiftlistSuccessURL, getUserLocale, getYear, getYears, handleAddItemToGiftlist, handleCreateGiftlist, handleDeleteGiftlist, handleMoveItemsFromCart, handlePipelineError, handleSaveGiftlist, handleUpdateGiftlist, handleUpdateGiftlistItems, isEnableSecurity, isSendItemRemovedMessages, isUseRequestLocale, moveItemsFromCart, postAddItemToGiftlist, postCreateGiftlist, postDeleteGiftlist, postUpdateGiftlist, postUpdateGiftlistItems, preCreateGiftlist, preDeleteGiftlist, preUpdateGiftlist, preUpdateGiftlistItems, processException, processPipelineErrors, saveGiftlist, sendScenarioEvent, sendScenarioEvent, setAddItemToGiftlistErrorURL, setAddItemToGiftlistSuccessURL, setCatalogRefIds, setCatalogTools, setComments, setCreateGiftlistErrorURL, setCreateGiftlistSuccessURL, setDate, setDefaultLocale, setDeleteGiftlistErrorURL, setDeleteGiftlistSuccessURL, setDescription, setEnableSecurity, setEventDate, setEventName, setEventType, setGeneralFailureURL, setGeneralSuccessURL, setGiftlistId, setGiftlistManager, setGiftlistRepository, setInstructions, setIsNewAddress, setIsPublic, setIsPublished, setItemIds, setItemRemovedFromOrderEventType, setMonth, setMoveItemsFromCartErrorURL, setMoveItemsFromCartSuccessURL, setNewAddress, setNewAddressName, setOrderManager, setPipelineManager, setProductId, setProfile, setProfileTools, setQuantity, setRemoveGiftitemIds, setSaveGiftlistErrorURL, setSaveGiftlistSuccessURL, setSendItemRemovedMessages, setShippingAddressId, setShoppingCart, setSiteId, setSpecialInstructions, setUpdateGiftlistErrorURL, setUpdateGiftlistItemsErrorURL, setUpdateGiftlistItemsSuccessURL, setUpdateGiftlistSuccessURL, setUseRequestLocale, setYear, updateEventDate, updateGiftlist, updateGiftlistItems, validateGiftlistId |
| Methods inherited from class atg.droplet.TransactionalFormHandler |
|---|
afterSet, beforeSet, checkFormRedirect, commitTransaction, getTransactionDemarcation, getTransactionStatus, isEnsureTransaction, isRollbackTransaction, isRollbackTransactionOnUnhandledException, isTransactionMarkedAsRollback, setEnsureTransaction, setRollbackTransaction, setRollbackTransactionOnUnhandledException, setTransactionDemarcation |
| Methods inherited from class atg.droplet.GenericFormHandler |
|---|
addFormException, addUncheckedFormException, createFormSubmissionMessage, getCancelURL, getCheckForValidSession, getFormError, getFormExceptions, getFormName, getMessagePort, getMessageSource, getMessageType, getPropertyExceptions, getSendMessages, getUncheckedFormExceptions, handleFormException, handleUncheckedFormException, hasUncheckedFormExceptions, isDeferForwardsAndRedirects, isRestorableForm, isUseForwards, isValidSession, redirectOrForward, resetFormExceptions, setCancelURL, setCheckForValidSession, setDeferForwardsAndRedirects, setFormName, setMessagePort, setMessageSource, setMessageType, setRestorableForm, setSendMessages, setUseForwards |
| Methods inherited from class atg.droplet.EmptyFormHandler |
|---|
afterGet, beforeGet |
| Methods inherited from class atg.nucleus.GenericService |
|---|
addLogListener, createAdminServlet, doStartService, doStopService, getAbsoluteName, getAdminServlet, getAdminServletOutputStreamEncoding, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, isAdminServletUseServletOutputStream, isLoggingDebug, isLoggingError, isLoggingInfo, isLoggingTrace, isLoggingWarning, isRunning, logDebug, logDebug, logDebug, logError, logError, logError, logInfo, logInfo, logInfo, logTrace, logTrace, logTrace, logWarning, logWarning, logWarning, nameContextElementBound, nameContextElementUnbound, removeLogListener, reResolveThis, resolveName, resolveName, resolveName, resolveName, sendLogEvent, setAdminServletOutputStreamEncoding, setAdminServletUseServletOutputStream, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
| Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
|---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final java.lang.String GIFT_LIST_EVENT_NAME_MAP_KEY
protected static final java.lang.String GIFT_LIST_MONTH_MAP_KEY
protected static final java.lang.String GIFT_LIST_DATE_MAP_KEY
protected static final java.lang.String GIFT_LIST_YEAR_MAP_KEY
protected static final java.lang.String GIFT_LIST_SHIPPING_ADDRESS_MAP_KEY
protected static final java.lang.String GIFT_LIST_EVENT_TYPE_MAP_KEY
protected static final java.lang.String GIFT_LIST_PUBLISHED_MAP_KEY
protected static final java.lang.String GIFT_LIST_DESCRIPTION_MAP_KEY
protected static final java.lang.String GIFT_LIST_INSTRUCTIONS_MAP_KEY
protected static final java.lang.String GIFT_LISTS_PROPERTY
public static final java.lang.String MSG_INVALID_DATE
public static final java.lang.String MSG_ERROR_LONG_DESCRIPTION
public static final java.lang.String MSG_ERROR_LONG_SPECIAL_INSTRUCTIONS
public static final java.lang.String MSG_DUPLICATE_EVENT_NAME
public static final java.lang.String GIFT_LIST_NOT_LOGGED_IN
public static final java.lang.String WISH_LIST_NOT_LOGGED_IN
public static final java.lang.String CLASS_VERSION
public static final java.lang.String GIFTLIST_ID
public static final java.lang.String SUCCESS_URL
public static final java.lang.String SKU_ID
public static final java.lang.String QUANTITY
public static final java.lang.String PRODUCT_ID
protected atg.commerce.gifts.GiftlistSiteFilter mGiftlistSiteFilter
protected java.lang.String mAddItemToGiftlistLoginURL
protected java.lang.String mMoveItemsFromCartLoginURL
protected atg.userprofiling.PropertyManager mProfilePropertyManager
protected java.lang.String mRemoveItemsFromGiftlistSuccessURL
protected java.lang.String mRemoveItemsFromGiftlistErrorURL
| Constructor Detail |
|---|
public StoreGiftlistFormHandler()
| Method Detail |
|---|
public atg.commerce.gifts.GiftlistSiteFilter getGiftlistSiteFilter()
public void setGiftlistSiteFilter(atg.commerce.gifts.GiftlistSiteFilter pGiftlistSiteFilter)
pGiftlistSiteFilter - the giftlistSiteFilter to setpublic void setAddItemToGiftlistLoginURL(java.lang.String pAddItemToGiftlistLoginURL)
pAddItemToGiftlistLoginURL - - The property to store the URL for where the user should
be redirected if they attempt to add an item to the gift
list without being logged in.public java.lang.String getAddItemToGiftlistLoginURL()
public void setMoveItemsFromCartLoginURL(java.lang.String pMoveItemsFromCartLoginURL)
pMoveItemsFromCartLoginURL - - the property to store the URL for where the user should
be redirected if they attempt to move items from cart to
the gift list without being logged in.public java.lang.String getMoveItemsFromCartLoginURL()
public void setProfilePropertyManager(atg.userprofiling.PropertyManager pProfilePropertyManager)
pProfilePropertyManager - - the property manager for profiles, used to see if the user is logged in.public atg.userprofiling.PropertyManager getProfilePropertyManager()
public void setRemoveItemsFromGiftlistSuccessURL(java.lang.String pRemoveItemsFromGiftlistSuccessURL)
pRemoveItemsFromGiftlistSuccessURL - - remove items from gift list success URL.public java.lang.String getRemoveItemsFromGiftlistSuccessURL()
public void setRemoveItemsFromGiftlistErrorURL(java.lang.String pRemoveItemsFromGiftlistErrorURL)
pRemoveItemsFromGiftlistErrorURL - - remove items from gift list error URL.public java.lang.String getRemoveItemsFromGiftlistErrorURL()
public void setUpdateGiftlistAndItemsSuccessURL(java.lang.String pUpdateGiftlistAndItemsSuccessURL)
pUpdateGiftlistAndItemsSuccessURL - - The property to store the Success URL for UpdateGiftlistAndItems.public java.lang.String getUpdateGiftlistAndItemsSuccessURL()
public void setUpdateGiftlistAndItemsErrorURL(java.lang.String pUpdateGiftlistAndItemsErrorURL)
pUpdateGiftlistAndItemsErrorURL - - The property to store the error URL for UpdateGiftlistAndItems.public java.lang.String getUpdateGiftlistAndItemsErrorURL()
public void setMoveToNewGiftListAddressSuccessURL(java.lang.String pMoveToNewGiftListAddressSuccessURL)
pMoveToNewGiftListAddressSuccessURL - - The property to store the Success URL for
MoveToNewGiftListAddress.public java.lang.String getMoveToNewGiftListAddressSuccessURL()
public void setMoveToNewGiftListAddressErrorURL(java.lang.String pMoveToNewGiftListAddressErrorURL)
pMoveToNewGiftListAddressErrorURL - - The property to store the error URL for MoveToNewGiftListAddress.public java.lang.String getMoveToNewGiftListAddressErrorURL()
public SessionBean getSessionBean()
public void setSessionBean(SessionBean pSessionBean)
pSessionBean - the sessionBean to set.public void setCurrentDate(atg.service.util.CurrentDate pCurrentDate)
public atg.service.util.CurrentDate getCurrentDate()
public java.lang.String getUnmodifiedEventName()
public void setUnmodifiedEventName(java.lang.String pUnmodifiedEventName)
pUnmodifiedEventName - the mUnmodifiedEventName to set
public void preAddItemToGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
preAddItemToGiftlist in class atg.commerce.gifts.GiftlistFormHandlerpRequest - - the HTTP request.pResponse - - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
protected void addLoginErrorParameter(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
pRequest - - the HTTP request.pResponse - - the HTTP response.
public void preMoveItemsFromCart(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
preMoveItemsFromCart in class atg.commerce.gifts.GiftlistFormHandlerpRequest - - HTTP request.pResponse - - HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.public void setGiftlist(atg.repository.RepositoryItem pGiftlist)
pGiftlist - - gift list.public void clearForm()
public boolean handleCancel(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
handleCancel in class atg.droplet.GenericFormHandlerpRequest - - the HTTP request.pResponse - - HTTP response.
javax.servlet.ServletException - if servlet error occurs.
java.io.IOException - if IO error occurs.
public boolean handleMoveToNewGiftListAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - - the HTTP request.pResponse - - the HTTP response.
javax.servlet.ServletException - if servlet error occurs.
java.io.IOException - if IO error occurs.public void storeNewGiftListData()
public boolean handleInitializeGiftListForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
pRequest - the HTTP request.pResponse - the HTTP response.
public void postSaveGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
postSaveGiftlist in class atg.commerce.gifts.GiftlistFormHandlerpRequest - the HTTP request.pResponse - the HTTP response.
javax.servlet.ServletException - if servlet error occurs.
java.io.IOException - if IO error occurs.
public void preSaveGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
preSaveGiftlist in class atg.commerce.gifts.GiftlistFormHandlerjavax.servlet.ServletException
java.io.IOException
protected void validateEventName(java.lang.String pEventName,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pResponse - pRequest -
java.io.IOException
javax.servlet.ServletException
public boolean handleUpdateGiftlistAndItems(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException,
atg.commerce.CommerceException
pRequest - the servlet's request.pResponse - the servlet's response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
atg.commerce.CommerceException - if there was an error with Commerce.
public void preUpdateGiftlistAndItems(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - - the HTTP request.pResponse - - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
public void postUpdateGiftlistAndItems(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - - the HTTP request.pResponse - - the HTTP response.
javax.servlet.ServletException - if something went wrong.
java.io.IOException - if something went wrong.
public void preRemoveItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - the HTTP request.pResponse - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
public void postRemoveItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
pRequest - the HTTP request.pResponse - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
public boolean handleRemoveItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException,
atg.commerce.CommerceException
pRequest - the HTTP request.pResponse - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
atg.commerce.CommerceException - if there was an error with Commerce.
protected void removeItemsFromGiftlist(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException,
atg.commerce.CommerceException
pRequest - the HTTP request.pResponse - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
atg.commerce.CommerceException - if there was an error with Commerce.
protected void updateOrder(atg.commerce.order.CommerceItem pItem,
long pQuantity,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws atg.commerce.gifts.InvalidGiftQuantityException,
java.io.IOException,
javax.servlet.ServletException
updateOrder in class atg.commerce.gifts.GiftlistFormHandlerpItem - the commerce item to update.pQuantity - the number moved to gift list.pRequest - the HTTP request.pResponse - the HTTP response.
atg.commerce.gifts.InvalidGiftQuantityException - - if pQuantity <= 0.
java.io.IOException - if there was an error with servlet io.
javax.servlet.ServletException - if there was an error with Servlet.
public void postMoveItemsFromCart(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
throws javax.servlet.ServletException,
java.io.IOException
postMoveItemsFromCart in class atg.commerce.gifts.GiftlistFormHandlerpRequest - the HTTP request.pResponse - the HTTP response.
javax.servlet.ServletException - if there was an error while executing the code.
java.io.IOException - if there was an error with servlet io.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||