com.ibm.commerce.order.commands
Class OrderNotifyCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.order.commands.OrderNotifyCmdImpl
- All Implemented Interfaces:
- ECCommand, OrderNotifyCmd, TaskCommand
- public class OrderNotifyCmdImpl
- extends TaskCommandImpl
- implements OrderNotifyCmd
Sends order notification message.
Field Summary |
static java.lang.String |
COPYRIGHT
|
Method Summary |
protected java.lang.String |
buildMsgText()
|
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. |
boolean |
isReadyToCallExecute()
isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command. |
void |
performExecute()
Contains the actual business logic of the command
It should be implemented by all the command writer. |
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.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
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, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
COPYRIGHT
public static final java.lang.String COPYRIGHT
OrderNotifyCmdImpl
public OrderNotifyCmdImpl()
buildMsgText
protected java.lang.String buildMsgText()
throws javax.ejb.FinderException,
javax.ejb.CreateException,
java.rmi.RemoteException,
javax.naming.NamingException
getMessageSubjectParms
public java.lang.Object[] getMessageSubjectParms()
- Get parameters for notification message subject
getNotificationTemplateId
public java.lang.Integer getNotificationTemplateId()
- Get notification template id.
getOrder
public OrderAccessBean getOrder()
- Get the order id for which the notification is requested.
getRecipients
public java.util.Vector getRecipients()
- Get the recipients email addresses (vector of Strings).
isNotificationEnabled
public boolean isNotificationEnabled()
- Check if notification is enabled.
isReadyToCallExecute
public boolean isReadyToCallExecute()
- Description copied from class:
AbstractECCommand
- isReadyToCallExecute method is called by the Targetable Command frame work
This is where client side parameter checking is performed before the execution of the command.
The default implementation is to return true.
- Overrides:
isReadyToCallExecute
in class AbstractECCommand
- Following copied from class:
com.ibm.commerce.command.AbstractECCommand
- Returns:
- boolean - true if we can execute the command
false if we canot execute the command
performExecute
public void performExecute()
throws ECException
- Description copied from interface:
ECCommand
- Contains the actual business logic of the command
It should be implemented by all the command writer.
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Following copied from interface:
com.ibm.commerce.command.ECCommand
- Throws:
com.ibm.commerce.command.CommandException
- The superclass for all ECExceptions.
setMessageSubjectParms
public void setMessageSubjectParms(java.lang.Object[] newMessageSubjectParms)
- Set parameters for notification message subject
- Specified by:
setMessageSubjectParms
in interface OrderNotifyCmd
setNotificationEnabled
public void setNotificationEnabled(boolean newNotificationEnabled)
- Enable or disable order notification.
- Specified by:
setNotificationEnabled
in interface OrderNotifyCmd
setNotificationTemplateId
public void setNotificationTemplateId(java.lang.Integer newNotificationTemplateId)
- Set notification template id.
- Specified by:
setNotificationTemplateId
in interface OrderNotifyCmd
setOrder
public void setOrder(OrderAccessBean newOrder)
- Set the order id for which the notification is requested.
- Specified by:
setOrder
in interface OrderNotifyCmd
setRecipients
public void setRecipients(java.util.Vector newRecipients)
- Set the recipients email addresses (vector of Strings).
- Specified by:
setRecipients
in interface OrderNotifyCmd