public class ApprovalSetUpCmdImpl extends com.ibm.commerce.command.TaskCommandImpl implements ApprovalSetUpCmd
Before executing this task command, the following sets should be performed:
After executing this task command, the following should be called:
Behaviour
This command will set up for and call the ApprovalSetUpRecordsCmd.
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
ApprovalSetUpCmdImpl()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getEventIdentifier()
Get the event that needs to be processed when an automatic approval is required.
|
boolean |
isApprovalNeeded()
Specifies whether or not an approval is needed.
|
boolean |
isReadyToCallExecute()
Check if the command is ready to be executed.
|
void |
performExecute()
The main logic.
|
void |
setApproverGroupName(java.lang.String newApproverGroupName)
Sets the approver group name from which the approvers are to be derived.
|
void |
setBusinessFlowEventData(BusinessFlowEventData newBusinessFlowEventData)
Sets the data related to the business flow event.
|
void |
setBusinessFlowStateId(java.lang.Long newBusinessFlowStateId)
Sets the state of the business flow for this approvable action.
|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
public static final java.lang.String COPYRIGHT
public java.lang.String getEventIdentifier()
getEventIdentifier
in interface ApprovalSetUpCmd
public boolean isApprovalNeeded()
isApprovalNeeded
in interface ApprovalSetUpCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
public void performExecute() throws com.ibm.commerce.exception.ECException
performExecute
in interface com.ibm.commerce.command.ECCommand
performExecute
in class com.ibm.commerce.command.AbstractECTargetableCommand
ECException.
com.ibm.commerce.exception.ECException
public void setApproverGroupName(java.lang.String newApproverGroupName)
setApproverGroupName
in interface ApprovalSetUpCmd
newApproverGroupName
- The approval member group name from which the
approvers are chosenpublic void setBusinessFlowEventData(BusinessFlowEventData newBusinessFlowEventData)
setBusinessFlowEventData
in interface ApprovalSetUpCmd
newBusinessFlowEventData
- The data included as part of the eventpublic void setBusinessFlowStateId(java.lang.Long newBusinessFlowStateId)
setBusinessFlowStateId
in interface ApprovalSetUpCmd
newBusinessFlowStateId
- the state of the business flow for this approvable action