java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.ControllerCommandImpl | +--com.ibm.commerce.payment.commands.BalancePaymentCmdImpl
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.
This command uses the following AccessBeans:
OrderAccessBean
OrderJDBCHelperAccessBean
StoreAccessBean
This command calls the following TaskCommands:
Field Summary |
---|
Fields inherited from class com.ibm.commerce.command. ControllerCommandImpl |
requestProperties,
responseProperties,
retriable,
viewReqProperties |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.payment.commands. BalancePaymentCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Constructor Summary | |
---|---|
BalancePaymentCmdImpl() |
Method Summary | |
---|---|
AccessVector |
getResources() Returns the resources accessed by this command. |
java.lang.Integer |
getStoreId() Gets the Store ID set as input parameter for the Command. |
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 for the command. |
void |
validateParameters() Checks that parameter storeId is specified. |
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,
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,
getUser,
getUserId,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
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,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from interface com.ibm.commerce.command. ControllerCommand |
checkPermission,
execute,
getGeneric,
getRequestProperties,
getResolvedRequestProperties,
getResponseProperties,
getRetriable,
getViewInputProperties,
isGeneric,
isRetriable,
mergeProperties,
setGeneric,
setRetriable,
setViewInputProperties |
Methods inherited from interface com.ibm.commerce.command. AccCommand |
accessControlCheck,
getAccCheck,
getForUserId,
getResourceOwners,
setAccCheck,
setForUserId,
setOwner |
Constructor Detail |
---|
public BalancePaymentCmdImpl()
Method Detail |
---|
public AccessVector getResources() throws ECException
For this command, the resource accessed is the Store.
getResources
in interface
ECCommand
getResources
in class
AbstractECTargetableCommand
ECException
public java.lang.Integer getStoreId()
getStoreId
in interface
ECCommand
getStoreId
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setRequestProperties(TypedProperty reqProperties) throws ECException
This method extracts the storeId parameters from the request properties.
setRequestProperties
in interface
ControllerCommand
setRequestProperties
in class
ControllerCommandImpl
reqProperties
- the TypedProperty object containing the
request properties of the commandECException.
ECException
protected void setStoreId(java.lang.Integer storeId)
storeId
- the Store ID.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECApplicationException
- If the storeId parameter is not
specified.ECException
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand