java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.rfq.commands.NotifyRFQResponseCmdImpl
Implementatation for sending a message to the buyer when submitting, cancelling or retracting an RFQ response.
This command calls the following TaskCommands:
This command uses the following AccessBeans:RFQAccessBean
RFQResponseAccessBean
StoreAccessBean
UserAccessBean
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT Copyright. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.rfq.commands. NotifyRFQResponseCmd |
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
NotifyRFQResponseCmdImpl() Constructs a instance of NotifyRFQResponseCmdImpl. |
Method Summary | |
---|---|
void |
buildRecipients() Sets the recipients and preferredLanguage using the owner of Request. |
java.util.Vector |
getPreferredLanguages() Gets the preferredLanguages. |
java.util.Vector |
getRecipients() Gets the recipients. |
com.ibm.commerce.rfq.objects.RFQResponseAccessBean |
getResponseAccessBean() Gets the responseAccessBean. |
static java.lang.Integer |
getResponseNotificationType() Gets responseNotificationType. |
java.lang.Integer |
getSourceState() Gets the sourceState. |
java.lang.String |
getSubject(java.util.Locale locale) Builds subject from RFQMessageHelper. |
void |
performExecute() This method calls the Commerce Suite messaging system to load JSPs,generate a message and send it. |
void |
setRecipients(java.util.Vector newRecipients) Sets the recipients. |
void |
setResponseAccessBean(com.ibm.commerce.rfq.objects.RFQResponseAccessBean newResponseAccessBean) Sets the responseAccessBean. |
static void |
setResponseNotificationType(java.lang.Integer newResponseNotificationType) Sets responseNotificationType. |
void |
setSourceState(java.lang.Integer newSourceState) Sets the sourceState. |
void |
validateParameters() Validate parameters. |
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 |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
Methods inherited from interface com.ibm.commerce.rfq.commands. NotifyRFQResponseCmd |
setResponseAccessBean |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public NotifyRFQResponseCmdImpl()
Method Detail |
---|
public void buildRecipients() throws java.rmi.RemoteException, CreateException, javax.naming.NamingException, FinderException, ECApplicationException
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
ECApplicationException
public java.util.Vector getPreferredLanguages()
public java.util.Vector getRecipients()
public com.ibm.commerce.rfq.objects.RFQResponseAccessBean getResponseAccessBean()
public static java.lang.Integer getResponseNotificationType()
public java.lang.Integer getSourceState()
public java.lang.String getSubject(java.util.Locale locale) throws java.rmi.RemoteException, CreateException, javax.naming.NamingException, FinderException
locale
- the localeCreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
performExecute
in class
AbstractECTargetableCommand
com.ibm.commerce.exception.ECException.
ECException
public void setRecipients(java.util.Vector newRecipients)
newRecipients
- java.util.Vectorpublic void setResponseAccessBean(com.ibm.commerce.rfq.objects.RFQResponseAccessBean newResponseAccessBean)
public static void setResponseNotificationType(java.lang.Integer newResponseNotificationType)
newResponseNotificationType
-
java.lang.Integerpublic void setSourceState(java.lang.Integer newSourceState)
setSourceState
in interface
NotifyRFQResponseCmd
newSourceState
- java.lang.Integerpublic void validateParameters() throws ECException
validateParameters
in interface
ECCommand
validateParameters
in class
AbstractECTargetableCommand
ECException