com.ibm.commerce.tools.optools.returns.commands
Class CSRDisplayRefundByCreditCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.command.BusinessPolicyCommandImpl
|
+--com.ibm.commerce.tools.optools.returns.commands.CSRDisplayRefundPaymentInfoCmdImpl
|
+--com.ibm.commerce.tools.optools.returns.commands.CSRDisplayRefundByCreditCmdImpl
- All Implemented Interfaces:
- BusinessPolicyCommand, CSRDisplayRefundPaymentInfoCmd, ECCommand, TaskCommand
- public class CSRDisplayRefundByCreditCmdImpl
- extends CSRDisplayRefundPaymentInfoCmdImpl
Brief Description:
Policy command that retrives the credit information for a return.
This command gets executed for rma's whose refund policy type is
set to 'Credit Line' meaning the credit will go to the line of credit
account of the organization wh
Input parameters:
RMAAccessBean - set the RMAAcessBean using the setRMA(...) method
Output parameters:
This command populates a data structure with the credit account information.
To retrive the data structure call the getCreditAccountInformation() method.
This method returns a Vector of Hashtables that contain Hashtables.
A sample usage of the output is as follows:
Vector creditInfo = getCreditAccountInformation()
if ( creditInfo != null && creditInfo.size() != 0 )
{
for (int i = 0; i < creditInfo.size(); i++ )
{
Hashtable ht1 = (Hashtable) creditInfo.elementAt(i);
Enumeration enum = ht1.elements();
Hashtable ht2 = (Hashtable) enum.nextElement(); // only 1 element in this hashtable
String labelKey = (String) ht2.get("LABEL_KEY"); // gets the label key from the ReturnNLS.properties file
String value = (String) ht2.get("VALUE"); // gets the value
}
}
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
CSRDisplayRefundByCreditCmdImpl
public CSRDisplayRefundByCreditCmdImpl()
performExecute
public void performExecute()
throws ECException
- Executes the policy command.
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
populateCreditAccountInformation
public void populateCreditAccountInformation()
throws ECException
- Populate the refund credit account information
validateParameters
public void validateParameters()
throws ECException
- Validate input parameters.
- Overrides:
validateParameters
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
ECException.
-