public class SendAnnouncementCmdImpl extends TaskCommandImpl implements SendAnnouncementCmd
SendAnnouncementCmd
interface.
Sends the announcement as an email to the people whose email addresses are
mentioned in the recipients list of the announcement. The command internally
invokes the com.ibm.commerce.messaging.commands.SendMsgCmd
command which interfaces with the outbound messaging system.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
COPYRIGHT
The copyright field.
|
defaultCommandClassName, NAME
Constructor and Description |
---|
SendAnnouncementCmdImpl() |
Modifier and Type | Method and Description |
---|---|
void |
performExecute()
Performs the logic to send the announcement as email.
|
void |
setCatalogId(java.lang.String aCatalogId)
Sets the catalog identifier
|
void |
setEventTypeId(java.lang.Integer evtTypeId)
Sets the event type identifier of the event
|
void |
setGiftList(GiftListType aGiftList)
Sets the GiftListType object
|
void |
setSubject(java.lang.String aSubject)
Sets the subject to be used in the email
|
void |
setTemplate(java.lang.String aTemplate)
Sets the template to be used in the email announcement
|
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
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, validateParameters
public static final java.lang.String COPYRIGHT
public void setGiftList(GiftListType aGiftList)
setGiftList
in interface SendAnnouncementCmd
aGiftList
- The object to setpublic void performExecute() throws ECException
com.ibm.commerce.messaging.commands.SendMsgCmd
command,
passing the required parameters to send the emailperformExecute
in interface ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECException
public void setSubject(java.lang.String aSubject)
setSubject
in interface SendAnnouncementCmd
aSubject
- The subject text to be used in the emailpublic void setTemplate(java.lang.String aTemplate)
setTemplate
in interface SendAnnouncementCmd
aTemplate
- The template to be used in the email announcementpublic void setEventTypeId(java.lang.Integer evtTypeId)
setEventTypeId
in interface SendAnnouncementCmd
evtTypeId
- The event type identifierpublic void setCatalogId(java.lang.String aCatalogId)
setCatalogId
in interface SendAnnouncementCmd
aCatalogId
- The catalog identifier