java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.approval.commands.ApproversNotifyCmdImpl
The task command implementation to notify approvers of the request for approval. Before executing this task command, the following sets should be performed:
Behaviour
This command calls the following TaskCommands:
This command uses the following AccessBeans:
Field Summary | |
static java.lang.String | COPYRIGHT IBM copyright notice field. |
static java.lang.String | ERRTASK_NAME Error task name. |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.approval.commands.ApproversNotifyCmd |
defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
ApproversNotifyCmdImpl() |
Method Summary | |
java.lang.Long | getEntityId() Gets the entity ID. |
java.lang.Long | getFlowId() Gets the flow ID. |
java.lang.Long | getFlowTypeId() Gets the flow type ID. |
void | performExecute() Determines recipients and calls SendMsgCmd to create notification messages. |
void | setEntityId(java.lang.Long lngEntityId) Sets the entity ID. |
void | setFlowId(java.lang.Long lngFlowId) Sets the flow ID. |
void | setFlowTypeId(java.lang.Long lngFlowTypeId) Sets the flow type ID. |
void | validateParameters() Verifies that the entity ID and flow ID have been provided. |
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 |
Field Detail |
public static final java.lang.String COPYRIGHT
public static final java.lang.String ERRTASK_NAME
Constructor Detail |
public ApproversNotifyCmdImpl()
Method Detail |
public java.lang.Long getEntityId()
public java.lang.Long getFlowId()
public java.lang.Long getFlowTypeId()
public void performExecute() throws ECException
validateParameters() is called prior to this method to verify input.
Obtains Approver MemberIDs from Approval Status Records
For each Approver:
Determines preferred language (default is store language).
Generates Message Subject in preferred language (from ApprovalNotification Properties file)
Creates, Populates and Executes SendMsgCmd
public void setEntityId(java.lang.Long lngEntityId)
public void setFlowId(java.lang.Long lngFlowId)
public void setFlowTypeId(java.lang.Long lngFlowTypeId)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.