java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.approval.commands.ApprovalNotifyCmdImpl
Calls the EntryActionCmd command which notifies approvers of the request for approval.
Before executing this task command, the following must be ensured:
Behaviour
This command calls the following TaskCommands:
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
static java.lang.String |
ERRTASK_NAME The error task name. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.approval.commands. ApprovalNotifyCmd |
defaultCommandClassName,
NAME |
Constructor Summary | |
---|---|
ApprovalNotifyCmdImpl() |
Method Summary | |
---|---|
com.ibm.commerce.ubf.event.BusinessFlowEventData |
getBusinessFlowEventData() Returns the business flow event data. |
java.lang.Long |
getEntityId() Returns the entity ID. |
java.lang.Object |
getEntityObject() Returns the entity object. |
java.lang.String |
getEventIdentifier() Returns the event identifier. |
void |
performExecute() Calls the task command which will create the notification message. |
void |
setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData newBusinessFlowEventData) Sets the business flow event data. |
void |
setEntityId(java.lang.Long newEntityId) Sets the entity ID. |
void |
setEntityObject(java.lang.Object newEntityObject) Sets the entity object. |
void |
setEventIdentifier(java.lang.String newEventIdentifier) Sets the event identifier. |
void |
validateParameters() Verifies that EntityID and FlowID have been provided in the BusinessFlowEventData object. |
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,
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,
getResources,
getStoreId,
getUser,
getUserId,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
---|
public ApprovalNotifyCmdImpl()
Method Detail |
---|
public com.ibm.commerce.ubf.event.BusinessFlowEventData getBusinessFlowEventData()
public java.lang.Long getEntityId()
public java.lang.Object getEntityObject()
public java.lang.String getEventIdentifier()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
- If an error occurs while calling ApproversNotifyCmd.public void setBusinessFlowEventData(com.ibm.commerce.ubf.event.BusinessFlowEventData newBusinessFlowEventData)
newBusinessFlowEventData
- BusinessFlowEventDataEntryActionCmd
public void setEntityId(java.lang.Long newEntityId)
newEntityId
- entity ID.EntryActionCmd
public void setEntityObject(java.lang.Object newEntityObject)
newEntityObject
- entity objectEntryActionCmd
public void setEventIdentifier(java.lang.String newEventIdentifier)
newEventIdentifier
- event identifierpublic void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException
- If an error is found while verifying parameters.