com.ibm.commerce.payment.commands
Class PaySynchronizePMCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.payment.commands.PaySynchronizePMCmdImpl
- All Implemented Interfaces:
- AccCommand, ControllerCommand, ECCommand, ECTargetableCommand, PaySynchronizePMCmd, Protectable
- public class PaySynchronizePMCmdImpl
- extends ControllerCommandImpl
- implements PaySynchronizePMCmd
This PaySynchronizePMCmd
Controller Command implementation
synchronizes the WebSphere Commerce Order status with Payment Manager 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 Payment Manager 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 takes no parameter.
Field Summary |
static int |
nMaxNumberOfOrderId
This controls the number of order IDs to be sent to Payment Manager. |
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 |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setRequestProperties, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
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 Payment Manager.
Default value is 1000.
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
- Following copied from class:
com.ibm.commerce.command.AbstractECTargetableCommand
- Returns:
- boolean - true if we can execute the command
false if we canot execute the command
performExecute
public void performExecute()
throws ECException
- Performs the main business logic of the command.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECTargetableCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
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