com.ibm.commerce.payment.commands
Class PaySynchronizePMCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.payment.commands.PaySynchronizePMCmdImpl
- All Implemented Interfaces:
-
AccCommand,
ControllerCommand,
ECCommand,
ECTargetableCommand,
PaySynchronizePMCmd
- public class PaySynchronizePMCmdImpl
- extends
ControllerCommandImpl
- implements
PaySynchronizePMCmd
This PaySynchronizePMCmd
Controller Command implementation
synchronizes the WebSphere Commerce Order status with WebSphere Commerce
Payments order state.
This command is designed to be called by the scheduler periodically to
perform this task for all the Stores. Only Orders that have been submitted to
WebSphere Commerce Payments for processing and are still in state 'I'
(Inventory Update Pending) or state 'M' (Authorization Pending) are
looked at by this command. Once the Order has been authorized, this command
changes the Order status to 'C' (Complete) and will not track its
status any further.
This command uses the following AccessBeans:
This command takes no parameter and does not call other
TaskCommand.
- See Also:
- Serialized
Form
Field Summary |
static int |
nMaxNumberOfOrderId
This controls the number of order IDs to be sent to WebSphere
Commerce Payments. |
Method Summary |
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()
Performs the main business logic of the command. |
void |
reset()
Resets the instance variables of the command. |
Methods inherited from class
com.ibm.commerce.command.
ControllerCommandImpl |
checkPermission,
fulfills,
getForUserId,
getGeneric,
getOwner,
getRequestProperties,
getResolvedRequestProperties,
getResourceOwners,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setForUserId,
setGeneric,
setOwner,
setRequestProperties,
setResponseProperties,
setRetriable,
setViewInputProperties |
Methods inherited from class
com.ibm.commerce.command.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
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,
createCommandExecutionEvent,
execute,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from interface
com.ibm.commerce.command.
ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRequestProperties,
setRetriable,
setViewInputProperties |
nMaxNumberOfOrderId
public static int nMaxNumberOfOrderId
- This controls the number of order IDs to be sent to WebSphere Commerce
Payments. Default value is 400.
PaySynchronizePMCmdImpl
public PaySynchronizePMCmdImpl()
isReadyToCallExecute
public boolean isReadyToCallExecute()
- This method is called by the Command Framework to check if all basic
mandatory parameters have been set for this command. This is done before the
Framework calls the performExecute method of the command.
-
- Overrides:
-
isReadyToCallExecute
in class
AbstractECTargetableCommand
-
- Returns:
- true if we can execute the command; false otherwise.
public void performExecute()
throws ECException
- Performs the main business logic of the command.
-
- Specified by:
-
performExecute
in interface
ECCommand
- Overrides:
-
performExecute
in class
AbstractECTargetableCommand
-
- Throws:
-
ECException
reset
public void reset()
- Resets the instance variables of the command. The reset() method will reset
all instance variables. If the command includes any output values that are
accessible via getters, then make sure those values are no longer needed before
calling this method to reset the instance variables of the command.
This is useful if the command instance is to be called multiple times with
different command parameters.
-
- Overrides:
-
reset
in class
AbstractECTargetableCommand