com.ibm.commerce.order.commands
Class OrderNotifyCmdImpl
- java.lang.Object
-
- com.ibm.websphere.command.TargetableCommandImpl
-
- com.ibm.websphere.command.CacheableCommandImpl
-
- com.ibm.commerce.command.MeasuredCacheableCommandImpl
-
- com.ibm.commerce.command.AbstractECTargetableCommand
-
- com.ibm.commerce.command.TaskCommandImpl
-
- com.ibm.commerce.order.commands.OrderNotifyCmdImpl
-
- All Implemented Interfaces:
- com.ibm.commerce.command.CacheableECCommand, ECCommand, ECTargetableCommand, TaskCommand, OrderNotifyCmd, com.ibm.websphere.cache.Sizeable, com.ibm.websphere.command.CacheableCommand, com.ibm.websphere.command.Command, com.ibm.websphere.command.CommandCaller, com.ibm.websphere.command.TargetableCommand, java.io.Serializable
public class OrderNotifyCmdImpl extends TaskCommandImpl implements OrderNotifyCmd
Sends order notification message.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field and Description static java.lang.String
COPYRIGHT
IBM copyright notice field.-
Fields inherited from interface com.ibm.commerce.order.commands.OrderNotifyCmd
defaultCommandClassName, NAME
-
-
Constructor Summary
Constructors Constructor and Description OrderNotifyCmdImpl()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description java.lang.Object[]
getMessageSubjectParms()
Get parameters for notification message subjectjava.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 subjectvoid
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, 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
-
Methods inherited from class com.ibm.websphere.command.CacheableCommandImpl
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
-
Methods inherited from class com.ibm.websphere.command.TargetableCommandImpl
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.ibm.websphere.command.CacheableCommand
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
-
Methods inherited from interface com.ibm.websphere.command.TargetableCommand
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
-
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties, validateParameters
-
-
-
-
Field Detail
-
COPYRIGHT
public static final java.lang.String COPYRIGHT
IBM copyright notice field.- See Also:
- Constant Field Values
-
-
Method Detail
-
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 interfaceECCommand
- Specified by:
performExecute
in interfacecom.ibm.websphere.command.TargetableCommand
- Overrides:
performExecute
in classAbstractECTargetableCommand
- Throws:
ECException
-
setMessageSubjectParms
public void setMessageSubjectParms(java.lang.Object[] newMessageSubjectParms)
Set parameters for notification message subject- Specified by:
setMessageSubjectParms
in interfaceOrderNotifyCmd
- Parameters:
newMessageSubjectParms
- message subject parameters.
-
setNotificationEnabled
public void setNotificationEnabled(boolean newNotificationEnabled)
Enable or disable order notification.- Specified by:
setNotificationEnabled
in interfaceOrderNotifyCmd
- Parameters:
newNotificationEnabled
- notification enabled parameter.
-
setNotificationTemplateId
public void setNotificationTemplateId(java.lang.Integer newNotificationTemplateId)
Set notification template id.- Specified by:
setNotificationTemplateId
in interfaceOrderNotifyCmd
- 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 interfaceOrderNotifyCmd
- Parameters:
newOrder
- order.
-
setRecipients
public void setRecipients(java.util.Vector newRecipients)
Set the recipients email addresses (vector of Strings).- Specified by:
setRecipients
in interfaceOrderNotifyCmd
- Parameters:
newRecipients
- recipients.
-
-