com.ibm.commerce.rfq.commands
Class RespondProductPQCmdImpl

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

public class RespondProductPQCmdImpl
extends TaskCommandImpl
implements RespondProductPQCmd

Implementation class for responding to the price and quantity of a product


Field Summary
protected  java.lang.Long responseId
           
protected  com.ibm.commerce.rfq.commands.RFQResProduct resProduct
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.rfq.commands.RespondProductPQCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
RespondProductPQCmdImpl()
          Constructs an instance of CreateRFQCmdImpl.
 
Method Summary
 java.lang.Long getCatentryId()
          Gets catentryId
 java.math.BigDecimal getPrice()
          Gets price
 java.lang.Double getQuantity()
          Gets quantity
 java.lang.Long getResponseId()
          Gets responseId
 com.ibm.commerce.rfq.utils.RFQResProduct getResProduct()
          Gets resProduct
 void performExecute()
          Respond to the product price and quantity
 void setResponseId(java.lang.Long newResponseId)
          Sets the field of responseId
 void setResProduct(com.ibm.commerce.rfq.utils.RFQResProduct newResProduct)
          Sets the field of resProduct
 void validateParameters()
          Validate response paramters.
 
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

responseId

protected java.lang.Long responseId

resProduct

protected com.ibm.commerce.rfq.commands.RFQResProduct resProduct
Constructor Detail

RespondProductPQCmdImpl

public RespondProductPQCmdImpl()
Constructs an instance of CreateRFQCmdImpl.
Method Detail

getCatentryId

public java.lang.Long getCatentryId()
Gets catentryId
Returns:
java.lang.Long

getPrice

public java.math.BigDecimal getPrice()
Gets price
Returns:
java.math.BigDecimal

getQuantity

public java.lang.Double getQuantity()
Gets quantity
Returns:
java.lang.Double

getResponseId

public java.lang.Long getResponseId()
Gets responseId
Returns:
java.lang.Long

getResProduct

public com.ibm.commerce.rfq.utils.RFQResProduct getResProduct()
Gets resProduct
Returns:
com.ibm.commerce.rfq.utils.RFQResProduct

performExecute

public void performExecute()
                    throws ECApplicationException,
                           ECException
Respond to the product price and quantity
Specified by:
performExecute in interface ECCommand
Overrides:
performExecute in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
com.ibm.commerce.command.CommandException - The superclass for all ECExceptions.

setResponseId

public void setResponseId(java.lang.Long newResponseId)
Sets the field of responseId
Specified by:
setResponseId in interface RespondProductPQCmd
Parameters:
newResponseId - java.lang.Long

setResProduct

public void setResProduct(com.ibm.commerce.rfq.utils.RFQResProduct newResProduct)
Sets the field of resProduct
Specified by:
setResProduct in interface RespondProductPQCmd
Parameters:
newResProduct - com.ibm.commerce.rfq.utils.RFQResProduct

validateParameters

public void validateParameters()
                        throws ECApplicationException
Validate response paramters.
Specified by:
validateParameters in interface ECCommand
Overrides:
validateParameters in class AbstractECCommand
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -