|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object atg.nucleus.logging.VariableArgumentApplicationLoggingImpl atg.nucleus.GenericService atg.droplet.EmptyFormHandler atg.droplet.GenericFormHandler atg.userprofiling.ProfileForm atg.userprofiling.ProfileFormHandler atg.scenario.userprofiling.ScenarioProfileFormHandler atg.commerce.profile.CommerceProfileFormHandler atg.projects.store.profile.StoreProfileFormHandler
public class StoreProfileFormHandler
Profile form handler.
CommerceProfileFormHandler
Nested Class Summary |
---|
Nested classes/interfaces inherited from class atg.userprofiling.ProfileForm |
---|
atg.userprofiling.ProfileForm.ProfileFormHashtableWrapper |
Field Summary | |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string. |
Fields inherited from class atg.userprofiling.ProfileFormHandler |
---|
mClearValuesOnCreate, mClearValuesOnLogin, mClearValuesOnUpdate |
Fields inherited from class atg.userprofiling.ProfileForm |
---|
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, 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_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, REPOSITORY_ID_PROPERTY_NAME, RESOURCE_BUNDLE_NAME, STATUS_ERROR_REDIRECT, STATUS_ERROR_STAY, STATUS_SUCCESS |
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.scenario.ScenarioConstants |
---|
ATTR_SCENARIO_REDIRECT, PROPERTY_REFERENCE_TARGET, PROPERTY_REFERENCE_TYPE, PROPERTY_SCENARIO_INSTANCES, PROPERTY_SLOT_INSTANCES |
Fields inherited from interface atg.process.ProcessConstants |
---|
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_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 |
Fields inherited from interface atg.scenario.targeting.SlotConstants |
---|
PROFILE_SLOT_TYPE, PROPERTY_ID, PROPERTY_SLOT_ITEMS, PROPERTY_SLOT_NAME, PROPERTY_SLOT_OFFSET, PROPERTY_SLOT_PRIORITIES, PROPERTY_SLOT_PROFILE, TRANS_MGR |
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 | |
---|---|
StoreProfileFormHandler()
|
Method Summary | |
---|---|
protected void |
checkForDuplicateAddress(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse,
java.lang.String pNickname,
java.util.List<java.lang.String> pIgnoredNames)
Checks if the given nickname already exists in the secondary address map. |
atg.repository.RepositoryItem |
createUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override OOTB method so that the user's email addres is copied over to their login field. |
java.lang.String |
evalEmailAddress()
This method eval appropriate email address depends on selected checkoutLoginOption . |
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)
|
protected void |
generateFormException(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 |
generateFormException(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 |
generateFormException(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 |
generateFormException(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). |
java.util.List |
getAddCommerceItemInfos()
|
java.lang.String |
getAddressIdValueMapKey()
|
java.lang.String[] |
getAddressProperties()
Returns property addressProperties, naming the properties in a secondary address record. |
java.lang.String |
getAnonymousEmailAddress()
|
java.util.Map |
getBillAddrValue()
|
java.util.List |
getBillingAddressPropertyList()
Returns the BillingAddressPropertyList. |
java.lang.String[] |
getCardProperties()
Returns property cardProperties, naming the properties in a credit card entry. |
java.lang.String |
getCheckoutLoginOption()
|
java.lang.String |
getCreateCardErrorURL()
Returns property createCardErrorURL, used to redirect user in case of an error adding a new credit card. |
java.lang.String |
getCreateCardSuccessURL()
Returns property createCardSuccessURL, used to redirect user if a new credit card was successfully added. |
atg.payment.creditcard.ExtendableCreditCardTools |
getCreditCardTools()
|
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 |
getDefaultShippingAddress()
|
java.lang.String |
getEditAddress()
Returns property editAddress, naming the address to be edited |
java.lang.String |
getEditCard()
Returns property editCard, naming the credit card to be edited. |
java.util.Map |
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 |
getNewAddressErrorURL()
Returns property newAddressErrorURL, used to redirect user in case of an error creating an address. |
java.lang.String |
getNewAddressSuccessURL()
Returns property newAddressSuccessURL, used to redirect user after successfully creating an address. |
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 |
getRemoveAddress()
Returns property removeAddress, naming the address to be removed by handleRemoveAddress(). |
java.lang.String |
getRemoveCard()
Returns property removeCard, naming the address to be removed by handleRemoveCard(). |
java.lang.String |
getRemoveCardErrorURL()
Returns property removeCardErrorURL, used to redirect user in case of an error removing a credit card. |
java.lang.String |
getRemoveCardSuccessURL()
Returns property removeCardSuccessURL, used to redirect user in a credit card is successfully removed. |
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. |
atg.commerce.order.OrderHolder |
getShoppingCart()
Returns property ShoppingCart. |
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. |
java.lang.String |
getUpdateAddressErrorURL()
Returns property updateAddressErrorURL, used to redirect user in case of an error updating an address. |
java.lang.String |
getUpdateAddressSuccessURL()
Returns property updateAddressSuccessURL, used to redirect user when an address is successfully updated. |
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. |
UserItems |
getUserItems()
|
protected java.util.Locale |
getUserLocale(atg.servlet.DynamoHttpServletRequest pRequest)
Returns the Locale for the user given the request. |
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 secondary address into the editValue map, allowing the user to edit them. |
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 |
handleLoginDuringCheckout(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Handle login during the checkout process. |
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 |
isNewUser()
Checks if user is not exists, i.e. |
boolean |
isPreviousOptInStatus()
|
boolean |
isUseShippingAddressAsDefault()
|
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 |
postLoginUser(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
|
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 |
preChangePassword(atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Override the OOTB method to that a password length check is performed. |
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. |
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 |
setCardProperties(java.lang.String[] pCardProperties)
Sets property cardProperties, naming the properties in a credit card entry. |
void |
setCheckoutLoginOption(java.lang.String pCheckoutLoginOption)
Sets property mCheckoutLoginOption. |
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 |
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 |
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 |
setNewAddressErrorURL(java.lang.String pNewAddressErrorURL)
Sets property newAddressErrorURL, used to redirect user in case of an error creating an address. |
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 |
setPreRegisterErrorURL(java.lang.String pPreRegisterErrorURL)
|
void |
setPreRegisterSuccessURL(java.lang.String pPreRegisterSuccessURL)
|
void |
setPreviousOptInStatus(boolean pPreviousOptInStatus)
|
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 |
setSessionBean(SessionBean pSessionBean)
|
void |
setShippingAddressNicknameMapKey(java.lang.String pShippingAddressNicknameMapKey)
|
void |
setShippingGroupMapContainer(atg.commerce.order.purchase.ShippingGroupMapContainer pShippingGroupMapContainer)
Set the ShippingGroupMapContainer property. |
void |
setShoppingCart(atg.commerce.order.OrderHolder pShoppingCart)
Sets property ShoppingCart. |
void |
setSourceCode(java.lang.String pSourceCode)
|
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 |
setUserItems(UserItems pUserItems)
|
void |
setUseShippingAddressAsDefault(boolean pUseShippingAddressAsDefault)
|
protected void |
updateSecondaryAddressName(atg.repository.RepositoryItem pProfile,
java.lang.String pOldAddressName,
java.lang.String pNewAddressName)
Updates an address nickname |
protected void |
updateSecondaryInfo(atg.core.util.Address pTargetAddress,
atg.core.util.Address pSourceAddress)
Updates all the properties of an address that don't effect 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 |
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.HashMap 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 |
validatePassword(java.lang.String pPassword,
atg.servlet.DynamoHttpServletRequest pRequest,
atg.servlet.DynamoHttpServletResponse pResponse)
Validates password. |
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 |
Methods inherited from class atg.commerce.profile.CommerceProfileFormHandler |
---|
addProperty, getDefaultLocale, getOrderManager, getPromotionTools, getUserLocale, getUserPricingModels, setDefaultLocale, setOrderManager, setPromotionTools, setUserPricingModels |
Methods inherited from class atg.scenario.userprofiling.ScenarioProfileFormHandler |
---|
addScenarioInstances, addSlotInstances, getScenarioManager, handleCreate, handleDelete, handleLogin, handleLogout, handleUpdate, isOverrideFormHandlerRedirect, setOverrideFormHandlerRedirect, setScenarioManager |
Methods inherited from class atg.userprofiling.ProfileFormHandler |
---|
addProfileUpdateListener, checkFormError, createProfileItem, getClearValuesOnCreate, getClearValuesOnLogin, getClearValuesOnUpdate, getExpiredPasswordService, getProfile, getProfileUpdateEvent, getProfileUpdateTrigger, getRepositoryId, getRequestLocale, getTestPassword, getUpdateRepositoryId, getVerifyPasswordSuccessURL, handleCancel, handleVerifyPassword, isCreateNewUser, isGenerateProfileUpdateEvents, isSendCookie, preLogoutUser, propagateLocale, removeProfileUpdateListener, sendProfileUpdateEvent, setClearValuesOnCreate, setClearValuesOnLogin, setClearValuesOnUpdate, setCreateNewUser, setExpiredPasswordService, setGenerateProfileUpdateEvents, setProfile, setProfileUpdateEvent, setProfileUpdateTrigger, setRepositoryId, setRequestLocale, setTestPassword, setUpdateRepositoryId, setVerifyPasswordSuccessURL, shouldCreateNewUser |
Methods inherited from class atg.userprofiling.ProfileForm |
---|
addMulti, addPropertiesOnLogin, addSwapEventListener, addUser, changePassword, checkFormSuccess, checkForRequiredParameters, checkForRequiredProperties, checkForRequiredProperties, commitTransaction, copyPropertiesOnLogin, doStartService, ensureTransaction, findUser, formatUserMessage, formatUserMessage, formatUserMessage, formatUserMessage, generatePropertyPath, getAddMultiPropertyName, getAddMultiPropertyValue, getBadPasswordDelay, getChangePasswordErrorURL, getChangePasswordSuccessURL, getCheckForRequiredParameters, getCheckForRequiredProperties, getCheckForRequiredPropertiesAfterUpdate, getCreateErrorURL, getCreateProfileType, getCreateSuccessURL, getDeleteErrorURL, getDeleteSuccessURL, getDescriptor, getExpireSessionOnLogout, getLoginErrorURL, getLoginProfileType, getLoginSuccessURL, getLogoutErrorURL, getLogoutProfileType, getLogoutSuccessURL, getProcessPropertyNames, getProfileItem, getProfileTools, getPropertiesToAddOnLogin, getPropertiesToCopyOnLogin, getStringValueProperty, getTransactionDemarcation, getTransactionManager, getTrimProperties, getUpdateErrorURL, getUpdateSuccessURL, getUserLoginManager, getValue, getValueFromArrayString, getValueFromObject, getValueFromObjectArray, getValueFromString, getValueFromStringArray, getValueMap, getValueProperty, handleAddMulti, handleChangePassword, handleValueDictionaryByParameters, isCompareValueInCopyPropertiesOnLogin, isConfirmOldPassword, isConfirmPassword, isExtractDefaultValuesFromProfile, isTrimProperty, isUsingLdapProfile, postAddMulti, postChangePassword, postDeleteUser, postValueDictionaryByParameters, preAddMulti, preDeleteUser, preValueDictionaryByParameters, removeSwapEventListener, removeUser, sendProfileSwapEvent, setBadPasswordDelay, setChangePasswordErrorURL, setChangePasswordSuccessURL, setCheckForRequiredParameters, setCheckForRequiredProperties, setCheckForRequiredPropertiesAfterUpdate, setCompareValueInCopyPropertiesOnLogin, setConfirmOldPassword, setConfirmPassword, setCreateErrorURL, setCreateProfileType, setCreateSuccessURL, setDeleteErrorURL, setDeleteSuccessURL, setExpireSessionOnLogout, setExtractDefaultValuesFromProfile, setLoginErrorURL, setLoginProfileType, setLoginSuccessURL, setLogoutErrorURL, setLogoutProfileType, setLogoutSuccessURL, setProfileTools, setPropertiesToAddOnLogin, setPropertiesToCopyOnLogin, setTrimProperties, setUpdateErrorURL, setUpdateSuccessURL, setUserLoginManager, setUsingLdapProfile, setValueDictionaryByParameters, setValueProperty, updateLDAPProfileAttributes, updatePasswordValue, updateProfileAttributes, updateProfileAttributes, updateUser, userAlreadyExists, valueIsEmpty |
Methods inherited from class atg.droplet.GenericFormHandler |
---|
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 |
Methods inherited from class atg.droplet.EmptyFormHandler |
---|
afterGet, beforeGet |
Methods inherited from class atg.nucleus.GenericService |
---|
addLogListener, createAdminServlet, doStopService, getAbsoluteName, getAdminServlet, getLoggingForVlogging, getLogListenerCount, getLogListeners, getName, getNameContext, getNucleus, getRoot, getServiceConfiguration, getServiceInfo, 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, setLoggingDebug, setLoggingError, setLoggingInfo, setLoggingTrace, setLoggingWarning, setNucleus, setServiceInfo, startService, stopService |
Methods inherited from class atg.nucleus.logging.VariableArgumentApplicationLoggingImpl |
---|
vlogDebug, vlogDebug, vlogDebug, vlogDebug, 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 |
---|
public static java.lang.String CLASS_VERSION
Constructor Detail |
---|
public StoreProfileFormHandler()
Method Detail |
---|
public SessionBean getSessionBean()
public void setSessionBean(SessionBean pSessionBean)
public atg.commerce.gifts.GiftlistManager getGiftlistManager()
public void setGiftlistManager(atg.commerce.gifts.GiftlistManager pGiftlistManager)
public java.lang.String getNicknameValueMapKey()
public void setNicknameValueMapKey(java.lang.String pNicknameValueMapKey)
NicknameValueMapKey
- the String to setpublic java.lang.String getAddressIdValueMapKey()
public void setAddressIdValueMapKey(java.lang.String pAddressIdValueMapKey)
AddressIdValueMapKey
- the String to setpublic java.lang.String getNewNicknameValueMapKey()
public void setNewNicknameValueMapKey(java.lang.String pNewNicknameValueMapKey)
NewNicknameValueMapKey
- the String to setpublic java.lang.String getShippingAddressNicknameMapKey()
public void setShippingAddressNicknameMapKey(java.lang.String pShippingAddressNicknameMapKey)
ShippingAddressNicknameMapKey
- the String to setpublic java.util.Map getEditValue()
public void setAddressProperties(java.lang.String[] pAddressProperties)
public java.lang.String[] getAddressProperties()
public void setCardProperties(java.lang.String[] pCardProperties)
public 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)
public java.lang.String getRemoveAddress()
public void setEditAddress(java.lang.String pEditAddress)
public java.lang.String getEditAddress()
public void setRemoveCard(java.lang.String pRemoveCard)
public java.lang.String getRemoveCard()
public java.lang.String getDateOfBirth()
public void setDateOfBirth(java.lang.String pDateOfBirth)
pDateBirth
- - date of birth.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)
public java.lang.String getSourceCode()
public void setSourceCode(java.lang.String pSourceCode)
pSourceCode
- - source code.public void setCheckoutLoginOption(java.lang.String pCheckoutLoginOption)
pCheckoutLoginOption
- - true if login should be checked,
false - otherwisepublic java.lang.String getCheckoutLoginOption()
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 UserItems getUserItems()
public void setUserItems(UserItems pUserItems)
pUserItems
- - user items.public void setShoppingCart(atg.commerce.order.OrderHolder pShoppingCart)
setShoppingCart
in class atg.commerce.profile.CommerceProfileFormHandler
pShoppingCart
- an OrderHolder
valuepublic atg.commerce.order.OrderHolder getShoppingCart()
getShoppingCart
in class atg.commerce.profile.CommerceProfileFormHandler
OrderHolder
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 atg.payment.creditcard.ExtendableCreditCardTools getCreditCardTools()
public void setCreditCardTools(atg.payment.creditcard.ExtendableCreditCardTools pCreditCardTools)
pCreditCardTools
- new ExtendableCreditCardToolspublic void setNewAddressSuccessURL(java.lang.String pNewAddressSuccessURL)
public java.lang.String getNewAddressSuccessURL()
public void setNewAddressErrorURL(java.lang.String pNewAddressErrorURL)
public java.lang.String getNewAddressErrorURL()
public void setUpdateAddressSuccessURL(java.lang.String pUpdateAddressSuccessURL)
public java.lang.String getUpdateAddressSuccessURL()
public void setUpdateAddressErrorURL(java.lang.String pUpdateAddressErrorURL)
public java.lang.String getUpdateAddressErrorURL()
public void setCreateCardSuccessURL(java.lang.String pCreateCardSuccessURL)
public java.lang.String getCreateCardSuccessURL()
public void setCreateCardErrorURL(java.lang.String pCreateCardErrorURL)
public 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)
public java.lang.String getRemoveCardSuccessURL()
public void setRemoveCardErrorURL(java.lang.String pRemoveCardErrorURL)
public java.lang.String getRemoveCardErrorURL()
public java.lang.String getPreRegisterSuccessURL()
public void setPreRegisterSuccessURL(java.lang.String pPreRegisterSuccessURL)
public java.lang.String getPreRegisterErrorURL()
public void setPreRegisterErrorURL(java.lang.String pPreRegisterErrorURL)
public void setShippingGroupMapContainer(atg.commerce.order.purchase.ShippingGroupMapContainer pShippingGroupMapContainer)
pShippingGroupMapContainer
- a ShippingGroupMapContainer
valuepublic atg.commerce.order.purchase.ShippingGroupMapContainer getShippingGroupMapContainer()
ShippingGroupMapContainer
valueprotected 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 postLoginUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postLoginUser
in class atg.commerce.profile.CommerceProfileFormHandler
javax.servlet.ServletException
java.io.IOException
public boolean handleLoginDuringCheckout(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
This method will not allow the carts to merge and will ensure the current 'anonymous' cart is kept current.
pRequest
- DynamoHttpServletRequestpResponse
- DynamoHttpServletResponse
javax.servlet.ServletException
- if there was an error while executing the code
java.io.IOException
- if there was an error with servlet iopublic java.lang.String evalEmailAddress()
checkoutLoginOption
.
checkoutLoginOption
equals CONTINUE_ANONYMOUS
then use anonymousEmailAddress
.
checkoutLoginOption
equals CREATE_NEW_USER
then use newCustomerEmailAddress
.
public boolean isNewUser()
checkoutLoginOption
equals CREATE_NEW_USER
or CONTINUE_ANONYMOUS
public 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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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)
public atg.repository.RepositoryItem createUser(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
createUser
in class atg.userprofiling.ProfileForm
javax.servlet.ServletException
java.io.IOException
ProfileForm.preCreateUser(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 Format
protected void preChangePassword(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preChangePassword
in class atg.userprofiling.ProfileForm
javax.servlet.ServletException
java.io.IOException
ProfileForm.preChangePassword(atg.servlet.DynamoHttpServletRequest,
atg.servlet.DynamoHttpServletResponse)
protected boolean validatePassword(java.lang.String pPassword, atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pPassword
- password to checkpRequest
- http requestpResponse
- http response
public 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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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 address
javax.servlet.ServletException
java.io.IOException
protected boolean validateCreditCardFields(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pRequest
- http requestpResponse
- http response
protected boolean validateBillingAddressFields(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse)
pRequest
- http requestpResponse
- http response
protected boolean validateCreditCard(java.util.HashMap pCard, java.util.ResourceBundle pBundle)
CreditCardTools.verifyCreditCard(CreditCardInfo)
protected void preUpdateCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException
pRequest
- current requestpResponse
- current response
atg.repository.RepositoryException
- if unable to obtain user card's properties.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 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.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 response
javax.servlet.ServletException
java.io.IOException
public 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 response
javax.servlet.ServletException
java.io.IOException
public boolean handleDefaultCard(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws atg.repository.RepositoryException, javax.servlet.ServletException, java.io.IOException
pRequest
- DynamoHttpServletRequestpResponse
- DynamoHttpServletResponse
atg.repository.RepositoryException
- if there was an error accessing the repository
javax.servlet.ServletException
- if there was an error while executing the code
java.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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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 servlet's requestpResponse
- 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
java.beans.IntrospectionException
java.lang.ClassNotFoundException
java.lang.IllegalAccessException
java.lang.InstantiationException
protected boolean validateAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- http requestpResponse
- http response
javax.servlet.ServletException
java.io.IOException
protected 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 responseprotected void checkForDuplicateAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse, java.lang.String pNickname, java.util.List<java.lang.String> pIgnoredNames)
pRequest
- - http requestpResponse
- - http responsepProfile
- - profilepNickname
- - nicknamepIgnoredNames
- - names we wont check for duplicatespublic 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 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.repository.RepositoryException
- if there was an error accessing the repositoryprotected void updateSecondaryAddressName(atg.repository.RepositoryItem pProfile, java.lang.String pOldAddressName, java.lang.String pNewAddressName)
pProfile
- The users profilepOldAddressName
- Old address namepNewAddressName
- New address nameprotected 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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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
- DynamoHttpServletResponse
atg.repository.RepositoryException
javax.servlet.ServletException
public boolean handleEditAddress(atg.servlet.DynamoHttpServletRequest pRequest, atg.servlet.DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
pRequest
- the servlet's requestpResponse
- 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 iopublic 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 response
javax.servlet.ServletException
- if there was an error while executing the code
java.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
atg.repository.RepositoryException
javax.servlet.ServletException
java.io.IOException
protected StorePropertyManager getStorePropertyManager()
protected void generateFormException(java.lang.String pWhatException, atg.repository.RepositoryException pRepositoryExc, atg.servlet.DynamoHttpServletRequest pRequest)
pWhatException
- String description of exceptionpRepositoryExc
- RepositoryExceptionpRequest
- DynamoHttpServletRequestprotected void generateFormException(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 generateFormException(java.lang.String pWhatException, java.lang.Object[] pArgs, java.lang.String pPath, atg.servlet.DynamoHttpServletRequest pRequest)
whatException
- String description of exceptionpArgs
- String array with arguments used message formattingpPath
- Full path to form handler property associated with the exceptionpRequest
- DynamoHttpServletRequestprotected void generateFormException(java.lang.String pWhatException, java.lang.String pPath, atg.servlet.DynamoHttpServletRequest pRequest)
whatException
- String description of exceptionpPath
- Full path to form handler property associated with the exceptionpRequest
- DynamoHttpServletRequestprotected java.util.Locale getLocale(atg.servlet.DynamoHttpServletRequest pRequest)
pRequest
- DynamoHttpServletRequest
protected java.lang.String getDateByFormat(java.lang.Object pDate, java.lang.String pFormat)
pDate
- getting from databasepFormat
- Date Format get by database
public 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 user
public static java.util.ResourceBundle getResourceBundle(java.util.Locale pLocale) throws java.util.MissingResourceException
pLocale
- the locale of the user
java.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
locale
public 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 response
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |