public class B2CProfileFormHandler extends CommerceProfileFormHandler
After creating the user, update current user's secondaryAddressMap (in the profile repository) to include the shipping address, indexed with the nickname provided.
ProfileForm.ProfileFormHashtableWrapper
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_VERSION
Class version string
|
static java.lang.String |
RESOURCE_BUNDLE |
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_INVALID_PASSWORD, 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
SERVICE_INFO_KEY
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
DEFAULT_LOG_TRACE_STATUS
DEFAULT_LOG_DEBUG_STATUS, DEFAULT_LOG_ERROR_STATUS, DEFAULT_LOG_INFO_STATUS, DEFAULT_LOG_WARNING_STATUS
Constructor and Description |
---|
B2CProfileFormHandler()
Constructs an instanceof B2CProfileFormHandler
|
Modifier and Type | Method and Description |
---|---|
java.lang.String[] |
getAddressProperties()
Returns property addressProperties, naming the properties in a
secondary address record.
|
java.util.List |
getAddressPropertyList()
If the address property list is null, the initializeAddressPropertyList method is called to
create a list from the appropriate property manager class.
|
java.lang.String[] |
getCardProperties()
Returns property cardProperties, naming the properties in a
credit card entry.
|
java.util.List |
getCardPropertyList()
If the CardPropertyList is null, the initializeCardPropertyList method is called to create
a list from the appropriate property manager class.
|
java.lang.String |
getChangeAddressNicknameErrorURL()
Returns property changeAddressNicknameErrorURL, used to redirect user in
case of an error updating an address nickname.
|
java.lang.String |
getChangeAddressNicknameSuccessURL()
Returns property changeAddressNicknameSuccessURL, used to redirect user when
an address nickname is successfully updated.
|
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.
|
java.lang.String |
getDefaultCarrier() |
java.lang.String |
getDefaultCreditCardID() |
java.lang.String |
getEditAddress()
Returns property editAddress, naming the address to be edited
in the edit_secondary_address.jhtml page.
|
java.util.Map |
getEditValue() |
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 |
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.lang.String[] |
getRequiredAddressProperties()
Returns property requiredAddressProperties, naming the properties considered
mandatory when creating a secondary address record.
|
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.
|
boolean |
handleChangeAddressNickname(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Changes the key in the secondaryAddresses map for the given address.
|
boolean |
handleCreateNewCreditCard(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Creates a new credit card using the entries entered in the editValue map
by the credit_card.jhtml page
|
boolean |
handleEditAddress(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Copy the named seconary address into the editValue map, allowing the
user to edit them in the edit_secondary_address.jhtml page.
|
boolean |
handleNewAddress(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Creates a new shipping address using the entries entered in the editValue
map by the new_shipping_address.jhtml page.
|
boolean |
handleRemoveAddress(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
This handler deletes a secondary address named in the removeAddress property.
|
boolean |
handleRemoveCard(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Delete a specified credit card for the current user.
|
boolean |
handleSelectDefaultAddress(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Copy the contents of a secondary address (identified in the editValue map
by the entry defaultAddressNickname) to the default shipping address.
|
boolean |
handleSetExpressCheckout(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Enable or disable express checkout
If disabling, clear the default credit card in the user's profile
so that that credit card may be safely deleted.
|
boolean |
handleSetExpressCheckoutPreferences(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Set values used for express checkout
|
boolean |
handleUpdateAddress(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Update the secondary address as modified by the user.
|
boolean |
handleUpdateAddressAndMakeDefault(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Update the secondary address as modified by the user, and copy
its contents to the default shipping address.
|
java.util.List |
initializeAddressPropertyList()
This method initializes the list of properties that are used for the Address information.
|
java.util.List |
initializeCardPropertyList()
This method initializes the list of properties that are used for the Credit card
information.
|
boolean |
isCompatibilityMode()
Return the value of the CompatibilityMode property.
|
boolean |
isShipToBillingAddress()
Returns property shipToBillingAddress, indicating that the billing
address should be copied to the shipping address.
|
protected boolean |
makeCreditCardDefault(Profile pProfile,
java.lang.String pCreditCardID)
Make the credit card identified by pCreditCardID default in the
given profile.
|
protected void |
postCreateUser(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Set the registration date to 'now'.
|
protected void |
preCreateUser(DynamoHttpServletRequest pRequest,
DynamoHttpServletResponse pResponse)
Before creating the user, this method:
Copies the first, middle, and last names to the billing address.
|
void |
setAddressProperties(java.lang.String[] pAddressProperties)
Sets property addressProperties, naming the properties in a
secondary address record.
|
void |
setAddressPropertyList(java.util.List pAddressPropertyList)
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 |
setCardPropertyList(java.util.List pCardPropertyList)
Sets the Card property list, which is a list that mirrors the original design of the
AddressProperties property with the proeprty names defined in a configuration file.
|
void |
setChangeAddressNicknameErrorURL(java.lang.String pChangeAddressNicknameErrorURL)
Sets property changeAddressNicknameErrorURL, used to redirect user in
case of an error updating an address nickname.
|
void |
setChangeAddressNicknameSuccessURL(java.lang.String pChangeAddressNicknameSuccessURL)
Sets property changeAddressNicknameSuccessURL, used to redirect user when
an address nickname is successfully updated.
|
void |
setCompatibilityMode(boolean pCompatibilityMode)
Sets the compatibility Mode property.
|
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 |
setDefaultCarrier(java.lang.String pShipper) |
void |
setDefaultCreditCardID(java.lang.String pID) |
void |
setEditAddress(java.lang.String pEditAddress)
Sets property editAddress, naming the address to be edited
in the edit_secondary_address.jhtml page.
|
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 |
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 |
setRequiredAddressProperties(java.lang.String[] pRequiredAddressProperties)
Sets property requiredAddressProperties, naming the properties considered
mandatory when creating a secondary address record.
|
void |
setShipToBillingAddress(boolean pShipToBillingAddress)
Sets property shipToBillingAddress, indicating that the billing
address should be copied to the shipping address.
|
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.
|
protected boolean |
validateCreditCard(java.util.HashMap card,
java.util.ResourceBundle bundle)
Validate the credit card number entered and the expiration date
(must be later than today).
|
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, postLoginUser, 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, handleClear, handleVerifyPassword, isCreateNewUser, isGenerateProfileUpdateEvents, isSendCookie, postLogoutUser, postUpdateUser, preLoginUser, preLogoutUser, preUpdateUser, 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, 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, getUserLocale, getUserLoginManager, getValue, getValueFromArrayString, getValueFromObject, getValueFromObjectArray, getValueFromString, getValueFromStringArray, getValueMap, getValueProperty, handleAddMulti, handleChangePassword, handleValueDictionaryByParameters, isCompareValueInCopyPropertiesOnLogin, isConfirmOldPassword, isConfirmPassword, isExtractDefaultValuesFromProfile, isInvalidateAllChildSessions, isTrimProperty, isUsingLdapProfile, postAddMulti, postChangePassword, 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
afterGet, beforeGet
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
public static java.lang.String RESOURCE_BUNDLE
public B2CProfileFormHandler()
public java.util.Map getEditValue()
public void setShipToBillingAddress(boolean pShipToBillingAddress)
public boolean isShipToBillingAddress()
public void setDefaultCreditCardID(java.lang.String pID)
pID
- The credit card ID to be used as the default credit
cardpublic java.lang.String getDefaultCreditCardID()
public void setDefaultCarrier(java.lang.String pShipper)
public java.lang.String getDefaultCarrier()
public void setAddressProperties(java.lang.String[] pAddressProperties)
public java.lang.String[] getAddressProperties()
public void setCompatibilityMode(boolean pCompatibilityMode)
pCompatibilityMode
- - true will cause the behavior to be identical to previous
versions (pre 5.5), false is the new behavior. Defaults is false
.public boolean isCompatibilityMode()
public void setAddressPropertyList(java.util.List pAddressPropertyList)
the
- Address property list that needs to be set.public java.util.List getAddressPropertyList()
public java.util.List initializeAddressPropertyList()
true
or whether the property manager should be
used false
. This is the method that should be overriden if new properties
are added to the list of Address properties. The easiest way to add new properties is to
do the following:
List newList = super.initializeAddressPropertyList();
newList.add("yourownproperty");
public void setRequiredAddressProperties(java.lang.String[] pRequiredAddressProperties)
public java.lang.String[] getRequiredAddressProperties()
public void setCardProperties(java.lang.String[] pCardProperties)
public java.lang.String[] getCardProperties()
public void setCardPropertyList(java.util.List pCardPropertyList)
the
- CardPropertyList list that needs to be set.public java.util.List getCardPropertyList()
public java.util.List initializeCardPropertyList()
true
or whether the property
manager should be used false
. This is the method that should be overriden
if new properties are added to the list of Credit card properties. The easiest way to
add new properties is to do the following:
List newList = super.initializeCardPropertyList();
newList.add("yourownproperty");
public void setEditAddress(java.lang.String pEditAddress)
public java.lang.String getEditAddress()
public void setRemoveAddress(java.lang.String pRemoveAddress)
public java.lang.String getRemoveAddress()
public void setRemoveCard(java.lang.String pRemoveCard)
public java.lang.String getRemoveCard()
public 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 setChangeAddressNicknameSuccessURL(java.lang.String pChangeAddressNicknameSuccessURL)
public java.lang.String getChangeAddressNicknameSuccessURL()
public void setChangeAddressNicknameErrorURL(java.lang.String pChangeAddressNicknameErrorURL)
public java.lang.String getChangeAddressNicknameErrorURL()
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 setRemoveCardSuccessURL(java.lang.String pRemoveCardSuccessURL)
public java.lang.String getRemoveCardSuccessURL()
public void setRemoveCardErrorURL(java.lang.String pRemoveCardErrorURL)
public java.lang.String getRemoveCardErrorURL()
protected void preCreateUser(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
preCreateUser
in class 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(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws javax.servlet.ServletException, java.io.IOException
postCreateUser
in class 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 boolean handleNewAddress(DynamoHttpServletRequest pRequest, 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 handleEditAddress(DynamoHttpServletRequest pRequest, 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 handleUpdateAddress(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws 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 ioRepositoryException
public boolean handleUpdateAddressAndMakeDefault(DynamoHttpServletRequest pRequest, DynamoHttpServletResponse pResponse) throws 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 ioRepositoryException
public boolean handleChangeAddressNickname(DynamoHttpServletRequest pRequest, 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 handleRemoveAddress(DynamoHttpServletRequest pRequest, 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 handleSelectDefaultAddress(DynamoHttpServletRequest pRequest, 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 handleSetExpressCheckout(DynamoHttpServletRequest pRequest, 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 handleSetExpressCheckoutPreferences(DynamoHttpServletRequest pRequest, 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 makeCreditCardDefault(Profile pProfile, java.lang.String pCreditCardID)
pProfile
- The Profile objectpCreditCardID
- The ID of the credit card to be default
pjepublic boolean handleCreateNewCreditCard(DynamoHttpServletRequest pRequest, 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 validateCreditCard(java.util.HashMap card, java.util.ResourceBundle bundle)
card
- A hashmap containing the user-entered credit card databundle
- A ResourceBundle providing the error message textpublic boolean handleRemoveCard(DynamoHttpServletRequest pRequest, 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 io