com.beasys.commerce.ebusiness.customer.webflow
Class UpdateAccountInfoIP
java.lang.Object
|
+--com.beasys.commerce.webflow.CommerceInputProcessor
|
+--com.beasys.commerce.ebusiness.customer.webflow.UpdateAccountInfoIP
- All Implemented Interfaces:
- InputProcessor, UserManagementConstants
- public class UpdateAccountInfoIP
- extends CommerceInputProcessor
UpdateAccountInfoIP processes the input from HttpServletRequest and allows customer
to update the password information.
It does the following
- Extracts and validates the customer's account information from HTTP request.
- Checks if the old password is correct
- Checks if the two new passwords ( new password and new password confirmation) are the same.
- Puts new password into the
PipelineSesion
| Fields inherited from interface com.beasys.commerce.axiom.contact.UserManagementConstants |
ANONYMOUS_PROFILE, CACHED_PROFILE, DEFAULT_SCOPE, DEFAULT_SUCCESSOR, DEFAULT_SUCCESSOR_HOME, DEFAULT_SUCCESSOR_JNDI, DEFAULT_SUCCESSOR_PK, DEFAULT_USER, DEFAULT_USER_HOME, DEFAULT_USER_JNDI, DEFAULT_USER_PK, GROUP, GROUP_ENTITY_HOME, PROFILE_MGR, PROFILE_SUCCESSOR, PROFILE_USER, REALM_CONFIG, RESERVED_SCOPE, USER, USER_ENTITY_HOME, USER_MGR |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
UpdateAccountInfoIP
public UpdateAccountInfoIP()
process
public String process(HttpServletRequest req)
throws InvalidInputException,
ProcessingException
- See the class documentation above.
- Parameters:
req - the HttpServletRequest object associated with current HTTP request.- Returns:
- upon method completion always returns
String "success". - Throws:
InvalidInputException - If any of the required fields were empty or invalid.ProcessingException - on a configuration error.
getCustomerAccountInfo
protected void getCustomerAccountInfo(HttpServletRequest req,
ValidatedValues validatedValues,
ValidationStatus invalidFieldIsPresent,
String password)
throws InvalidInputException
- Extracts and validates all HttpServletRequest parameters associated with customer's account information.
- Parameters:
req - the HttpServletRequest object associated with current HTTP request.validatedValues - ValidatedValues object to keep the status of all HttpServletRequest parameters.invalidFieldIsPresent - validation status of the field values.password - password to login- Throws:
InvalidInputException - when an error has occurred.