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

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.CSRReturnCreateCopyCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, CSRReturnCreateCopyCmd, ECCommand, ECTargetableCommand, Protectable, ToolsControllerCommand

public class CSRReturnCreateCopyCmdImpl
extends CSRReturnBaseCmdImpl
implements CSRReturnCreateCopyCmd

Copies all data for a return into the wcs session.

Utilizes these access beans

See Also:
CSRReturnRestoreCopyCmdImpl, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
protected RMAStorage rmaStorage
Data structure that stores the return data.
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.CSRReturnCreateCopyCmd
defaultCommandClassName, NAME
Constructor Summary
CSRReturnCreateCopyCmdImpl()
Method Summary
protected void executeReturnCreateCopy()
Saves copies of access beans for a Return.
protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
Extracts and stores data passed in the XML parameter.
void performExecute()
Calls executeReturnCreateCopy.
Methods inherited from class com.ibm.commerce.tools.optools.returns.commands.CSRReturnBaseCmdImpl
exceptionUtil, getCustomerId, getNLS, getOrigCmdContext, getOrigReqProperties, getRedirectURL, getResources, 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
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.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright notice field.
See Also:
Constant Field Values

rmaStorage

protected RMAStorage rmaStorage
Data structure that stores the return data.
Constructor Detail

CSRReturnCreateCopyCmdImpl

public CSRReturnCreateCopyCmdImpl()
Method Detail

executeReturnCreateCopy

protected void executeReturnCreateCopy()
                                throws java.lang.Exception
Saves copies of access beans for a Return. Loads return data from the database into the various access beans. Saves the cached version of the return data to the wcs session. Sets the INUSE column on the rma/return to 'Y' to mark that the return is being edited.
Throws:
java.lang.Exception

parseInputXMLObject

protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
                            throws ECApplicationException
Extracts and stores data passed in the XML parameter. Calls setReturnId with returnId.
Specified by:
parseInputXMLObject in class CSRReturnBaseCmdImpl
Parameters:
xmlRoot - Representation of the xml data stream as a java Hashtable
Throws:
ECApplicationException - If returnId is null or empty

performExecute

public void performExecute()
                    throws ECException
Calls executeReturnCreateCopy. 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 a general exception occurs.

Feedback