com.ibm.commerce.rfq.commands
Class RespondProductPQCmdImpl

java.lang.Object
  CacheableCommandImpl
      com.ibm.commerce.command.AbstractECTargetableCommand
          com.ibm.commerce.command.TaskCommandImpl
              com.ibm.commerce.rfq.commands.RespondProductPQCmdImpl
All Implemented Interfaces:
ECCommand, ECTargetableCommand, RespondProductPQCmd, TaskCommand

public class RespondProductPQCmdImpl
extends TaskCommandImpl
implements RespondProductPQCmd

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

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.RespondProductPQCmd
defaultCommandClassName, NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
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
java.lang.Long getRFQResponseProductId()
Gets the RFQ response product ID.
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.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
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
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 AbstractECTargetableCommand
Throws:
ECApplicationException
java.lang.Exception
ECException

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 AbstractECTargetableCommand
Throws:
ECApplicationException

getRFQResponseProductId

public java.lang.Long getRFQResponseProductId()
Gets the RFQ response product ID.
Specified by:
getRFQResponseProductId in interface RespondProductPQCmd
Returns:
The RFQ response product ID.

Feedback