java.lang.Object | +--com.ibm.commerce.ubf.commands.ToolsBusinessFlowCmdImpl | +--com.ibm.commerce.rfq.commands.RFQResponseBaseCmdImpl | +--com.ibm.commerce.rfq.commands.RFQResponseCreateCmdImpl
Implementation class for creating an RFQ response.
This command calls the following TaskCommands:
CreateResponseBasicInfoCmd
CreateResponseFulfillmentTCCmd
RespondPAttributeCmd
RespondProductPQCmd
RespondRFQLevelAttachmentsCmd
RespondRFQLevelCommentsTCCmd
CatalogEntryAccessBean
RFQAccessBean
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 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 |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
Constructor Detail |
---|
public RFQResponseCreateCmdImpl()
Method Detail |
---|
protected RFQResponseAccessBean createResponse() throws ECApplicationException, ECException
ECApplicationException
ECException
protected void createResponseAttachment() throws ECApplicationException, ECException
ECApplicationException
ECException
protected void createResponseFulfillmentTC() throws ECApplicationException, ECException
ECApplicationException
ECException
protected void doAcknowlegement() throws ECApplicationException
ECApplicationException
protected void initParameters() throws ECApplicationException
ECApplicationException
public void performExecute() throws ECException
performExecute
in interface
ECCommand
ECException
public void respondPriceAndQuantity(java.lang.Long resId, RFQResProduct resProduct) throws ECApplicationException, ECException
resId
- response idresProduct
- response product object
ECApplicationException
ECException
public void respondProduct() throws ECApplicationException, ECException
ECApplicationException
ECException
public void respondProductAttribute(java.lang.Long respondId, java.lang.Long rfqRspProdId, java.util.Vector productAttributeList) throws ECApplicationException, ECException
respondId
- response idrfqRspProdId
- response product idproductAttributeList
- response product attributes
ECApplicationException
ECException
protected void respondRFQLevelTC() throws ECApplicationException, ECException
ECApplicationException
ECException
public void validateParameters() throws ECException
validateParameters
in interface
ECCommand
ECException
public java.lang.Long getRspProdId()
public void setRspProdId(java.lang.Long rspProdId)
rspProdId
- The response product ID