public class OrderPaymentSynchronizeCmdImpl extends ControllerCommandImpl implements OrderPaymentSynchronizeCmd
OrderPaymentSynchronizeCmd
Controller Command synchronizes
the WebSphere Commerce Order status with Payment Rule Engine.
It's used to ensure the total amount for the order is authorized.
The command queries out orders in "I" or "M" status for which all order items
with inventory status "ALLC
". Once amount for the whole Order has been authorized,
this command changes the Order status to 'C' (Complete) and raises Order Authorize
Complete event.
This command uses the following AccessBeans:
OrderAccessBean
com.ibm.commerce.order.helpers.OrderJDBCHelperAccessBean
StoreAccessBean
UserAccessBean
This command calls the following TaskCommands:
defaultCommandClassName, NAME
Constructor and Description |
---|
OrderPaymentSynchronizeCmdImpl()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
AccessVector |
getResources()
This method returns command resources for access control by instantiating an access vector
using the StoreAccessBean.
|
boolean |
isGeneric()
This method checks if this is a generic command.
|
boolean |
isReadyToCallExecute()
This method checks if the command can be executed:
|
void |
performExecute()
This method executes the business logic of the command.
|
void |
setRequestProperties(TypedProperty reqParms)
This method sets the request properties.
|
checkPermission, fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResourceOwners, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, reset, 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
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
fulfills, getOwner
public OrderPaymentSynchronizeCmdImpl()
public boolean isGeneric()
isGeneric
in interface ControllerCommand
isGeneric
in class ControllerCommandImpl
public boolean isReadyToCallExecute()
isReadyToCallExecute
in interface com.ibm.websphere.command.Command
isReadyToCallExecute
in class AbstractECTargetableCommand
public void setRequestProperties(TypedProperty reqParms) throws ECApplicationException
setRequestProperties
in interface ControllerCommand
setRequestProperties
in class ControllerCommandImpl
reqParms
- the request propertyECApplicationException
public AccessVector getResources() throws ECException
This command uses the following access bean:
com.ibm.commerce.common.objects.StoreAccessBean to get an appropriate instance of StoreAccessBean
getResources
in interface ECCommand
getResources
in class AbstractECTargetableCommand
Exceptions
ECException
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
- in case of a failure