java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.order.commands.OrderNotifyCmdImpl
Sends order notification message.
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT IBM copyright notice field. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.order.commands. OrderNotifyCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
OrderNotifyCmdImpl() Constructor. |
Method Summary | |
---|---|
protected
java.lang.String |
buildMsgText() Build message text. |
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 |
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). |
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,
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
Constructor Detail |
---|
public OrderNotifyCmdImpl()
Method Detail |
---|
protected java.lang.String buildMsgText() throws FinderException, CreateException, java.rmi.RemoteException, javax.naming.NamingException
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
public java.lang.Object[] getMessageSubjectParms()
public java.lang.Integer getNotificationTemplateId()
public OrderAccessBean getOrder()
public java.util.Vector getRecipients()
public boolean isNotificationEnabled()
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
ECException
public void setMessageSubjectParms(java.lang.Object[] newMessageSubjectParms)
setMessageSubjectParms
in interface
OrderNotifyCmd
newMessageSubjectParms
- message subject
parameters.public void setNotificationEnabled(boolean newNotificationEnabled)
setNotificationEnabled
in interface
OrderNotifyCmd
newNotificationEnabled
- notification enabled
parameter.public void setNotificationTemplateId(java.lang.Integer newNotificationTemplateId)
setNotificationTemplateId
in interface
OrderNotifyCmd
newNotificationTemplateId
- notification template
id.public void setOrder(OrderAccessBean newOrder)
setOrder
in interface
OrderNotifyCmd
newOrder
- order.public void setRecipients(java.util.Vector newRecipients)
setRecipients
in interface
OrderNotifyCmd
newRecipients
- recipients.