public class TriggerPaymentActionsCmdImpl extends AEDPPaymentTaskCmdImpl implements TriggerPaymentActionsCmd
TriggerPaymentActionsCmd
task command.
commandContext |
The command context. |
iabOrder |
An OrderAccessBean for the current order. |
orderTotalAmount |
A BigDecimal that specifies the total amount of the order. |
orderInitialAmount |
A BigDecimal that specifies the initial amount to be used in the trigger payment action business event request. |
defaultCommandClassName, NAME
Constructor and Description |
---|
TriggerPaymentActionsCmdImpl() |
Modifier and Type | Method and Description |
---|---|
OrderAccessBean |
getOrderAccessBean()
This method gets a reference to the order access bean.
|
boolean |
isProcessBGExecutableInFG()
This method returns if the backend tasks could be executed in foreground.
|
boolean |
isReadyToCallExecute()
This method is called by the Command Framework to check if all basic mandatory parameters
have been set for this command.
|
void |
performExecute()
This method executes the business logic of this command implementation.
|
void |
processFG()
This method executes the foreground tasks.
|
void |
reset()
This method resets the command fields.
|
void |
setInitialAmount(java.math.BigDecimal initialAmount)
This method sets the initial amount to be used in the prime payment request.
|
void |
setOrderAccessBean(OrderAccessBean abOrder)
This method sets a reference to the order access bean.
|
void |
setTotalAmount(java.math.BigDecimal totalAmount)
This method sets the total amount of the order.
|
void |
validateInsideProcessFG()
This method validates if the initial amount less than zero, or if it is
more than the total amount of the EDP order.
|
getErrorMessageMap, getStoreId, insertActionListToActionDetailHash, insertActionListToEditActionDetailHash, isBgJobInWorking, setBgJobStatusInDb, setErrorMessageMap, setStoreId, toString
getCurrency, getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, 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, wait, wait, wait
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
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, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public void setOrderAccessBean(OrderAccessBean abOrder)
abOrder
- the reference to the order access beanpublic OrderAccessBean getOrderAccessBean()
OrderAccessBean
that corresponds to the Order to paid for.public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
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 in case of any failure.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 AEDPPaymentTaskCmdImpl
public void processFG() throws EDPException, ECException
EDPException
- This exception is thrown in case of any failure.ECException
- This exception is thrown in case of any failure.public void validateInsideProcessFG() throws EDPException
validateInsideProcessFG
in class AEDPPaymentTaskCmdImpl
EDPException
- This exception is thrown in case of any failures.public void setInitialAmount(java.math.BigDecimal initialAmount)
setInitialAmount
in interface TriggerPaymentActionsCmd
initialAmount
- A BigDecimal that specifies the initial amount to be used in
the prime payment request.public boolean isProcessBGExecutableInFG()
isProcessBGExecutableInFG
in class AEDPPaymentTaskCmdImpl
public void setTotalAmount(java.math.BigDecimal totalAmount)
setTotalAmount
in interface TriggerPaymentActionsCmd
totalAmount
- A BigDecimal that specifies the total amount of the order.