java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.approval.commands.ApprovalSetUpCmdImpl
Set up for an action needing approval
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.
This command calls the following TaskCommands:
Field Summary | |
---|---|
protected
java.lang.String |
approverGroupName Approval group name. |
protected
BusinessFlowEventData |
businessFlowEventData Flow event data. |
protected
java.lang.Long |
businessFlowStateId Flow state id. |
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
protected
java.lang.String |
eventIdentifier Event identifier. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.approval.commands. ApprovalSetUpCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
ApprovalSetUpCmdImpl() Default constructor. |
Method Summary | |
---|---|
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. |
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,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
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
protected java.lang.String eventIdentifier
protected java.lang.String approverGroupName
protected BusinessFlowEventData businessFlowEventData
protected java.lang.Long businessFlowStateId
Constructor Detail |
---|
public ApprovalSetUpCmdImpl()
Method Detail |
---|
public java.lang.String getEventIdentifier()
getEventIdentifier
in interface
ApprovalSetUpCmd
public boolean isApprovalNeeded()
isApprovalNeeded
in interface
ApprovalSetUpCmd
public boolean isReadyToCallExecute()
isReadyToCallExecute
in class
AbstractECTargetableCommand
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException.
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