com.ibm.commerce.rfq.commands
Class NotifyRFQResponseCmdImpl

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

public class NotifyRFQResponseCmdImpl
extends TaskCommandImpl
implements NotifyRFQResponseCmd

Implementatation for sending message to buyer when submitting/cancelling/retracting response


Field Summary
static java.lang.String COPYRIGHT
           
static java.lang.String EC_RESPONSE_NOTIFICATION_CMD
           
protected  RFQResponseAccessBean responseAccessBean
           
protected  java.lang.Integer sourceState
           
protected  java.lang.String subject
           
static java.lang.String SUBJECT_SECTION
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.rfq.commands.NotifyRFQResponseCmd
defaultCommandClassName, NAME
 
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.
 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(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.AbstractECCommand
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, 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.command.ECCommand
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT

EC_RESPONSE_NOTIFICATION_CMD

public static java.lang.String EC_RESPONSE_NOTIFICATION_CMD

responseAccessBean

protected RFQResponseAccessBean responseAccessBean

sourceState

protected java.lang.Integer sourceState

subject

protected java.lang.String subject

SUBJECT_SECTION

public static final java.lang.String SUBJECT_SECTION
Constructor Detail

NotifyRFQResponseCmdImpl

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

buildRecipients

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

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 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,
                                   javax.ejb.CreateException,
                                   javax.naming.NamingException,
                                   javax.ejb.FinderException
Builds subject from RFQMessageHelper.
Returns:
java.lang.String

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 AbstractECCommand
Throws:
com.ibm.commerce.exception.ECException. -  

setRecipients

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

setResponseAccessBean

public void setResponseAccessBean(RFQResponseAccessBean newResponseAccessBean)
Sets the responseAccessBean.
Specified by:
setResponseAccessBean in interface NotifyRFQResponseCmd
Parameters:
i - com.ibm.commerce.rfq.objects.RFQResponseAccessBean

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 AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -