com.ibm.commerce.payment.commands
Class BalancePaymentCmdImpl
com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.ControllerCommandImpl
|
+--com.ibm.commerce.payment.commands.BalancePaymentCmdImpl
- All Implemented Interfaces:
- AccCommand, BalancePaymentCmd, ControllerCommand, ECCommand, ECTargetableCommand, Protectable
- public class BalancePaymentCmdImpl
- extends ControllerCommandImpl
- implements BalancePaymentCmd
This BalancePaymentPMCmdImpl
Controller Command implementation looks for Orders
that have been shipped or fulfilled (Order Status 'S') and calls the DoDeposit Task command
to have the payment deposited to the merchants financial account.
This command is normally run as a store level scheduled command and takes a store ID as input
parameter for the command.
Method Summary |
AccessVector |
getResources()
Returns the resources accessed by this command. |
java.lang.Integer |
getStoreId()
Returns the store ID |
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 |
setRequestProperties(TypedProperty reqProperties)
The WebController calls the setRequestProperties method before invoking the execute method in this command. |
protected void |
setStoreId(java.lang.Integer storeId)
Saves the store ID |
void |
validateParameters()
Checks that parameter storeId is specified. |
Methods inherited from class com.ibm.commerce.command.ControllerCommandImpl |
fulfills, getForUserId, getGeneric, getOwner, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setForUserId, setGeneric, setOwner, setResponseProperties, setRetriable, setViewInputProperties |
Methods inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command.ControllerCommand |
execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRetriable, setViewInputProperties |
BalancePaymentCmdImpl
public BalancePaymentCmdImpl()
getResources
public AccessVector getResources()
throws ECException
- Returns the resources accessed by this command.
For this command, the resource accessed is the Store.
- Specified by:
getResources
in interface ECCommand
- Overrides:
getResources
in class AbstractECTargetableCommand
- Returns:
- AccessVector - a vector of resource action pairs
getStoreId
public java.lang.Integer getStoreId()
- Returns the store ID
- Specified by:
getStoreId
in interface ECCommand
- Overrides:
getStoreId
in class AbstractECTargetableCommand
- Returns:
- java.lang.Integer
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:
- 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.
setRequestProperties
public void setRequestProperties(TypedProperty reqProperties)
throws ECException
- The WebController calls the setRequestProperties method before invoking the execute method in this command.
It is the responsibility of the implementer of the ControllerCommand to extract the
required input parameters from the request properties and perform parameter checking.
- Specified by:
setRequestProperties
in interface ControllerCommand
- Overrides:
setRequestProperties
in class ControllerCommandImpl
- Parameters:
requestProperties
- com.ibm.commerce.datatype.TypedProperty- Throws:
com.ibm.commerce.exception.ECApplicationException.
-
setStoreId
protected void setStoreId(java.lang.Integer storeId)
- Saves the store ID
- Parameters:
storeId
- java.lang.Integer
validateParameters
public void validateParameters()
throws ECException
- Checks that parameter storeId is specified.
- Specified by:
validateParameters
in interface ECCommand
- Overrides:
validateParameters
in class AbstractECTargetableCommand
- Throws:
ECException.
-