public class OrderNotifyCmdImpl extends TaskCommandImpl implements OrderNotifyCmd
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field.
|
Constructor and Description |
---|
OrderNotifyCmdImpl()
Constructor.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String | buildMessageSubject(java.lang.String astrSubjectMessageKey)
Build the message subject with the passed parameters
|
protected java.lang.String | buildMessageSubject(java.lang.String astrSubjectMessageKey, java.util.Locale inLocale, java.lang.Integer langId)
Get the message subject using the default resource bundle that WCS Server is using.
|
protected java.lang.String | buildMsgText()
Build message text.
|
protected java.lang.Object[] | buildNotificationMessageSubjectParameters(java.lang.Integer inLangId)
Build the parameters to format the message subject
|
protected java.lang.Integer | getMessageLanguageId()
Get message language id.
|
java.lang.Object[] | getMessageSubjectParms()
Get parameters for notification message subject
|
java.lang.Integer | getNotificationTemplateId()
Get notification template id.
|
OrderAccessBean | getOrder()
Get the order id for which the notification is requested.
|
java.util.Vector | getRecipients()
Get the recipients email addresses (vector of Strings).
|
boolean | isNotificationEnabled()
Check if notification is enabled.
|
void | performExecute()
Main business logic.
|
void | setMessageSubjectParms(java.lang.Object[] newMessageSubjectParms)
Set parameters for notification message subject
|
protected void | setMoreConfigData(Messaging ms)
This method is for extension purpose.
|
void | setNotificationEnabled(boolean newNotificationEnabled)
Enable or disable order notification.
|
void | setNotificationTemplateId(java.lang.Integer newNotificationTemplateId)
Set notification template id.
|
void | setOrder(OrderAccessBean newOrder)
Set the order id for which the notification is requested.
|
void | setRecipients(java.util.Vector newRecipients)
Set the recipients email addresses (vector of Strings).
|
public static final java.lang.String COPYRIGHT
protected java.lang.Object[] buildNotificationMessageSubjectParameters(java.lang.Integer inLangId) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException, ECSystemException
protected java.lang.String buildMessageSubject(java.lang.String astrSubjectMessageKey)
protected java.lang.String buildMessageSubject(java.lang.String astrSubjectMessageKey, java.util.Locale inLocale, java.lang.Integer langId)
protected java.lang.String buildMsgText() throws javax.ejb.FinderException, javax.ejb.CreateException, java.rmi.RemoteException, javax.naming.NamingException
public java.lang.Object[] getMessageSubjectParms()
public java.lang.Integer getNotificationTemplateId()
public OrderAccessBean getOrder()
public java.util.Vector getRecipients()
public boolean isNotificationEnabled()
protected void setMoreConfigData(Messaging ms) throws ECSystemException
ms.setConfigData("CC", email);
public void performExecute() throws ECException
public void setMessageSubjectParms(java.lang.Object[] newMessageSubjectParms)
public void setNotificationEnabled(boolean newNotificationEnabled)
public void setNotificationTemplateId(java.lang.Integer newNotificationTemplateId)
public void setOrder(OrderAccessBean newOrder)
public void setRecipients(java.util.Vector newRecipients)
protected java.lang.Integer getMessageLanguageId()