com.ibm.commerce.edp.commands
Class CheckOrderPaymentDepositedCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.edp.commands.AEDPTaskCmdImpl
-
- com.ibm.commerce.edp.commands.AEDPPaymentTaskCmdImpl
-
- com.ibm.commerce.edp.commands.CheckOrderPaymentDepositedCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, AEDPPaymentTaskCmd, AEDPTaskCmd, CheckOrderPaymentDepositedCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class CheckOrderPaymentDepositedCmdImpl extends AEDPPaymentTaskCmdImpl implements CheckOrderPaymentDepositedCmd
This is the default implementation of theCheckOrderPaymentDepositedCmd
task command.Behaviour:
- It will query the Payment Rule if the total order amount is deposited in payment system. If the EDP Order back ground job is pending, return false.
Input parameters:
commandContext
The command context. orderId
A Long that specifies the current order id. Output parameters:
None.Task commands called:
None- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
The IBM Copyright notice field.-
Fields inherited from interface com.ibm.commerce.edp.commands.CheckOrderPaymentDepositedCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description CheckOrderPaymentDepositedCmdImpl()
The default constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Boolean
isOrderTotalDeposited()
This method returns if the order is totally deposited in Payment Rule.boolean
isReadyToCallExecute()
This method checks if the command is ready to be executed.void
performExecute()
This method executes the business logic of this command implementation.void
reset()
This method resets the command fields.void
setOrderTotalDeposited(java.lang.Boolean deposited)
This method sets if the order is deposited in payment system.-
Methods inherited from class com.ibm.commerce.edp.commands.AEDPPaymentTaskCmdImpl
getErrorMessageMap, getStoreId, insertActionListToActionDetailHash, insertActionListToEditActionDetailHash, isBgJobInWorking, isProcessBGExecutableInFG, setBgJobStatusInDb, setErrorMessageMap, setStoreId, toString, validateInsideProcessFG
-
Methods inherited from class com.ibm.commerce.edp.commands.AEDPTaskCmdImpl
getCurrency, getEdpException, getEDPOrderId, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, getStatus, isIdempotent, isProcessBGTasksRequired, resetServices, setBGProcessFinished, setEdpException, setEDPOrderId, setEDPResults, setOrderChannel, setOrderId, setProcessBGTasksRequired, setStatus
-
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface com.ibm.commerce.edp.commands.AEDPTaskCmd
getCurrency, getEDPResults, getLanguageId, getLocale, getOrderChannel, getOrderId, setEDPResults, setOrderId
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
The IBM Copyright notice field.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CheckOrderPaymentDepositedCmdImpl
public CheckOrderPaymentDepositedCmdImpl()
The default constructor.
-
-
Method Detail
-
isOrderTotalDeposited
public java.lang.Boolean isOrderTotalDeposited()
This method returns if the order is totally deposited in Payment Rule.- Specified by:
isOrderTotalDeposited
in interfaceCheckOrderPaymentDepositedCmd
- Returns:
- A Boolean indicating if the order total is deposited.
-
setOrderTotalDeposited
public void setOrderTotalDeposited(java.lang.Boolean deposited)
This method sets if the order is deposited in payment system.- Parameters:
deposited
- A Boolean that indicating if the order total is deposited.
-
isReadyToCallExecute
public boolean isReadyToCallExecute()
This method checks if the command is ready to be executed. This method is called by the WC Command Framework to check if all mandatory parameters have been properly set for this command. This is done before the Framework calls theperformExecute
method of the command.- Specified by:
isReadyToCallExecute
in interfacecom.ibm.websphere.command.Command
- Overrides:
isReadyToCallExecute
in classAbstractECTargetableCommand
- Returns:
- A boolean indicating if the command is ready to execute.
-
performExecute
public void performExecute() throws ECException
This method executes the business logic of this command implementation.- Specified by:
performExecute
in interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
- This exception is thrown when any kind of failure comes from event-driven payments subcomponent.
-
reset
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.- Specified by:
reset
in interfacecom.ibm.websphere.command.Command
- Overrides:
reset
in classAEDPPaymentTaskCmdImpl
-
-