com.beasys.commerce.ebusiness.customer.webflow
Class DeleteCreditCardIP
java.lang.Object
|
+--com.beasys.commerce.webflow.CommerceInputProcessor
|
+--com.beasys.commerce.ebusiness.customer.webflow.DeleteCreditCardIP
- All Implemented Interfaces:
- InputProcessor, UserManagementConstants
- public class DeleteCreditCardIP
- extends CommerceInputProcessor
DeleteCreditCardIP processes the input from HttpServletRequest and allows customer to
delete a credit card from the profile.
It does the following
- Gets selected credit card key from HTTP request.
- Retrieves the customer's credit card map and removes the credit card with above selected credit card key.
- Creates a new
CustomerValue object and sets the credit card map with above updated map.
- Puts the
CustomerValue object into the PipelineSession
| 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 |
DeleteCreditCardIP
public DeleteCreditCardIP()
process
public String process(HttpServletRequest req)
throws InvalidInputException,
InvalidSessionStateException
- 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.InvalidSessionStateException - If the session is new.