public class EvaluatePaymentRulesCmdImpl extends TaskCommandImpl implements EvaluatePaymentRulesCmd
EvaluatePaymentRulesCmd
task command.
RuleReader
to read the payment rules and decide what
actions should be executed.rulePhase |
An int that indicates the phase of the rule. |
commandContext |
The command context. |
storeId |
An Integer that specifies the store id. |
orderChannel |
A String that specifies the order channel. |
edpOrderId |
A Long that specifies the EDP order id. |
amountToProcess |
A BigDecimal that specifies the amount to be processed. |
hashOfActionList |
A HashMap that represents the list of current actions. |
phase |
An int that indicates the current phase. |
edpReleaseIds |
A List that represents the ids of the EDP releases. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CLASS_NAME
The name of the class.
|
static java.lang.String |
COPYRIGHT
The IBM Copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
EvaluatePaymentRulesCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.util.HashMap |
getActionDatas()
This method gets the current action datas.
|
java.lang.Throwable |
getException()
This method returns the thrown exception.
|
java.util.HashMap |
getHashOfActionList()
This method returns the HashMap that stores the current action list.
|
java.util.List |
getListOfActionList()
This method returns the list of current action list.
|
java.lang.String |
getOrderChannel()
This method returns the current order channel.
|
java.lang.String |
getPaymentGroupId()
This method returns the current payment configuration group id.
|
int |
getRulePhase()
This method returns the current rule phase.
|
java.lang.String |
getRuleType()
This method returns the current rule type.
|
java.lang.Integer |
getStoreId()
This method returns the current store id.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
reset()
This method resets the command fields.
|
void |
setAmountToProcess(java.math.BigDecimal amtToProcess)
This method sets the amount to be processed.
|
void |
setAtomicPaymentId(java.lang.Long atmPaymentId)
This method sets the atomic payment id.
|
void |
setEDPOrderId(java.lang.Long edpOrder)
This method sets the EDP order id.
|
void |
setEDPPaymentInstructionId(java.lang.Long localPiId)
This method sets the payment instruction id in payment rule.
|
void |
setEDPReleaseId(java.util.List edpReleaseIdList)
This method sets the release id in payment rule.
|
void |
setException(java.lang.Throwable object)
This method sets the current thrown exception.
|
void |
setHashOfActionList(java.util.HashMap map)
This method sets the HashMap that stores the current action list.
|
void |
setListOfActionList(java.util.List localListOfActionList)
This method sets the list of current action list.
|
void |
setOrderChannel(java.lang.String string)
This method sets the current order channel.
|
void |
setPaymentGroupId(java.lang.String string)
This method sets the current payment configuration group id.
|
void |
setPhase(int localPhase)
This method sets the current phase.
|
void |
setRulePhase(int i)
This method sets the current rule phase.
|
void |
setRuleType(java.lang.String string)
This method sets the rule type.
|
void |
setStoreId(java.lang.Integer integer)
This method sets the current store id.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public static final java.lang.String CLASS_NAME
public void setEDPPaymentInstructionId(java.lang.Long localPiId)
setEDPPaymentInstructionId
in interface EvaluatePaymentRulesCmd
localPiId
- A Long that specifies the current payment instruction id.public void setEDPOrderId(java.lang.Long edpOrder)
setEDPOrderId
in interface EvaluatePaymentRulesCmd
edpOrder
- A Long that specifies the current EDP order id.public void setAmountToProcess(java.math.BigDecimal amtToProcess)
setAmountToProcess
in interface EvaluatePaymentRulesCmd
amtToProcess
- A BigDecimal that specifies the current amount to process.public void setEDPReleaseId(java.util.List edpReleaseIdList)
setEDPReleaseId
in interface EvaluatePaymentRulesCmd
edpReleaseIdList
- A List that represents the ids of the EDP releases.public void setPhase(int localPhase)
setPhase
in interface EvaluatePaymentRulesCmd
localPhase
- An int that indicates the current phase.public java.util.HashMap getActionDatas()
getActionDatas
in interface EvaluatePaymentRulesCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- This exception is thrown when error occurs.public void setAtomicPaymentId(java.lang.Long atmPaymentId)
setAtomicPaymentId
in interface EvaluatePaymentRulesCmd
atmPaymentId
- A Long that specifies the atomic payment id.public void setRuleType(java.lang.String string)
setRuleType
in interface EvaluatePaymentRulesCmd
string
- A String that specifies the rule type.public java.lang.String getRuleType()
public int getRulePhase()
public void setRulePhase(int i)
setRulePhase
in interface EvaluatePaymentRulesCmd
i
- An int that indicates the current rule phase.public java.util.HashMap getHashOfActionList()
getHashOfActionList
in interface EvaluatePaymentRulesCmd
public java.util.List getListOfActionList()
getListOfActionList
in interface EvaluatePaymentRulesCmd
public void setHashOfActionList(java.util.HashMap map)
setHashOfActionList
in interface EvaluatePaymentRulesCmd
map
- A HashMap that represents the list of current actions.public void setListOfActionList(java.util.List localListOfActionList)
setListOfActionList
in interface EvaluatePaymentRulesCmd
localListOfActionList
- A List that represents the list of current actions.public java.lang.Throwable getException()
getException
in interface EvaluatePaymentRulesCmd
public void setException(java.lang.Throwable object)
object
- A Throwable that represents the current thrown exception.public java.lang.String getOrderChannel()
public java.lang.String getPaymentGroupId()
public java.lang.Integer getStoreId()
getStoreId
in interface ECCommand
getStoreId
in class AbstractECTargetableCommand
public void setOrderChannel(java.lang.String string)
setOrderChannel
in interface EvaluatePaymentRulesCmd
string
- A String that specifies the current order channel.public void setPaymentGroupId(java.lang.String string)
string
- A String that specifies the payment configuration group id.public void setStoreId(java.lang.Integer integer)
setStoreId
in interface EvaluatePaymentRulesCmd
integer
- An Integer that specifies the id of the current store.public void reset()
This method resets the command fields.
After this method is invoked, and proper attributes are set, the command can be executed again.
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand