com.ibm.commerce.tools.optools.returns.commands
Class CSRReturnItemComponentUpdateCmdImpl
java.lang.Object
CacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.ControllerCommandImpl
com.ibm.commerce.tools.command.ToolsControllerCommandImpl
com.ibm.commerce.tools.optools.order.commands.CSRBaseControllerCommandImpl
com.ibm.commerce.tools.optools.returns.commands.CSRReturnBaseCmdImpl
com.ibm.commerce.tools.optools.returns.commands.CSRReturnItemComponentUpdateCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, CSRReturnItemComponentUpdateCmd, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand
- public class CSRReturnItemComponentUpdateCmdImpl
- extends CSRReturnBaseCmdImpl
- implements CSRReturnItemComponentUpdateCmd
Default implementation of CSRReturnItemComponentUpdateCmd. Wrapper for implementation of ReturnItemComponentUpdateCmd.
- See Also:
- Serialized Form
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright notice field. |
protected java.util.Vector |
returnItemComponentsToBeUpdated
List of components to be modified Vector containing Hashtables, with each hashtable representing a return item component. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkParameters, checkResourcePermission, createCommandExecutionEvent, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright notice field.
- See Also:
- Constant Field Values
returnItemComponentsToBeUpdated
protected java.util.Vector returnItemComponentsToBeUpdated
- List of components to be modified Vector containing Hashtables, with each hashtable representing a return item component.
CSRReturnItemComponentUpdateCmdImpl
public CSRReturnItemComponentUpdateCmdImpl()
getResources
public AccessVector getResources()
throws ECException
- Gets the access vector used by command. There are no protected resources.
-
- Specified by:
- getResources in interface ECCommand
- Overrides:
- getResources in class CSRReturnBaseCmdImpl
-
- Returns:
- vector of resource action pairs
- Throws:
- ECException
- See Also:
- AccessVector
getReturnItemComponentsToBeUpdated
public java.util.Vector getReturnItemComponentsToBeUpdated()
- Gets list of components on Return to be updated.
-
- Returns:
- Vector containing Hashtables representing return items components.
parseInputXMLObject
protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
throws ECApplicationException
- Extracts and stores data passed in the XML parameter. Calls setCustomerId with customerId, and setReturnItemComponentsToBeUpdated with data in the returnItemComponent node.
-
- Specified by:
- parseInputXMLObject in class CSRReturnBaseCmdImpl
-
- Parameters:
- xmlRoot - Representation of the xml data stream as a java Hashtable
- Throws:
- ECApplicationException - If customerId is null or empty.
performExecute
public void performExecute()
throws ECException
- Sets up the input request property for the ReturnItemComponentUpdateCmd command and calls the command. Sets up the redirect URL by putting the redirect URL parameter into the response property.
-
- Specified by:
- performExecute in interface ECCommand
- Overrides:
- performExecute in class AbstractECTargetableCommand
-
- Throws:
- ECException - If component is not successfully updated
setReturnItemComponentsToBeUpdated
public void setReturnItemComponentsToBeUpdated(java.util.Vector newReturnItemComponentsToBeUpdated)
- Sets list of components on Return to be updated.
-
- Parameters:
- newReturnItemComponentsToBeUpdated - vector of hashtables where each hashtable represents data for a return item component
Feedback
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.