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

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

public class CSRReturnProcessCmdImpl
extends CSRReturnBaseCmdImpl
implements CSRReturnProcessCmd

Default implementation of CSRReturnProcessCmd. Wrapper for implementation of ReturnProcessCmd.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
IBM copyright notice field.
protected java.lang.String refundPolicyId
Refund policy identifier parameter
protected java.lang.String strEdit
Edit parameter
protected java.lang.String xmlFile
XML command parameter
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.CSRReturnProcessCmd
defaultCommandClassName, NAME
Constructor Summary
CSRReturnProcessCmdImpl()
Method Summary
java.lang.String getRefundPolicyId()
Gets refund policy identifier.
protected java.lang.String getStrEdit()
Gets edit parameter
java.lang.String getXmlFile()
Gets XML command parameter.
protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
Extracts and stores data passed in the XML parameter.
void performExecute()
Sets up the input request property for the ReturnProcessCmd command and calls the command.
void setRefundPolicyId(java.lang.String newRefundPolicyId)
Sets refund policy identifier.
protected void setStrEdit(java.lang.String newStrEdit)
Sets edit parameter
void setXmlFile(java.lang.String newXmlFile)
Sets XML command parameter.
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

xmlFile

protected java.lang.String xmlFile
XML command parameter

strEdit

protected java.lang.String strEdit
Edit parameter

refundPolicyId

protected java.lang.String refundPolicyId
Refund policy identifier parameter
Constructor Detail

CSRReturnProcessCmdImpl

public CSRReturnProcessCmdImpl()
Method Detail

getRefundPolicyId

public java.lang.String getRefundPolicyId()
Gets refund policy identifier.
Returns:
refund policy identifier

getStrEdit

protected java.lang.String getStrEdit()
Gets edit parameter
Returns:
flag to tell if this is an edit return or a new return.

getXmlFile

public java.lang.String getXmlFile()
Gets XML command parameter.
Returns:
XML formatted data required for calling ReturnProcessCmd

parseInputXMLObject

protected void parseInputXMLObject(java.util.Hashtable xmlRoot)
                            throws ECApplicationException
Extracts and stores data passed in the XML parameter. Calls setReturnId with returnId, setCustomerId with customerId, setRefundPolicyId with refundPolicyId, and setStrEdit with edit. Sets the INUSE column on the return to 'N' to denote the return is not being edited.
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. If returnId is null or empty. If refundPolicyId is null or empty.

performExecute

public void performExecute()
                    throws ECException
Sets up the input request property for the ReturnProcessCmd 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 return is not successfully processed

setRefundPolicyId

public void setRefundPolicyId(java.lang.String newRefundPolicyId)
Sets refund policy identifier.
Parameters:
newRefundPolicyId - refund policy identifier

setStrEdit

protected void setStrEdit(java.lang.String newStrEdit)
Sets edit parameter
Parameters:
newStrEdit - flag to tell if this is an edit return or a new return.

setXmlFile

public void setXmlFile(java.lang.String newXmlFile)
Sets XML command parameter.
Parameters:
newXmlFile - XML formatted data required for calling ReturnProcessCmd

Feedback