com.ibm.commerce.order.commands
Class OrderNotifyCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.order.commands.OrderNotifyCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, OrderNotifyCmd, TaskCommand

public class OrderNotifyCmdImpl
extends TaskCommandImpl
implements OrderNotifyCmd

Sends order notification message.

See Also:
Serialized Form

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
IBM copyright notice field.
See Also:
Constant Field Values
Constructor Detail

OrderNotifyCmdImpl

public OrderNotifyCmdImpl()
Constructor.
Method Detail

buildMsgText

protected java.lang.String buildMsgText()
                                 throws FinderException,
                                        CreateException,
                                        java.rmi.RemoteException,
                                        javax.naming.NamingException
Build message text.
Returns:
message text.
Throws:
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException

getMessageSubjectParms

public java.lang.Object[] getMessageSubjectParms()
Get parameters for notification message subject
Returns:
message subject parameters.

getNotificationTemplateId

public java.lang.Integer getNotificationTemplateId()
Get notification template id.
Returns:
notification template id.

getOrder

public OrderAccessBean getOrder()
Get the order id for which the notification is requested.
Returns:
order.

getRecipients

public java.util.Vector getRecipients()
Get the recipients email addresses (vector of Strings).
Returns:
recipients.

isNotificationEnabled

public boolean isNotificationEnabled()
Check if notification is enabled.
Returns:
true if notification enabled, false otherwise.

performExecute

public void performExecute()
                    throws ECException
Main business logic.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
ECException

setMessageSubjectParms

public void setMessageSubjectParms(java.lang.Object[] newMessageSubjectParms)
Set parameters for notification message subject
Specified by:
setMessageSubjectParms in interface OrderNotifyCmd
Parameters:
newMessageSubjectParms - message subject parameters.

setNotificationEnabled

public void setNotificationEnabled(boolean newNotificationEnabled)
Enable or disable order notification.
Specified by:
setNotificationEnabled in interface OrderNotifyCmd
Parameters:
newNotificationEnabled - notification enabled parameter.

setNotificationTemplateId

public void setNotificationTemplateId(java.lang.Integer newNotificationTemplateId)
Set notification template id.
Specified by:
setNotificationTemplateId in interface OrderNotifyCmd
Parameters:
newNotificationTemplateId - notification template id.

setOrder

public void setOrder(OrderAccessBean newOrder)
Set the order id for which the notification is requested.
Specified by:
setOrder in interface OrderNotifyCmd
Parameters:
newOrder - order.

setRecipients

public void setRecipients(java.util.Vector newRecipients)
Set the recipients email addresses (vector of Strings).
Specified by:
setRecipients in interface OrderNotifyCmd
Parameters:
newRecipients - recipients.