com.ibm.commerce.tools.optools.returns.commands
Class CSRReturnItemComponentUpdateCmdImpl

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

	Updates one or more return item components in a return.  
	This command is a wrapper for ReturnItemComponentUpdateCmd command.  
	See the command class com.ibm.commerce.returns.commands.ReturnItemComponentUpdateCmd for more detailed
	information of the behavior.


Field Summary
static java.lang.String COPYRIGHT
           
protected  java.util.Vector returnItemComponentsToBeUpdated
          Vector containing Hashtables.
 
Fields inherited from class com.ibm.commerce.tools.optools.returns.commands.CSRReturnBaseCmdImpl
customerId, ERRTASK_NAME, origCmdContext, origReqProperties, redirectURL, returnId, returnResBun, xmlRoot
 
Fields inherited from class com.ibm.commerce.command.ControllerCommandImpl
requestProperties, responseProperties, retriable, viewReqProperties
 
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.tools.optools.returns.commands.CSRReturnItemComponentUpdateCmd
defaultCommandClassName, NAME
 
Constructor Summary
CSRReturnItemComponentUpdateCmdImpl()
           
 
Method Summary
 AccessVector getResources()
          Gets the access vector accessed by this command.
 java.util.Vector getReturnItemComponentsToBeUpdated()
          Getter method.
protected  void parseInputXMLObject(java.util.Hashtable xmlRoot)
           Parses the input xml data stream, retrieves the parameters and stores them in the objects variables.
 void performExecute()
          Copies the command context and request properties in preparation of calling the ReturnItemComponentUpdateCmd command.
 void setReturnItemComponentsToBeUpdated(java.util.Vector newReturnItemComponentsToBeUpdated)
          Setter method.
 
Methods inherited from class com.ibm.commerce.tools.optools.returns.commands.CSRReturnBaseCmdImpl
exceptionUtil, getCustomerId, getNLS, getOrigCmdContext, getOrigReqProperties, getRedirectURL, getReturnId, setCustomerId, setNLS, setOrigCmdContext, setOrigReqProperties, setRedirectURL, setReturnId, traceFormat, validateParameters
 
Methods inherited from class com.ibm.commerce.tools.optools.order.commands.CSRBaseControllerCommandImpl
callPreCommands, findCmdInterfaceName, getIfExePreCmdChains, getPreCmdChain, setIfExePreCmdChains, setPreCmdChain
 
Methods inherited from class com.ibm.commerce.tools.command.ToolsControllerCommandImpl
getViewInputProperties, setRequestProperties
 
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
 
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
 
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

returnItemComponentsToBeUpdated

protected java.util.Vector returnItemComponentsToBeUpdated
Vector containing Hashtables. Each Hashtable represents a return item component that will be updated.
Constructor Detail

CSRReturnItemComponentUpdateCmdImpl

public CSRReturnItemComponentUpdateCmdImpl()
Method Detail

getResources

public AccessVector getResources()
                          throws ECException
Gets the access vector accessed by this command. The default implementation returns null indicating that no protectable resource is accessed by this command.

Specified by:
getResources in interface ECCommand
Overrides:
getResources in class CSRReturnBaseCmdImpl
Returns:
AccessVector of resource action pairs

getReturnItemComponentsToBeUpdated

public java.util.Vector getReturnItemComponentsToBeUpdated()
Getter method.
Returns:
Vector containing Hashtables representing return items components.

parseInputXMLObject

protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
                            throws ECApplicationException
 Parses the input xml data stream,  retrieves the parameters and stores them in the objects variables.
 The following setter methods are called:  
   - setCustomerId
   - setReturnItemComponentsToBeUpdated
Overrides:
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
Copies the command context and request properties in preparation of calling the ReturnItemComponentUpdateCmd command. Calls the ReturnItemComponentUpdateCmd. Set 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:
ECApplicationException - If ReturnItemComponentUpdateCmd command throws an exception. If a general exception occurs while parsing and validating the input params.

setReturnItemComponentsToBeUpdated

public void setReturnItemComponentsToBeUpdated(java.util.Vector newReturnItemComponentsToBeUpdated)
Setter method.
Parameters:
newReturnItemComponentsToBeUpdated - Vector containing hashtables representing return item components.