com.ibm.commerce.tools.optools.returns.commands
Class CSRReturnProcessCmdImpl
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
Process the return specified by <returnId>.
This command is a wrapper for the ReturnProcessCmd command.
See the command class com.ibm.commerce.returns.commands.ReturnProcessCmd for more detailed information
on the behavior.
Method Summary |
java.lang.String |
getRefundPolicyId()
Gets the refund policy id. |
protected java.lang.String |
getStrEdit()
Getter method. |
java.lang.String |
getXmlFile()
Get the xmlfile for this command. |
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 ReturnProcessCmd command. |
void |
setRefundPolicyId(java.lang.String newRefundPolicyId)
Sets the refund policy id. |
protected void |
setStrEdit(java.lang.String newStrEdit)
Setter method. |
void |
setXmlFile(java.lang.String newXmlFile)
Setter method. |
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.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.ECCommand |
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
refundPolicyId
protected java.lang.String refundPolicyId
strEdit
protected java.lang.String strEdit
xmlFile
protected java.lang.String xmlFile
CSRReturnProcessCmdImpl
public CSRReturnProcessCmdImpl()
getRefundPolicyId
public java.lang.String getRefundPolicyId()
- Gets the refund policy id.
- Returns:
- The refund policy id.
getStrEdit
protected java.lang.String getStrEdit()
- Getter method.
- Returns:
- The flag to tell if this is an edit return or a new return.
getXmlFile
public java.lang.String getXmlFile()
- Get the xmlfile for this command.
- Returns:
- The xmlfile.
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:
- setReturnId
- setCustomerId
- setRefundPolicyId
- setStrEdit
- Overrides:
parseInputXMLObject
in class CSRReturnBaseCmdImpl
- Parameters:
xmlRoot
- Respresentation 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
- Copies the command context and request properties in preparation of calling the ReturnProcessCmd command.
Calls the ReturnProcessCmd.
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 ReturnProcessCmd command throws an exception.
If a general exception occurs while parsing and validating the input params.
setRefundPolicyId
public void setRefundPolicyId(java.lang.String newRefundPolicyId)
- Sets the refund policy id.
- Parameters:
newRefundPolicyId
- The refund policy id.
setStrEdit
protected void setStrEdit(java.lang.String newStrEdit)
- Setter method.
- Parameters:
newStrEdit
- The flag used to determine if it is an edit return or new return.
setXmlFile
public void setXmlFile(java.lang.String newXmlFile)
- Setter method.
- Parameters:
newXmlFile
- The xmlfile for the command.