com.ibm.commerce.rfq.commands
Class RFQResponseCreateCmdImpl

java.lang.Object
  com.ibm.commerce.ubf.commands.ToolsBusinessFlowCmdImpl
      com.ibm.commerce.rfq.commands.RFQResponseBaseCmdImpl
          com.ibm.commerce.rfq.commands.RFQResponseCreateCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, RFQResponseBaseCmd, RFQResponseCreateCmd, ToolsControllerCommand

public class RFQResponseCreateCmdImpl
extends RFQResponseBaseCmdImpl
implements RFQResponseCreateCmd

Implementation class for creating 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 interface com.ibm.commerce.rfq.commands.RFQResponseCreateCmd
NAME
Fields inherited from interface com.ibm.commerce.command.ECCommand
defaultCommandClassName
Constructor Summary
RFQResponseCreateCmdImpl()
constructs an instance of RFQResponseCreateCmdImpl.
Method Summary
protected RFQResponseAccessBean createResponse()
Insert a response record in database.
protected void createResponseAttachment()
Add attachments in the response to RFQ
protected void createResponseFulfillmentTC()
Add a FulfillmentTC in the response to RFQ
protected void doAcknowlegement()
response creation acknowledgement
java.lang.Long getRspProdId()
Returns the response product ID set by respondPriceAndQuantity.
protected void initParameters()
Retrieves create response parameters.
void performExecute()
Create a response Step 1: Create an entry in the rfqrsp table using the TRADING_ID as the RFQRESPONSEID Step 2: Respond FulfillmentTC Step 3: Create Response attaments Step 4: Respond OrderCommentsTC Step 5: Respond price, quantity and OrderItemPAttributeTC of each product Step 6: Send back success/error message.
void respondPriceAndQuantity(java.lang.Long resId, RFQResProduct resProduct)
Respond to the price and quantity of a product
void respondProduct()
Respond to the price, quantity and OrderItemPAttributeTC of each product
void respondProductAttribute(java.lang.Long respondId, java.lang.Long rfqRspProdId, java.util.Vector productAttributeList)
Respond the OrderPAttributeTC of a product
protected void respondRFQLevelTC()
Respond to the OrderCommentsTC of an rfq
void setRspProdId(java.lang.Long rspProdId)
Sets the response product ID
void validateParameters()
Validate response parameters.
Methods inherited from class com.ibm.commerce.rfq.commands.RFQResponseBaseCmdImpl
getAttachmentsRFQLevelList, getCommentsRFQLevelList, getCreateTime, getErrorContent, getErrorFlag, getFfmcenterObj, getMajorVersion, getMinorVersion, getOwnerId, getRequestId, getResponseAcceptaction, getResponseId, getResponseName, getResponseRemarks, getResProductsList, getToolXMLObject, getUpdateTime, getViewTaskName, getWizardNavagationFile, setAttachmentsRFQLevelList, setAttachmentsRFQLevelList, setCommentsRFQLevelList, setCommentsRFQLevelList, setCreateTime, setErrorContent, setErrorFlag, setFfmcenterObj, setFfmcenterObj, setMajorVersion, setMinorVersion, setRequestId, setRequestProperties, setResponseAcceptaction, setResponseAcceptaction, setResponseId, setResponseId, setResponseName, setResponseRemarks, setResProductsList, setResProductsList, setToolXMLObject, setUpdateTime, setViewTaskName
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.ibm.commerce.rfq.commands.RFQResponseBaseCmd
getCommentsRFQLevelList, setFfmcenterObj, setRequestId, setResponseAcceptaction, setResponseName, setResponseRemarks, setResProductsList
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
checkPermission, execute, getGeneric, getRequestProperties, getResolvedRequestProperties, getResponseProperties, getRetriable, getViewInputProperties, isGeneric, isRetriable, mergeProperties, setGeneric, setRequestProperties, setRetriable, setViewInputProperties
Methods inherited from interface com.ibm.commerce.command.AccCommand
accessControlCheck, getAccCheck, getForUserId, getResourceOwners, setAccCheck, setForUserId, setOwner
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.
See Also:
Constant Field Values
Constructor Detail

RFQResponseCreateCmdImpl

public RFQResponseCreateCmdImpl()
constructs an instance of RFQResponseCreateCmdImpl.
Method Detail

createResponse

protected RFQResponseAccessBean createResponse()
                                        throws ECApplicationException,
                                               ECException
Insert a response record in database.
Returns:
com.ibm.commerce.rfq.objects.RFQResponseAccessBean
Throws:
ECApplicationException
ECException

createResponseAttachment

protected void createResponseAttachment()
                                 throws ECApplicationException,
                                        ECException
Add attachments in the response to RFQ
Throws:
ECApplicationException
ECException

createResponseFulfillmentTC

protected void createResponseFulfillmentTC()
                                    throws ECApplicationException,
                                           ECException
Add a FulfillmentTC in the response to RFQ
Throws:
ECApplicationException
ECException

doAcknowlegement

protected void doAcknowlegement()
                         throws ECApplicationException
response creation acknowledgement
Throws:
ECApplicationException

initParameters

protected void initParameters()
                       throws ECApplicationException
Retrieves create response parameters.
Throws:
ECApplicationException

performExecute

public void performExecute()
                    throws ECException
Create a response Step 1: Create an entry in the rfqrsp table using the TRADING_ID as the RFQRESPONSEID Step 2: Respond FulfillmentTC Step 3: Create Response attaments Step 4: Respond OrderCommentsTC Step 5: Respond price, quantity and OrderItemPAttributeTC of each product Step 6: Send back success/error message.
Specified by:
performExecute in interface ECCommand
Throws:
ECException

respondPriceAndQuantity

public void respondPriceAndQuantity(java.lang.Long resId,
                                    RFQResProduct resProduct)
                             throws ECApplicationException,
                                    ECException
Respond to the price and quantity of a product
Parameters:
resId - response id
resProduct - response product object
Throws:
ECApplicationException
ECException

respondProduct

public void respondProduct()
                    throws ECApplicationException,
                           ECException
Respond to the price, quantity and OrderItemPAttributeTC of each product
Throws:
ECApplicationException
ECException

respondProductAttribute

public void respondProductAttribute(java.lang.Long respondId,
                                    java.lang.Long rfqRspProdId,
                                    java.util.Vector productAttributeList)
                             throws ECApplicationException,
                                    ECException
Respond the OrderPAttributeTC of a product
Parameters:
respondId - response id
rfqRspProdId - response product id
productAttributeList - response product attributes
Throws:
ECApplicationException
ECException

respondRFQLevelTC

protected void respondRFQLevelTC()
                          throws ECApplicationException,
                                 ECException
Respond to the OrderCommentsTC of an rfq
Throws:
ECApplicationException
ECException

validateParameters

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

getRspProdId

public java.lang.Long getRspProdId()
Returns the response product ID set by respondPriceAndQuantity.
Returns:
The response product ID

setRspProdId

public void setRspProdId(java.lang.Long rspProdId)
Sets the response product ID
Parameters:
rspProdId - The response product ID

Feedback