java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.order.commands.OrderProcessCheckApprovalCmdImpl
Check if the order requires approval.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. OrderProcessCheckApprovalCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
OrderProcessCheckApprovalCmdImpl() |
Method Summary | |
---|---|
boolean |
checkApproval() This method implemented the business logic of whether the order requires approval. |
java.lang.String |
getEventIdentifier() Allow the entry action to return an eventIdentifier to start an automatic transition. |
void |
performExecute() Calls checkApproval() to find out if the approval is required. |
void |
reset() Resets all instance variables. |
void |
setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData) The BusinessFlowEventListener will use this method to pass in all data the command needs. |
void |
setEntityId(java.lang.Long anEntityId) Allow UBF passes an entity Id to the entry action command. |
void |
setEntityObject(java.lang.Object anEntityObject) Allow UBF passes an entity object to the entry action command to avoid instantiating another instance of entity object. |
void |
validateParameters() Validates parameters. |
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,
isReadyToCallExecute,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public OrderProcessCheckApprovalCmdImpl()
Method Detail |
---|
public boolean checkApproval() throws ECException
ECException
public java.lang.String getEventIdentifier()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void reset()
reset
in class
AbstractECTargetableCommand
public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
anEventData
- The business flow event data which includes all
information, including requestPropoerties, commandContext
etc.public void setEntityId(java.lang.Long anEntityId)
anEntityId
- The entity Id.public void setEntityObject(java.lang.Object anEntityObject)
anEntityObject
- The entity object.public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException