public class OrderProcessCheckApprovalCmdImpl extends TaskCommandImpl implements OrderProcessCheckApprovalCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
OrderProcessCheckApprovalCmdImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public static final java.lang.String COPYRIGHT
public boolean checkApproval() throws ECException
ECException
public java.lang.String getEventIdentifier()
getEventIdentifier
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
public void performExecute() throws ECException
performExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void reset()
reset
in interface com.ibm.websphere.command.Command
reset
in class AbstractECTargetableCommand
public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData anEventData)
setBusinessFlowEventData
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
anEventData
- The business flow event data which includes all information, including requestPropoerties,
commandContext and so forth.public void setEntityId(java.lang.Long anEntityId)
setEntityId
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
anEntityId
- The entity Id.public void setEntityObject(java.lang.Object anEntityObject)
setEntityObject
in interface com.ibm.commerce.ubf.commands.EntryActionCmd
anEntityObject
- The entity object.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECException