public class StoreProfileFormHandler
extends atg.commerce.profile.CommerceProfileFormHandler
CommerceProfileFormHandler
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string.
|
protected static java.lang.String |
DATE_FORMAT |
protected static java.lang.String |
EDIT_VALUE |
protected static java.lang.String |
MSG_ALREADY_LOGGEDIN |
protected static java.lang.String |
MSG_DUPLICATE_ADDRESS_NICKNAME |
protected static java.lang.String |
MSG_DUPLICATE_CC_NICKNAME |
protected static java.lang.String |
MSG_DUPLICATE_USER |
protected static java.lang.String |
MSG_ERR_CREATING_ADDRESS |
protected static java.lang.String |
MSG_ERR_CREATING_CC |
protected static java.lang.String |
MSG_ERR_CREATING_EMAIL_RECIPIENT |
protected static java.lang.String |
MSG_ERR_DELETE_GIFT_ADDRESS |
protected static java.lang.String |
MSG_ERR_DELETE_SHIPPING_ADDRESS |
protected static java.lang.String |
MSG_ERR_DELETING_ADDRESS |
protected static java.lang.String |
MSG_ERR_MODIFYING_NICKNAME |
protected static java.lang.String |
MSG_ERR_REMOVING_EMAIL_RECIPIENT |
protected static java.lang.String |
MSG_ERR_SENDING_EMAIL |
protected static java.lang.String |
MSG_ERR_UPDATING_ADDRESS |
protected static java.lang.String |
MSG_ERR_UPDATING_CREDIT_CARD |
protected static java.lang.String |
MSG_ERR_UPDATING_EMAIL_RECIPIENT |
protected static java.lang.String |
MSG_ERROR_UPDATE_STATUS |
protected static java.lang.String |
MSG_INVALID_CC |
protected static java.lang.String |
MSG_INVALID_DATE_ENTERED |
protected static java.lang.String |
MSG_INVALID_DATE_FORMAT |
protected static java.lang.String |
MSG_INVALID_EMAIL |
protected static java.lang.String |
MSG_INVALID_PASSWORD |
protected static java.lang.String |
MSG_MISSING_CC_PROPERTY |
protected static java.lang.String |
MSG_MISSING_DEFAULT_CC |
protected static java.lang.String |
MSG_MISSING_EMAIL |
protected static java.lang.String |
MSG_STATE_IS_INCORRECT |
protected static java.lang.String |
MSG_STATE_REQUIRED |
protected static java.lang.String |
NO |
protected static java.lang.String |
PARAM_PORTAL_LOGOUT_URL |
protected static java.lang.String |
RESOURCE_BUNDLE |
protected static java.lang.String |
SECURITY_STATUS_PROPERTY_NAME |
protected static java.lang.String |
YES |
mClearValuesOnCreate, mClearValuesOnLogin, mClearValuesOnUpdate
CONFIRMPASSWORD_PARAM, DEFAULT_CREATE_PROFILE_TYPE, DEFAULT_LOGIN_PROFILE_TYPE, DEFAULT_LOGOUT_PROFILE_TYPE, HANDLE_CREATE, HANDLE_CREATE_PARAM, HANDLE_FAILURE, HANDLE_LOGIN, HANDLE_LOGIN_PARAM, HANDLE_SUCCESS, ID_NAME, mAuthenticationMessageTrigger, mBadPasswordDelay, mChangePasswordErrorURL, mChangePasswordSuccessURL, mCheckForRequiredParameters, mCheckForRequiredProperties, mCheckForRequiredPropertiesAfterUpdate, mCompareValueInCopyPropertiesOnLogin, mConfirmOldPassword, mConfirmPassword, mCreateErrorURL, mCreateProfileType, mCreateSuccessURL, mDeleteErrorURL, mDeleteSuccessURL, mExpireSessionOnLogout, mExtractDefaultValuesFromProfile, mLoginErrorURL, mLoginProfileType, mLoginSuccessURL, mLogoutErrorURL, mLogoutProfileType, mLogoutSuccessURL, mProfileTools, mPropertiesToAddOnLogin, mPropertiesToCopyOnLogin, mRepositoryId, MSG_ERR_CREATING_PROFILE, MSG_ERR_DELETING_PROFILE, MSG_ERR_UPDATING_PROFILE, MSG_ILLEGAL_ARGUMENT, MSG_INVALID_ADD_PROPERTY, MSG_INVALID_LOGIN, MSG_MISSING_LOGIN, MSG_MISSING_OLD_PASSWORD, MSG_MISSING_PASSWORD, MSG_MISSING_PROFILE, MSG_MISSING_PROFILE_TOOLS, MSG_MISSING_REQUIRED_PROPERTY, MSG_NO_SUCH_PROFILE_PROPERTY, MSG_NO_TYPE_CONVERTER, MSG_PASSWORD_RULE_CHECK_FAILED, MSG_PASSWORD_SAME_AS_OLD_PASSWORD, MSG_PASSWORDS_DO_NOT_MATCH, MSG_PERMISSION_DEFINED_PASSWORD_CHANGE, MSG_READ_ONLY_PROFILE_PROPERTY, MSG_TYPE_CONVERSION_ERR, MSG_USER_ALREADY_EXISTS, MSG_WARNING_PROFILE_TOOLS, mSwapEventListeners, mTrimProperties, mUpdateErrorURL, mUpdateSuccessURL, mUserLoginManager, mUsingLdapProfile, mValue, NULL_SENTINEL, OLDPASSWORD_PARAM, PROXY_FACTORY_PATH, REPOSITORY_ID_PROPERTY_NAME, RESOURCE_BUNDLE_NAME, STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESS
PARAM_DEFER_FORWARD_OR_REDIRECT, PARAM_USE_FORWARDS
ATTR_SCENARIO_REDIRECT, PROPERTY_REFERENCE_TARGET, PROPERTY_REFERENCE_TYPE, PROPERTY_SCENARIO_INSTANCES, PROPERTY_SLOT_INSTANCES
COLLECTIVE_CLONE_PROPERTIES, DEFAULT_INITIAL_TIME_DELAY, DEFAULT_MAX_BATCH_SIZE, DEFAULT_PROCESS_FILE_EXTENSION, DEFAULT_TEMPLATE_FILE_EXTENSION, INDIVIDUAL_CLONE_PROPERTIES, INPUT_PORT_BATCH_TIMER, INPUT_PORT_COLLECTIVE_TIMER, INPUT_PORT_DISABLE_PROCESS, INPUT_PORT_GLOBAL_EVENT, INPUT_PORT_INDIVIDUAL_EVENT, INPUT_PORT_INDIVIDUAL_TIMER, INPUT_PORT_MIGRATION_UPDATE, INPUT_PORT_PROCESS_UPDATE, INPUT_PORT_SEGMENT_START_TIMER, JMS_TYPE_BATCH_TIMER, JMS_TYPE_COLLECTIVE_TIMER, JMS_TYPE_DISABLE_PROCESS, JMS_TYPE_INDIVIDUAL_TIMER, JMS_TYPE_MIGRATION_DELETE, JMS_TYPE_MIGRATION_UPDATE, JMS_TYPE_PROCESS_UPDATE, MIGRATION_STATUS_DONE, MIGRATION_STATUS_IN_PROGRESS, OUTPUT_PORT_BATCH_TIMER, OUTPUT_PORT_COLLECTIVE_TIMER, OUTPUT_PORT_INDIVIDUAL_TIMER, OUTPUT_PORT_MIGRATION_UPDATE, OUTPUT_PORT_PROCESS_UPDATE, OUTPUT_PORT_SEGMENT_START_TIMER, PROPERTY_AUTHOR, PROPERTY_COLLECTIVE_INSTANCE, PROPERTY_CONTEXT_BOOLEANS, PROPERTY_CONTEXT_DATES, PROPERTY_CONTEXT_DOUBLES, PROPERTY_CONTEXT_LONGS, PROPERTY_CONTEXT_STRINGS, PROPERTY_COUNT, PROPERTY_CREATED_BY_RECURRING_EVENT, PROPERTY_CREATION_TIME, PROPERTY_CREATOR_ID, PROPERTY_EVENT_TYPE, PROPERTY_EXPIRATION_TIME, PROPERTY_ID, PROPERTY_LAST_MODIFIED_BY, PROPERTY_LAST_QUERY_ID, PROPERTY_MESSAGE_BEAN, PROPERTY_MIGRATION_INFO, PROPERTY_MIGRATION_INFOS, PROPERTY_MIGRATION_STATUS, PROPERTY_MODIFICATION_TIME, PROPERTY_NEW_MODIFICATION_TIME, PROPERTY_NUM_TRANSITION_RETRIES, PROPERTY_OLD_MODIFICATION_TIME, PROPERTY_PDL, PROPERTY_PROCESS_INFO, PROPERTY_PROCESS_NAME, PROPERTY_PROCESS_STATUS, PROPERTY_SEGMENT_NAME, PROPERTY_SEGMENT_NAMES, PROPERTY_SERVER_ID, PROPERTY_SERVER_TYPE, PROPERTY_STATE, PROPERTY_STATE_MACHINE_VERSION, PROPERTY_STEP, PROPERTY_SUBJECT, PROPERTY_TEMPLATE_NAME, STEP_ACTIONS_1, STEP_ACTIONS_2, STEP_NEXT_STATE_1, STEP_NEXT_STATE_2, UNDEFINED_TIMESTAMP_VALUE, WILDCARD_MATCH_ALL
PROFILE_SLOT_TYPE, PROPERTY_ID, PROPERTY_SLOT_ITEMS, PROPERTY_SLOT_NAME, PROPERTY_SLOT_OFFSET, PROPERTY_SLOT_PRIORITIES, PROPERTY_SLOT_PROFILE, TRANS_MGR
Constructor and Description |
---|
StoreProfileFormHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
addCreditCardFormException(java.util.ResourceBundle pBundle,
int pReturnCode)
Adds form exception with the message according to the specified parameters
|
protected void |
addFormException(java.lang.String pWhatException,
java.lang.Object[] pArgs,
atg.repository.RepositoryException pRepositoryExc,
atg.servlet.DynamoHttpServletRequest pRequest)
Create a form exception, by looking up the exception code in a resource
file identified by the RESOURCE_BUNDLE constant (defined above).
|
protected void |
addFormException(java.lang.String pWhatException,
java.lang.Object[] pArgs,
java.lang.String pPath,
atg.servlet.DynamoHttpServletRequest pRequest)
Creates a form exception, by looking up the exception code in a resource
file identified by the RESOURCE_BUNDLE constant (defined above).
|
protected void |
addFormException(java.lang.String pWhatException,
atg.repository.RepositoryException pRepositoryExc,
atg.servlet.DynamoHttpServletRequest pRequest)
Create a form exception, by looking up the exception code in a resource
file identified by the RESOURCE_BUNDLE constant (defined above).
|
protected void |
addFormException(java.lang.String pWhatException,
java.lang.String pPath,
atg.servlet.DynamoHttpServletRequest pRequest)
Creates a form exception, by looking up the exception code in a resource
file identified by the RESOURCE_BUNDLE constant (defined above).
|
protected atg.repository.RepositoryItem |
findCurrentCreditCard()
Searches current user's credit card by nick-name from editValue properties.
|
protected atg.repository.RepositoryItem |
findUser(java.lang.String pLogin,
java.lang.String pPassword,
atg.repository.Repository pProfileRepository,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Returns the user profile or null if the user could not be found with the given login and password.
|
java.util.List |
getAddCommerceItemInfos() |
java.lang.String |
getAddressIdValueMapKey() |
java.lang.String[] |
getAddressProperties() |
java.lang.String |
getAnonymousEmailAddress() |
java.util.Map |
getBillAddrValue() |
java.util.List |
getBillingAddressPropertyList()
Returns the BillingAddressPropertyList.
|
java.util.Date |
getBirthDate()
Returns birthDate property.
|
java.lang.String[] |
getCardProperties() |
CheckoutProgressStates |
getCheckoutProgressStates()
Get checkout progress states
|
java.lang.String |
getCreateCardErrorURL() |
java.lang.String |
getCreateCardSuccessURL() |
atg.payment.creditcard.ExtendableCreditCardTools |
getCreditCardTools() |
atg.service.util.CurrentDate |
getCurrentDate() |
java.lang.String |
getDate()
Returns property date.
|
protected java.lang.String |
getDateByFormat(java.lang.Object pDate,
java.lang.String pFormat)
Operation called to get the Date on the basis of locale format.
|
java.lang.String |
getDateFormat() |
java.lang.String |
getDateOfBirth() |
java.lang.String |
getDefaultCard()
Returns property editCard, naming the credit card to be edited.
|
java.lang.String |
getDefaultCardErrorURL() |
java.lang.String |
getDefaultCardSuccessURL() |
java.lang.String |
getDefaultShippingAddress() |
java.lang.String |
getEditAddress() |
java.lang.String |
getEditCard()
Returns property editCard, naming the credit card to be edited.
|
java.util.Map<java.lang.String,java.lang.Object> |
getEditValue() |
java.lang.String |
getEmailAddress() |
atg.commerce.gifts.GiftlistManager |
getGiftlistManager() |
java.lang.String[] |
getImmutableCardProperties()
Returns immutableCardProperties property value.
|
protected java.util.Locale |
getLocale(atg.servlet.DynamoHttpServletRequest pRequest)
Determine the user's current locale, if available.
|
java.lang.String |
getLoginEmailAddress() |
java.lang.String |
getMonth()
Returns property month.
|
java.lang.String |
getNewAddressErrorURL() |
java.lang.String |
getNewAddressId() |
java.lang.String |
getNewAddressSuccessURL() |
java.lang.String |
getNewCustomerEmailAddress() |
java.lang.String |
getNewNicknameValueMapKey() |
java.lang.String |
getNicknameValueMapKey() |
atg.commerce.order.Order |
getOrder()
Return the Order property.
|
java.lang.String |
getPreRegisterErrorURL() |
java.lang.String |
getPreRegisterSuccessURL() |
java.lang.String |
getPreviousEmailAddress() |
java.util.List<atg.repository.RepositoryItem> |
getRecentlyViewedProducts()
Gets a recently viewed products list.
|
java.lang.String |
getRemoveAddress() |
java.lang.String |
getRemoveCard() |
java.lang.String |
getRemoveCardErrorURL() |
java.lang.String |
getRemoveCardSuccessURL() |
java.util.List |
getRequiredBillingAddressPropertyList() |
static java.util.ResourceBundle |
getResourceBundle(java.util.Locale pLocale)
Returns a ResourceBundle specific for the given locale.
|
SessionBean |
getSessionBean() |
java.lang.String |
getShippingAddressNicknameMapKey() |
atg.commerce.order.purchase.ShippingGroupMapContainer |
getShippingGroupMapContainer()
Return the ShippingGroupMapContainer property.
|
java.lang.String |
getSourceCode() |
protected StorePropertyManager |
getStorePropertyManager()
Utility method to retrieve the StorePropertyManager.
|
static java.lang.String |
getString(java.lang.String pKey,
java.util.Locale pLocale)
Return a String message specific for the given locale.
|
atg.userprofiling.email.TemplateEmailInfo |
getTemplateEmailInfo() |
atg.userprofiling.email.TemplateEmailSender |
getTemplateEmailSender() |
java.lang.String |
getUpdateAddressErrorURL() |
java.lang.String |
getUpdateAddressSuccessURL() |
java.lang.String |
getUpdateCardErrorURL()
Returns property updateCardErrorURL, used to redirect user in case of an
error updating a new credit card.
|
java.lang.String |
getUpdateCardSuccessURL()
Returns property updateCardSuccessURL.
|
protected java.util.Locale |
getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest)
Returns the Locale for the user given the request.
|
java.lang.String |
getYear()
Returns property year.
|
boolean |
handleCheckoutDefaults(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Handles changes on the 'Checkout Defaults' page - default credit card, shipping address and shipping method.
|
boolean |
handleClear(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override to prevent clear if there are form errors.
|
boolean |
handleClearForm(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override to prevent clear if there are form errors.
|
boolean |
handleCreateNewCreditCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Creates a new credit card using the entries entered in the editValue map
|
boolean |
handleCreateNewCreditCardAndAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Creates a new credit card using the entries entered in the editValue map
|
boolean |
handleDefaultCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Deprecated.
|
boolean |
handleDefaultShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Deprecated.
|
boolean |
handleEditAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Copy the named address into the editValue map, allowing the user to edit it.
|
boolean |
handleEditCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Copy the named credit card into the editValue map, allowing the user
to edit them.
|
boolean |
handleNewAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Creates a new shipping address using the entries entered in the editValue
map.
|
boolean |
handlePreRegister(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Perform pre-registration actions before user actually registered.
|
boolean |
handleRemoveAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This handler deletes a secondary address named in the removeAddress
property.
|
boolean |
handleRemoveCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Removes specified in
removeCard property credit card
from user's credit cards map. |
boolean |
handleUpdateAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Update the secondary address as modified by the user.
|
boolean |
handleUpdateCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Updates the credit card as modified by the user.
|
boolean |
isEmailOptIn() |
boolean |
isPersistEmails()
Returns boolean indicating whether the email is persisted before it is sent.
|
boolean |
isPreviousOptInStatus() |
boolean |
isSendEmailInSeparateThread()
Returns boolean indicating whether the email is sent in a separate thread.
|
boolean |
isUseShippingAddressAsDefault() |
protected void |
postChangePassword(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just after the user's password is changed.
|
protected void |
postCreateNewCreditCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation is called just after new card with existing address be created
|
protected void |
postCreateNewCreditCardAndAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation is called just after new card with new address be created
|
protected void |
postCreateUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override OOTB method so that if the profile has receiveEmail=yes, create
an EmailRecipient repository item for Email Campaigns.
|
protected void |
postLoginAddRecentlyViewed(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Update the logged in user's recentlyViewedProducts property with products
viewed as an anonymous user.
|
protected void |
postLoginUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
After logging in the user's session cached promotions are reloaded into
the PricingModelHolder.
|
void |
postLogoutUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just after the user is logged out.
|
protected void |
postUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse) |
protected void |
preCreateNewCreditCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation is called just before new card with existing address be created
|
protected void |
preCreateNewCreditCardAndAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation is called just before new card with new address be created
|
protected void |
preCreateUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Operation called just before the user creation process is started.
|
protected void |
preLoginUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override OOTB method so that auto-logged in user is not logged out if
they provide an invalid password.
|
void |
preRemoveAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Address that we'd like to remove could be associated
with a gift list.
|
protected void |
preUpdateCard(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Called before handleUpdateCard logic is applied.
|
protected void |
preUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
This overriding method will check to see if a new email address that is
being submitted in an update already belongs to another user profile.
|
protected void |
sendEmail(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Send email to current user using configured TemplateEmailInfo and TemplateEmailSender.
|
void |
setAddCommerceItemInfos(java.util.List pAddCommerceItemInfos) |
void |
setAddressIdValueMapKey(java.lang.String pAddressIdValueMapKey) |
void |
setAddressProperties(java.lang.String[] pAddressProperties)
Sets property addressProperties, naming the properties in a
secondary address record.
|
void |
setAnonymousEmailAddress(java.lang.String pAnonymousEmailAddress) |
void |
setBillingAddressPropertyList(java.util.List pBillingAddressPropertyList)
Sets the Address property list, which is a list that mirrors the original
design of the AddressProperties property with the property names defined
in a configuration file.
|
void |
setBirthDate(java.util.Date pBirthDate)
Sets birthDate property.
|
void |
setCardProperties(java.lang.String[] pCardProperties)
Sets property cardProperties, naming the properties in a
credit card entry.
|
void |
setCheckoutProgressStates(CheckoutProgressStates pCheckoutProgressStates)
Set checkout progress states
|
void |
setCreateCardErrorURL(java.lang.String pCreateCardErrorURL)
Sets property createCardErrorURL, used to redirect user in
case of an error adding a new credit card.
|
void |
setCreateCardSuccessURL(java.lang.String pCreateCardSuccessURL)
Sets property createCardSuccessURL, used to redirect user if
a new credit card was successfully added.
|
void |
setCreditCardTools(atg.payment.creditcard.ExtendableCreditCardTools pCreditCardTools) |
void |
setCurrentDate(atg.service.util.CurrentDate pCurrentDate) |
void |
setDate(java.lang.String pDate)
Sets property date.
|
void |
setDateFormat(java.lang.String pDateFormat) |
void |
setDateOfBirth(java.lang.String pDateOfBirth) |
void |
setDefaultCard(java.lang.String pDefaultCard)
Sets property efaultCard, naming the credit card to be the default.
|
void |
setDefaultCardErrorURL(java.lang.String pDefaultCardErrorURL)
Sets property DefaultCardErrorURL, used to redirect user in
case of an error removing a credit card.
|
void |
setDefaultCardSuccessURL(java.lang.String pDefaultCardSuccessURL)
Sets property DefaultCardSuccessURL, used to redirect user when
a credit card is successfully removed.
|
void |
setDefaultShippingAddress(java.lang.String pDefaultShippingAddress) |
void |
setEditAddress(java.lang.String pEditAddress)
Sets property editAddress, naming the address to be edited
|
void |
setEditCard(java.lang.String pEditCard)
Sets property editCard, naming the credit card to be edited.
|
void |
setEmailAddress(java.lang.String pEmailAddress) |
void |
setEmailOptIn(boolean pEmailOptIn) |
void |
setGiftlistManager(atg.commerce.gifts.GiftlistManager pGiftlistManager) |
void |
setImmutableCardProperties(java.lang.String[] pImmutableCardProperties)
Sets immutableCardProperties property value.
|
void |
setLoginEmailAddress(java.lang.String pLoginEmailAddress) |
void |
setMonth(java.lang.String pMonth)
Sets property month.
|
void |
setNewAddressErrorURL(java.lang.String pNewAddressErrorURL)
Sets property newAddressErrorURL, used to redirect user in
case of an error creating an address.
|
void |
setNewAddressId(java.lang.String pNewAddressId) |
void |
setNewAddressSuccessURL(java.lang.String pNewAddressSuccessURL)
Sets property newAddressSuccessURL, used to redirect user after
successfully creating an address.
|
void |
setNewCustomerEmailAddress(java.lang.String pNewCustomerEmailAddress) |
void |
setNewNicknameValueMapKey(java.lang.String pNewNicknameValueMapKey) |
void |
setNicknameValueMapKey(java.lang.String pNicknameValueMapKey) |
void |
setOrder(atg.commerce.order.Order pOrder)
Set the Order property.
|
void |
setPersistEmails(boolean pPersistEmails)
Sets boolean indicating whether the email is persisted before it is sent.
|
void |
setPreRegisterErrorURL(java.lang.String pPreRegisterErrorURL) |
void |
setPreRegisterSuccessURL(java.lang.String pPreRegisterSuccessURL) |
void |
setPreviousEmailAddress(java.lang.String pPreviousEmailAddress) |
void |
setPreviousOptInStatus(boolean pPreviousOptInStatus) |
void |
setRecentlyViewedProducts(java.util.List<atg.repository.RepositoryItem> pRecentlyViewedProducts)
Sets a recently viewed products list.
|
void |
setRemoveAddress(java.lang.String pRemoveAddress)
Sets property removeAddress, naming the address to be removed by
handleRemoveAddress().
|
void |
setRemoveCard(java.lang.String pRemoveCard)
Sets property removeCard, naming the address to be removed by
handleRemoveCard().
|
void |
setRemoveCardErrorURL(java.lang.String pRemoveCardErrorURL)
Sets property RemoveCardErrorURL, used to redirect user in
case of an error removing a credit card.
|
void |
setRemoveCardSuccessURL(java.lang.String pRemoveCardSuccessURL)
Sets property removeCardSuccessURL, used to redirect user when
a credit card is successfully removed.
|
void |
setRequiredBillingAddressPropertyList(java.util.List pRequiredBillingAddressPropertyList) |
void |
setSendEmailInSeparateThread(boolean pSendEmailInSeparateThread)
Sets boolean indicating whether the email is sent in a separate thread.
|
void |
setSessionBean(SessionBean pSessionBean) |
void |
setShippingAddressNicknameMapKey(java.lang.String pShippingAddressNicknameMapKey) |
void |
setShippingGroupMapContainer(atg.commerce.order.purchase.ShippingGroupMapContainer pShippingGroupMapContainer)
Set the ShippingGroupMapContainer property.
|
void |
setSourceCode(java.lang.String pSourceCode) |
void |
setTemplateEmailInfo(atg.userprofiling.email.TemplateEmailInfo pTemplateEmailInfo) |
void |
setTemplateEmailSender(atg.userprofiling.email.TemplateEmailSender pTemplateEmailSender)
Sets the property TemplateEmailSender
|
void |
setUpdateAddressErrorURL(java.lang.String pUpdateAddressErrorURL)
Sets property updateAddressErrorURL, used to redirect user in
case of an error updating an address.
|
void |
setUpdateAddressSuccessURL(java.lang.String pUpdateAddressSuccessURL)
Sets property updateAddressSuccessURL, used to redirect user when
an address is successfully updated.
|
void |
setUpdateCardErrorURL(java.lang.String pUpdateCardErrorURL)
Sets property updateCardErrorURL, used to redirect user in case of an
error updating a new credit card.
|
void |
setUpdateCardSuccessURL(java.lang.String pUpdateCardSuccessURL)
Sets property updateCardSuccessURL.
|
void |
setUseShippingAddressAsDefault(boolean pUseShippingAddressAsDefault) |
void |
setYear(java.lang.String pYear)
Sets property year.
|
protected void |
updateSecondaryInfo(atg.core.util.Address pTargetAddress,
atg.core.util.Address pSourceAddress)
Updates the properties of an address that don't affect where
the item is shipped to - e.g the phone number.
|
protected boolean |
validateAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates new address fields entered by user:
all required fields are specified for new address
country/state combination is valid for new address
not duplicate address nickname is used for create address or update
address operation
|
protected boolean |
validateBillingAddressFields(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates that all required fields are entered for billing address
|
protected void |
validateBirthDate(atg.servlet.DynamoHttpServletRequest pRequest)
Validates the values of the mBirthDate property.
|
protected void |
validateCountryStateCombination(java.util.Map pAddress,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validate country-state combination.
|
protected void |
validateCountryStateCombination(java.lang.String pCountry,
java.lang.String pState,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validate country-state combination.
|
protected boolean |
validateCreateCreditCardInformation(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse,
boolean pIsNewAddress)
Validates credit card information entered by user:
all required fields are specified for credit card
all required fields are specified for new address
country/state combination is valid for new address
card number and expiry date are valid
not duplicate credit card nickname is used
|
protected boolean |
validateCreditCard(java.util.Map pCard,
java.util.ResourceBundle pBundle)
Validates the credit card information using CreditCardTools.
|
protected boolean |
validateCreditCardFields(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates that all required credit card's fields are entered by user
|
protected java.util.Date |
validateDateFormat(java.lang.String pDate,
java.lang.String pFormat)
Operation called to validate the Date on the basis of locale format
|
protected boolean |
validateUpdateCreditCardInformation(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates updated credit card information entered by user:
country/state combination is valid for billing address
card expiry date are valid
not duplicate credit card nickname is used
|
addProperty, copyProperty, formatUserMessage, getAddCostCenterDescription, getAddCostCenterErrorURL, getAddCostCenterIdentifier, getAddCostCenterSuccessURL, getCatalogTools, getDefaultLocale, getEditCostCenterDescription, getEditCostCenterErrorURL, getEditCostCenterIdentifier, getEditCostCenterSuccessURL, getOrderManager, getPriceListManager, getPricingTools, getPromotionTools, getRemoveCostCenterErrorURL, getRemoveCostCenterIdentifier, getRemoveCostCenterSuccessURL, getShoppingCart, getUserLocale, getUserPricingModels, handleAddCostCenter, handleEditCostCenter, handleRemoveCostCenter, isDefaultCostCenter, isDetermineCatalog, isDeterminePriceList, processException, setAddCostCenterDescription, setAddCostCenterErrorURL, setAddCostCenterIdentifier, setAddCostCenterSuccessURL, setCatalogTools, setDefaultCostCenter, setDefaultLocale, setDetermineCatalog, setDeterminePriceList, setEditCostCenterDescription, setEditCostCenterErrorURL, setEditCostCenterIdentifier, setEditCostCenterSuccessURL, setOrderManager, setPriceListManager, setPricingTools, setPromotionTools, setRemoveCostCenterErrorURL, setRemoveCostCenterIdentifier, setRemoveCostCenterSuccessURL, setShoppingCart, setUserPricingModels
addScenarioInstances, addSlotInstances, getScenarioManager, handleCreate, handleDelete, handleLogin, handleLogout, handleUpdate, isOverrideFormHandlerRedirect, setOverrideFormHandlerRedirect, setScenarioManager
addProfileUpdateListener, checkFormError, createProfileItem, getClearValuesOnCreate, getClearValuesOnLogin, getClearValuesOnUpdate, getExpiredPasswordService, getProfile, getProfileRequestServletPath, getProfileUpdateEvent, getProfileUpdateTrigger, getRepositoryId, getRequestLocale, getTestPassword, getUpdateRepositoryId, getVerifyPasswordSuccessURL, handleCancel, handleVerifyPassword, isCreateNewUser, isGenerateProfileUpdateEvents, isSendCookie, preLogoutUser, propagateLocale, removeProfileUpdateListener, sendProfileUpdateEvent, setClearValuesOnCreate, setClearValuesOnLogin, setClearValuesOnUpdate, setCreateNewUser, setExpiredPasswordService, setGenerateProfileUpdateEvents, setProfile, setProfileRequestServletPath, setProfileUpdateEvent, setProfileUpdateTrigger, setRepositoryId, setRequestLocale, setTestPassword, setUpdateRepositoryId, setVerifyPasswordSuccessURL, shouldCreateNewUser
addMulti, addPropertiesOnLogin, addSwapEventListener, addUser, changePassword, checkFormSuccess, checkForRequiredParameters, checkForRequiredProperties, checkForRequiredProperties, commitTransaction, copyPropertiesOnLogin, copyPropertyValue, createUser, doStartService, ensureTransaction, findUser, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, generatePropertyPath, getAddMultiPropertyName, getAddMultiPropertyValue, getAuthenticationMessageTrigger, getBadPasswordDelay, getChangePasswordErrorURL, getChangePasswordSuccessURL, getCheckForRequiredParameters, getCheckForRequiredProperties, getCheckForRequiredPropertiesAfterUpdate, getCreateErrorURL, getCreateProfileType, getCreateSuccessURL, getCurrentDataSource, getDeleteErrorURL, getDeleteSuccessURL, getDescriptor, getExpireSessionOnLogout, getLoginErrorURL, getLoginProfileType, getLoginSuccessURL, getLogoutErrorURL, getLogoutProfileType, getLogoutSuccessURL, getProcessPropertyNames, getProfileItem, getProfileRealmManager, getProfileTools, getPropertiesToAddOnLogin, getPropertiesToCopyOnLogin, getRealmSessionTracker, getStringValueProperty, getTransactionDemarcation, getTransactionManager, getTrimProperties, getUpdateErrorURL, getUpdateSuccessURL, getUserLoginManager, getValue, getValueFromArrayString, getValueFromObject, getValueFromObjectArray, getValueFromString, getValueFromStringArray, getValueMap, getValueProperty, handleAddMulti, handleChangePassword, handleValueDictionaryByParameters, isCompareValueInCopyPropertiesOnLogin, isConfirmOldPassword, isConfirmPassword, isExtractDefaultValuesFromProfile, isInvalidateAllChildSessions, isTrimProperty, isUsingLdapProfile, postAddMulti, postDeleteUser, postValueDictionaryByParameters, preAddMulti, preChangePassword, preDeleteUser, preValueDictionaryByParameters, removeSwapEventListener, removeUser, sendProfileSwapEvent, setAuthenticationMessageTrigger, setBadPasswordDelay, setChangePasswordErrorURL, setChangePasswordSuccessURL, setCheckForRequiredParameters, setCheckForRequiredProperties, setCheckForRequiredPropertiesAfterUpdate, setCompareValueInCopyPropertiesOnLogin, setConfirmOldPassword, setConfirmPassword, setCreateErrorURL, setCreateProfileType, setCreateSuccessURL, setDeleteErrorURL, setDeleteSuccessURL, setExpireSessionOnLogout, setExtractDefaultValuesFromProfile, setInvalidateAllChildSessions, setLoginErrorURL, setLoginProfileType, setLoginSuccessURL, setLogoutErrorURL, setLogoutProfileType, setLogoutSuccessURL, setProfileTools, setPropertiesToAddOnLogin, setPropertiesToCopyOnLogin, setTrimProperties, setUpdateErrorURL, setUpdateSuccessURL, setUserLoginManager, setUsingLdapProfile, setValueDictionaryByParameters, setValueProperty, updateLDAPProfileAttributes, updatePasswordValue, updateProfileAttributes, updateProfileAttributes, updateUser, updateUser, userAlreadyExists, valueIsEmpty
addFormException, addUncheckedFormException, afterSet, beforeSet, checkFormRedirect, 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
addLogListener, createAdminServlet, 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, toString
vlogDebug, vlogDebug, vlogDebug, vlogDebug, vlogDebugTrace, vlogError, vlogError, vlogError, vlogError, vlogInfo, vlogInfo, vlogInfo, vlogInfo, vlogTrace, vlogTrace, vlogTrace, vlogTrace, vlogWarning, vlogWarning, vlogWarning, vlogWarning
public static final java.lang.String CLASS_VERSION
protected static final java.lang.String SECURITY_STATUS_PROPERTY_NAME
protected static final java.lang.String NO
protected static final java.lang.String YES
protected static final java.lang.String RESOURCE_BUNDLE
protected static final java.lang.String MSG_ERR_SENDING_EMAIL
protected static final java.lang.String MSG_ERR_CREATING_ADDRESS
protected static final java.lang.String MSG_ERR_DELETING_ADDRESS
protected static final java.lang.String MSG_ERR_UPDATING_ADDRESS
protected static final java.lang.String MSG_DUPLICATE_ADDRESS_NICKNAME
protected static final java.lang.String MSG_ERR_MODIFYING_NICKNAME
protected static final java.lang.String MSG_ERR_CREATING_CC
protected static final java.lang.String MSG_ERR_UPDATING_CREDIT_CARD
protected static final java.lang.String MSG_MISSING_CC_PROPERTY
protected static final java.lang.String MSG_DUPLICATE_CC_NICKNAME
protected static final java.lang.String MSG_INVALID_CC
protected static final java.lang.String MSG_MISSING_DEFAULT_CC
protected static final java.lang.String MSG_DUPLICATE_USER
protected static final java.lang.String MSG_ERR_CREATING_EMAIL_RECIPIENT
protected static final java.lang.String MSG_ERR_REMOVING_EMAIL_RECIPIENT
protected static final java.lang.String MSG_ERR_UPDATING_EMAIL_RECIPIENT
protected static final java.lang.String MSG_INVALID_PASSWORD
protected static final java.lang.String MSG_ALREADY_LOGGEDIN
protected static final java.lang.String MSG_MISSING_EMAIL
protected static final java.lang.String MSG_ERROR_UPDATE_STATUS
protected static final java.lang.String MSG_INVALID_EMAIL
protected static final java.lang.String MSG_STATE_REQUIRED
protected static final java.lang.String MSG_STATE_IS_INCORRECT
protected static final java.lang.String MSG_INVALID_DATE_FORMAT
protected static final java.lang.String MSG_ERR_DELETE_GIFT_ADDRESS
protected static final java.lang.String MSG_ERR_DELETE_SHIPPING_ADDRESS
protected static final java.lang.String MSG_INVALID_DATE_ENTERED
protected static final java.lang.String PARAM_PORTAL_LOGOUT_URL
protected static final java.lang.String DATE_FORMAT
protected static final java.lang.String EDIT_VALUE
public CheckoutProgressStates getCheckoutProgressStates()
public void setCheckoutProgressStates(CheckoutProgressStates pCheckoutProgressStates)
pCheckoutProgressStates
- the checkoutProgressStates to setpublic void setSendEmailInSeparateThread(boolean pSendEmailInSeparateThread)
pSendEmailInSeparateThread
- boolean indicating whether the email is sent in a separate thread.public boolean isSendEmailInSeparateThread()
public void setPersistEmails(boolean pPersistEmails)
pPersistEmails
- boolean indicating whether the email is persisted before it is sent.public boolean isPersistEmails()
public void setTemplateEmailSender(atg.userprofiling.email.TemplateEmailSender pTemplateEmailSender)
public atg.userprofiling.email.TemplateEmailSender getTemplateEmailSender()
public atg.userprofiling.email.TemplateEmailInfo getTemplateEmailInfo()
public void setTemplateEmailInfo(atg.userprofiling.email.TemplateEmailInfo pTemplateEmailInfo)
pTemplateEmailInfo
- the templateEmailInfo to setpublic SessionBean getSessionBean()
public void setSessionBean(SessionBean pSessionBean)
pSessionBean
- the session bean to setpublic atg.commerce.gifts.GiftlistManager getGiftlistManager()
public void setGiftlistManager(atg.commerce.gifts.GiftlistManager pGiftlistManager)
pGiftlistManager
- the giftlist manager to setpublic java.lang.String getNicknameValueMapKey()
public void setNicknameValueMapKey(java.lang.String pNicknameValueMapKey)
pNicknameValueMapKey
- the String to setpublic java.lang.String getAddressIdValueMapKey()
public void setAddressIdValueMapKey(java.lang.String pAddressIdValueMapKey)
pAddressIdValueMapKey
- the String to setpublic java.lang.String getNewNicknameValueMapKey()
public void setNewNicknameValueMapKey(java.lang.String pNewNicknameValueMapKey)
pNewNicknameValueMapKey
- the String to setpublic java.lang.String getShippingAddressNicknameMapKey()
public void setShippingAddressNicknameMapKey(java.lang.String pShippingAddressNicknameMapKey)
pShippingAddressNicknameMapKey
- the String to setpublic java.util.Map<java.lang.String,java.lang.Object> getEditValue()
public void setAddressProperties(java.lang.String[] pAddressProperties)
pAddressProperties
- the addressProperties to setpublic java.lang.String[] getAddressProperties()
public void setCardProperties(java.lang.String[] pCardProperties)
pCardProperties
- the cardProperties to setpublic java.lang.String[] getCardProperties()
public java.lang.String[] getImmutableCardProperties()
public void setImmutableCardProperties(java.lang.String[] pImmutableCardProperties)
pImmutableCardProperties
- property names to be immutable.public void setRemoveAddress(java.lang.String pRemoveAddress)
pRemoveAddress
- the removeAddress to setpublic java.lang.String getRemoveAddress()
public void setEditAddress(java.lang.String pEditAddress)
pEditAddress
- the editAddress to setpublic java.lang.String getEditAddress()
public void setRemoveCard(java.lang.String pRemoveCard)
pRemoveCard
- the removeCard to setpublic java.lang.String getRemoveCard()
public java.lang.String getDateOfBirth()
public void setDateOfBirth(java.lang.String pDateOfBirth)
pDateOfBirth
- Set a new date of birth.public void setMonth(java.lang.String pMonth)
pMonth
- The property to store the month value of the birth date.public java.lang.String getMonth()
public void setDate(java.lang.String pDate)
pDay
- The property to store the day of the month value of the birth
date.public java.lang.String getDate()
public void setYear(java.lang.String pYear)
pYear
- The property to store the year value of the birth date.public java.lang.String getYear()
public void setBirthDate(java.util.Date pBirthDate)
pBirthDate
- The property to store the event date as a Calendar object.public java.util.Date getBirthDate() throws atg.commerce.gifts.InvalidDateException
atg.commerce.gifts.InvalidDateException
- if an invalid date was entered.public java.lang.String getDateFormat()
public void setDateFormat(java.lang.String pDateFormat)
pDateFormat
- - date format.public void setBillingAddressPropertyList(java.util.List pBillingAddressPropertyList)
pBillingAddressPropertyList
- -
Billing address property listpublic java.util.List getBillingAddressPropertyList()
public void setDefaultCard(java.lang.String pDefaultCard)
pDefaultCard
- - nickname of default credit cardpublic java.lang.String getDefaultCard()
public void setEditCard(java.lang.String pEditCard)
pEditCard
- - nickname of card being editedpublic java.lang.String getEditCard()
public java.util.Map getBillAddrValue()
public void setDefaultShippingAddress(java.lang.String pDefaultShippingAddress)
pDefaultShippingAddress
- - default shipping address.public java.lang.String getDefaultShippingAddress()
public boolean isUseShippingAddressAsDefault()
public void setUseShippingAddressAsDefault(boolean pUseShippingAddressAsDefault)
pUseShippingAddressAsDefault
- the boolean value to setpublic java.lang.String getSourceCode()
public void setSourceCode(java.lang.String pSourceCode)
pSourceCode
- - source code.public java.lang.String getLoginEmailAddress()
public void setLoginEmailAddress(java.lang.String pLoginEmailAddress)
pLoginEmailAddress
- - login e-mail address.public java.lang.String getEmailAddress()
public void setEmailAddress(java.lang.String pEmailAddress)
pEmailAddress
- - e-mail address.public java.lang.String getNewCustomerEmailAddress()
public void setNewCustomerEmailAddress(java.lang.String pNewCustomerEmailAddress)
pNewCustomerEmailAddress
- email addresspublic java.lang.String getAnonymousEmailAddress()
public void setAnonymousEmailAddress(java.lang.String pAnonymousEmailAddress)
pAnonymousEmailAddress
- email addresspublic void setOrder(atg.commerce.order.Order pOrder)
pOrder
- an Order
valuepublic atg.commerce.order.Order getOrder()
Order
valuepublic void setAddCommerceItemInfos(java.util.List pAddCommerceItemInfos)
pAddCommerceItemInfos
- - add commerce item
information.public java.util.List getAddCommerceItemInfos()
public java.util.List getRequiredBillingAddressPropertyList()
public void setRequiredBillingAddressPropertyList(java.util.List pRequiredBillingAddressPropertyList)
pRequiredBillingAddressPropertyList
- -
required billing address property list.public boolean isEmailOptIn()
public void setEmailOptIn(boolean pEmailOptIn)
pEmailOptIn
- - true to turn on e-mail opt in, false - otherwise.public boolean isPreviousOptInStatus()
public void setPreviousOptInStatus(boolean pPreviousOptInStatus)
pPreviousOptInStatus
- - previous opt in status.public java.lang.String getPreviousEmailAddress()
public void setPreviousEmailAddress(java.lang.String pPreviousEmailAddress)
pPreviousEmailAddress
- - previous email address.public atg.payment.creditcard.ExtendableCreditCardTools getCreditCardTools()
public void setCreditCardTools(atg.payment.creditcard.ExtendableCreditCardTools pCreditCardTools)
pCreditCardTools
- new ExtendableCreditCardToolspublic void setNewAddressSuccessURL(java.lang.String pNewAddressSuccessURL)
pNewAddressSuccessURL
- the newAddressSuccessURL to setpublic java.lang.String getNewAddressSuccessURL()
public void setNewAddressErrorURL(java.lang.String pNewAddressErrorURL)
pNewAddressErrorURL
- the newAddressErrorURL to setpublic java.lang.String getNewAddressErrorURL()
public void setUpdateAddressSuccessURL(java.lang.String pUpdateAddressSuccessURL)
pUpdateAddressSuccessURL
- the updateAddressSuccessURL to setpublic java.lang.String getUpdateAddressSuccessURL()
public void setUpdateAddressErrorURL(java.lang.String pUpdateAddressErrorURL)
pUpdateAddressErrorURL
- the updateAddressErrorURL to setpublic java.lang.String getUpdateAddressErrorURL()
public void setCreateCardSuccessURL(java.lang.String pCreateCardSuccessURL)
pCreateCardSuccessURL
- the createCardSuccessURL to setpublic java.lang.String getCreateCardSuccessURL()
public void setCreateCardErrorURL(java.lang.String pCreateCardErrorURL)
pCreateCardErrorURL
- the createCardErrorURL to setpublic java.lang.String getCreateCardErrorURL()
public void setUpdateCardSuccessURL(java.lang.String pUpdateCardSuccessURL)
pUpdateCardSuccessURL
- -
credit card update success URLpublic java.lang.String getUpdateCardSuccessURL()
public void setUpdateCardErrorURL(java.lang.String pUpdateCardErrorURL)
pUpdateCardErrorURL
- - credit card update error URLpublic java.lang.String getUpdateCardErrorURL()
public void setRemoveCardSuccessURL(java.lang.String pRemoveCardSuccessURL)
pRemoveCardSuccessURL
- the removeCardSuccessURL to setpublic java.lang.String getRemoveCardSuccessURL()
public void setRemoveCardErrorURL(java.lang.String pRemoveCardErrorURL)
pRemoveCardErrorURL
- the RemoveCardErrorURL to setpublic java.lang.String getRemoveCardErrorURL()
public void setDefaultCardSuccessURL(java.lang.String pDefaultCardSuccessURL)
pDefaultCardSuccessURL
- the DefaultCardSuccessURL to setpublic java.lang.String getDefaultCardSuccessURL()
public void setDefaultCardErrorURL(java.lang.String pDefaultCardErrorURL)
pDefaultCardErrorURL
- the DefaultCardErrorURL to setpublic java.lang.String getDefaultCardErrorURL()
public java.lang.String getPreRegisterSuccessURL()
public void setPreRegisterSuccessURL(java.lang.String pPreRegisterSuccessURL)
pPreRegisterSuccessURL
- the preRegisterSuccessURL to setpublic java.lang.String getPreRegisterErrorURL()
public void setPreRegisterErrorURL(java.lang.String pPreRegisterErrorURL)
pPreRegisterErrorURL
- the preRegisterErrorURL to setpublic void setShippingGroupMapContainer(atg.commerce.order.purchase.ShippingGroupMapContainer pShippingGroupMapContainer)
pShippingGroupMapContainer
- a ShippingGroupMapContainer
valuepublic atg.commerce.order.purchase.ShippingGroupMapContainer getShippingGroupMapContainer()
ShippingGroupMapContainer
valuepublic void setRecentlyViewedProducts(java.util.List<atg.repository.RepositoryItem> pRecentlyViewedProducts)
public java.util.List<atg.repository.RepositoryItem> getRecentlyViewedProducts()
public void setCurrentDate(atg.service.util.CurrentDate pCurrentDate)
pCurrentDate
- The CurrentDate component.public atg.service.util.CurrentDate getCurrentDate()
public java.lang.String getNewAddressId()
public void setNewAddressId(java.lang.String pNewAddressId)
pNewAddressId
- Set the id of the newly created address.protected void preLoginUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preLoginUser
in class atg.userprofiling.ProfileFormHandler
javax.servlet.ServletException
java.io.IOException
ProfileForm.preLoginUser(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
protected void postLoginAddRecentlyViewed(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException
javax.servlet.ServletException
- If there was a problem updating the user's list.protected void postLoginUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postLoginUser
in class atg.commerce.profile.CommerceProfileFormHandler
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- - if there was an error while executing the codejava.io.IOException
- - if there was an error with servlet iopublic void postLogoutUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postLogoutUser
in class atg.userprofiling.ProfileFormHandler
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void preCreateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preCreateUser
in class atg.userprofiling.ProfileForm
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void postCreateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postCreateUser
in class atg.commerce.profile.CommerceProfileFormHandler
javax.servlet.ServletException
java.io.IOException
ProfileForm.postCreateUser(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
protected void preUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preUpdateUser
in class atg.userprofiling.ProfileFormHandler
javax.servlet.ServletException
java.io.IOException
ProfileForm.preUpdateUser(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
protected void postUpdateUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postUpdateUser
in class atg.userprofiling.ProfileFormHandler
javax.servlet.ServletException
java.io.IOException
ProfileForm.postUpdateUser(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
protected java.util.Date validateDateFormat(java.lang.String pDate, java.lang.String pFormat)
pDate
- User DatepFormat
- the Date Formatpublic boolean handleCreateNewCreditCardAndAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void preCreateNewCreditCardAndAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void postCreateNewCreditCardAndAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleCreateNewCreditCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void preCreateNewCreditCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void postCreateNewCreditCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected boolean validateCreateCreditCardInformation(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, boolean pIsNewAddress) throws javax.servlet.ServletException, java.io.IOException
pRequest
- http requestpResponse
- http responsepIsNewAddress
- true if should validate new addressjavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected boolean validateCreditCardFields(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pRequest
- http requestpResponse
- http responseprotected boolean validateBillingAddressFields(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pRequest
- http requestpResponse
- http responseprotected boolean validateCreditCard(java.util.Map pCard, java.util.ResourceBundle pBundle)
CreditCardTools.verifyCreditCard(CreditCardInfo)
protected void addCreditCardFormException(java.util.ResourceBundle pBundle, int pReturnCode)
pBundle
- Resource bundlepReturnCode
- The code returned from the validateCreditCard methodprotected void preUpdateCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException
pRequest
- current requestpResponse
- current responseatg.repository.RepositoryException
- if unable to obtain user card's properties.protected atg.repository.RepositoryItem findCurrentCreditCard()
public boolean handleUpdateCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException, javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioatg.repository.RepositoryException
- if there was an error accessing the repositoryprotected boolean validateUpdateCreditCardInformation(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- http requestpResponse
- http responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleRemoveCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
removeCard
property credit card
from user's credit cards map.pRequest
- http requestpResponse
- http responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleDefaultCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException, javax.servlet.ServletException, java.io.IOException
pRequest
- DynamoHttpServletRequestpResponse
- DynamoHttpServletResponseatg.repository.RepositoryException
- if there was an error accessing the repositoryjavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleEditCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleNewAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- The current HTTP requestpResponse
- The current HTTP responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected boolean validateAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- http requestpResponse
- http responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void validateCountryStateCombination(java.util.Map pAddress, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pAddress
- - addresspRequest
- - http addresspResponse
- - http responseprotected void validateCountryStateCombination(java.lang.String pCountry, java.lang.String pState, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pCountry
- country codepState
- county codepRequest
- dynamo requestpResponse
- dynamo responsepublic boolean handleUpdateAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException, javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioatg.repository.RepositoryException
- if there was an error accessing the repositoryprotected void updateSecondaryInfo(atg.core.util.Address pTargetAddress, atg.core.util.Address pSourceAddress)
pTargetAddress
- The target AddresspSourceAddress
- The source Addresspublic boolean handleRemoveAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet iopublic boolean handleDefaultShippingAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException, javax.servlet.ServletException
pRequest
- DynamoHttpServletRequestpResponse
- DynamoHttpServletResponseatg.repository.RepositoryException
- indicates that a severe error occured while performing a Repository taskjavax.servlet.ServletException
- if there was an error while executing the codepublic boolean handleEditAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException, atg.beans.PropertyNotFoundException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioatg.beans.PropertyNotFoundException
- If a property is not foundpublic boolean handleClear(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This is here because postLogin will do a clear of the value dictionary even if the login fails
handleClear
in class atg.userprofiling.ProfileFormHandler
javax.servlet.ServletException
java.io.IOException
public boolean handleClearForm(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This is here because postLogin will do a clear of the value dictionary even if the login fails
javax.servlet.ServletException
java.io.IOException
public boolean handlePreRegister(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- Dynamo HTTP requestpResponse
- Dynamo HTTP responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected atg.repository.RepositoryItem findUser(java.lang.String pLogin, java.lang.String pPassword, atg.repository.Repository pProfileRepository, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException, javax.servlet.ServletException, java.io.IOException
findUser
in class atg.userprofiling.ProfileForm
pLogin
- the login name for the personpPassword
- the password for the person, optionally null if no password checking should be performed.pProfileRepository
- the repository which should contain the desired profile templatepRequest
- the servlet's requestpResponse
- the servlet's responseatg.repository.RepositoryException
- - if there was an error while accessing the Profile Repositoryjavax.servlet.ServletException
- - if there was an error while executing the codejava.io.IOException
- - if there was an error with servlet ioprotected StorePropertyManager getStorePropertyManager()
protected void addFormException(java.lang.String pWhatException, atg.repository.RepositoryException pRepositoryExc, atg.servlet.DynamoHttpServletRequest pRequest)
pWhatException
- String description of exceptionpRepositoryExc
- RepositoryExceptionpRequest
- DynamoHttpServletRequestprotected void addFormException(java.lang.String pWhatException, java.lang.Object[] pArgs, atg.repository.RepositoryException pRepositoryExc, atg.servlet.DynamoHttpServletRequest pRequest)
pWhatException
- String description of exceptionpArgs
- String array with arguments used message formattingpRepositoryExc
- RepositoryExceptionpRequest
- DynamoHttpServletRequestprotected void addFormException(java.lang.String pWhatException, java.lang.Object[] pArgs, java.lang.String pPath, atg.servlet.DynamoHttpServletRequest pRequest)
pWhatException
- String description of exceptionpArgs
- String array with arguments used message formattingpPath
- Full path to form handler property associated with the exceptionpRequest
- DynamoHttpServletRequestprotected void addFormException(java.lang.String pWhatException, java.lang.String pPath, atg.servlet.DynamoHttpServletRequest pRequest)
pWhatException
- String description of exceptionpPath
- Full path to form handler property associated with the exceptionpRequest
- DynamoHttpServletRequestprotected java.util.Locale getLocale(atg.servlet.DynamoHttpServletRequest pRequest)
pRequest
- DynamoHttpServletRequestprotected java.lang.String getDateByFormat(java.lang.Object pDate, java.lang.String pFormat)
pDate
- getting from databasepFormat
- Date Format get by databasepublic static java.lang.String getString(java.lang.String pKey, java.util.Locale pLocale)
pKey
- the identifier for the message to retrieve out of the
ResourceBundlepLocale
- the locale of the userpublic static java.util.ResourceBundle getResourceBundle(java.util.Locale pLocale) throws java.util.MissingResourceException
pLocale
- the locale of the userjava.util.MissingResourceException
- ResourceBundle could not be locatedprotected java.util.Locale getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest)
getUserLocale
in class atg.userprofiling.ProfileForm
pRequest
- the request object which can be used to extract the user's
localepublic boolean handleCheckoutDefaults(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- - current HTTP request.pResponse
- - current HTTP response.javax.servlet.ServletException
- if something goes wrong.java.io.IOException
- if unable to redirect current request.public void preRemoveAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pRequest
- Dynamo http requestpResponse
- Dynamo http responseprotected void postChangePassword(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postChangePassword
in class atg.userprofiling.ProfileForm
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void sendEmail(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- the servlet's responsejavax.servlet.ServletException
- if there was an error while executing the codejava.io.IOException
- if there was an error with servlet ioprotected void validateBirthDate(atg.servlet.DynamoHttpServletRequest pRequest)