com.ibm.commerce.rfq.commands
Class NotifyRFQResponseCmdImpl

java.lang.Object
  |
  +--CacheableCommandImpl
        |
        +--com.ibm.commerce.command.AbstractECTargetableCommand
              |
              +--com.ibm.commerce.command.TaskCommandImpl
                    |
                    +--com.ibm.commerce.rfq.commands.NotifyRFQResponseCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, NotifyRFQResponseCmd, TaskCommand

public class NotifyRFQResponseCmdImpl
extends TaskCommandImpl
implements NotifyRFQResponseCmd

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:
See Also:
Serialized Form

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
Copyright.
See Also:
Constant Field Values
Constructor Detail

NotifyRFQResponseCmdImpl

public NotifyRFQResponseCmdImpl()
Constructs a instance of NotifyRFQResponseCmdImpl.
Method Detail

buildRecipients

public void buildRecipients()
                     throws java.rmi.RemoteException,
                            CreateException,
                            javax.naming.NamingException,
                            FinderException,
ECApplicationException
Sets the recipients and preferredLanguage using the owner of Request.
Throws:
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException
ECApplicationException

getPreferredLanguages

public java.util.Vector getPreferredLanguages()
Gets the preferredLanguages.
Returns:
java.util.Vector

getRecipients

public java.util.Vector getRecipients()
Gets the recipients.
Returns:
java.util.Vector

getResponseAccessBean

public com.ibm.commerce.rfq.objects.RFQResponseAccessBean getResponseAccessBean()
Gets the responseAccessBean.
Returns:
com.ibm.commerce.rfq.objects.RFQResponseAccessBean

getResponseNotificationType

public static java.lang.Integer getResponseNotificationType()
Gets responseNotificationType.
Returns:
java.lang.Integer

getSourceState

public java.lang.Integer getSourceState()
Gets the sourceState.
Returns:
java.lang.Integer

getSubject

public java.lang.String getSubject(java.util.Locale locale)
                            throws java.rmi.RemoteException,
                                   CreateException,
                                   javax.naming.NamingException,
                                   FinderException
Builds subject from RFQMessageHelper.
Parameters:
locale - the locale
Returns:
java.lang.String
Throws:
CreateException
FinderException
javax.naming.NamingException
java.rmi.RemoteException

performExecute

public void performExecute()
                    throws ECException
This method calls the Commerce Suite messaging system to load JSPs,generate a message and send it.
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECTargetableCommand
Throws:
com.ibm.commerce.exception.ECException.
ECException

setRecipients

public void setRecipients(java.util.Vector newRecipients)
Sets the recipients.
Parameters:
newRecipients - java.util.Vector

setResponseAccessBean

public void setResponseAccessBean(com.ibm.commerce.rfq.objects.RFQResponseAccessBean newResponseAccessBean)
Sets the responseAccessBean.

setResponseNotificationType

public static void setResponseNotificationType(java.lang.Integer newResponseNotificationType)
Sets responseNotificationType.
Parameters:
newResponseNotificationType - java.lang.Integer

setSourceState

public void setSourceState(java.lang.Integer newSourceState)
Sets the sourceState.
Specified by:
setSourceState in interface NotifyRFQResponseCmd
Parameters:
newSourceState - java.lang.Integer

validateParameters

public void validateParameters()
                        throws ECException
Validate parameters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECTargetableCommand
Throws:
ECException