com.ibm.commerce.rfq.commands
Class RFQResponseModifyCmdImpl

java.lang.Object
  |
  +--com.ibm.commerce.ubf.commands.ToolsBusinessFlowCmdImpl
        |
        +--com.ibm.commerce.rfq.commands.RFQResponseBaseCmdImpl
              |
              +--com.ibm.commerce.rfq.commands.RFQResponseModifyCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, RFQResponseBaseCmd, RFQResponseModifyCmd, ToolsControllerCommand

public class RFQResponseModifyCmdImpl
extends RFQResponseBaseCmdImpl
implements RFQResponseModifyCmd

Implementation used to modify 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. RFQResponseModifyCmd
defaultCommandClassName, NAME
 
Constructor Summary
RFQResponseModifyCmdImpl()
          RFQResponseModifyCmdImpl constructor .
 
Method Summary
protected  void doAcknowlegement()           This method does the following: If error flag set set error flag and error content in response property.
protected  void initParameters()           initParameters from the request properties Set instance data from request property.
protected  void modifyRespondItemLevelTC()           Process response product level TCs Check product list.If it's empty ,only return.
protected  void modifyRespondRFQLevelTC()           Process response level TCs Check Response comments list.If it's empty, only return Set RFQResponseModifyOrderCommentsTCCmd's init arguments Execute RFQResponseModifyOrderCommentsTCCmd to modify the RFQ Response level Comments
protected  void modifyResponseAttachment()           Process response level attachments. Check attachment information.
protected  void modifyResponseBaseInfo()           Process Response base Information This method does the following: Sets the init argument for RFQResponseModifyBaseInfoCmd Executes RFQResponseModifyBaseInfoCmd to modify RFQ Response basic information
protected  void modifyResponseFulfillmentTC()           Process response Fulfillment TC Check fulfillment center information.
 void performExecute()           Modify RFQ response This method does the following: Modifies base information by calling RFQResponseModifyBaseInfoCmd Modifies RFQ level attachments by calling RespondRFQLevelAttachmentsCmd Modifies RFQ level fulfillment center by calling ModifyResponseFulfillmentTCCmd Modifies RFQ level comments by calling RFQResponseModifyOrderCommentsTCCmd Modifies RFQ product and it's TCs by calling RFQResponseOrderitemPAttributeCmd If ECApplicationException was thrown in these three steps,catch it and set error the flag Set response property by calling doAcknowlegement.
 void validateParameters()           Validate response parameters. This is only an init process in which we save the data from request properties into base clase
 
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
 

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

RFQResponseModifyCmdImpl

public RFQResponseModifyCmdImpl()
RFQResponseModifyCmdImpl constructor .
Method Detail

doAcknowlegement

protected void doAcknowlegement()
                         throws ECApplicationException
This method does the following:
Throws:
ECApplicationException - If error flag had been set

initParameters

protected void initParameters()
                       throws ECApplicationException
initParameters from the request properties Set instance data from request property.
Throws:
ECApplicationException

modifyResponseAttachment

protected void modifyResponseAttachment()
                                 throws ECException
Process response level attachments.
  1. Check attachment information. If it's empty ,only return.
  2. Set RespondRFQLevelAttachmentsCmd's init arguments.
  3. Execute RespondRFQLevelAttachmentsCmd to modify RFQ Response Level Attachments.
Throws:
ECException - if any error happen in RespondRFQLevelAttachmentsCmd execution
See Also:
RespondRFQLevelAttachmentsCmd

modifyResponseFulfillmentTC

protected void modifyResponseFulfillmentTC()
                                    throws ECException
Process response Fulfillment TC
  1. Check fulfillment center information. If it's empty ,only return.
  2. Set ModifyResponseFulfillmentTCCmd's init arguments.
  3. Execute ModifyResponseFulfillmentTCCmd to modify RFQ Response fulfillment center TC.
Throws:
ECException - if any error happen in ModifyResponseFulfillmentTCCmd execution
See Also:
ModifyResponseFulfillmentTCCmd

modifyRespondItemLevelTC

protected void modifyRespondItemLevelTC()
                                 throws ECException
Process response product level TCs
  1. Check product list.If it's empty ,only return.
  2. Set RFQResponseModifyOrderitemPAttributeTCCmd's init arguments
  3. Execute RFQResponseModifyOrderitemPAttributeTCCmd to modify RFQ Response products and related specifications
Throws:
ECException - if any error happen in RFQResponseModifyOrderitemPAttributeTCCmd execution
See Also:
RFQResponseModifyOrderitemPAttributeTCCmd

modifyRespondRFQLevelTC

protected void modifyRespondRFQLevelTC()
                                throws ECException
Process response level TCs
  1. Check Response comments list.If it's empty, only return
  2. Set RFQResponseModifyOrderCommentsTCCmd's init arguments
  3. Execute RFQResponseModifyOrderCommentsTCCmd to modify the RFQ Response level Comments
Throws:
ECException - if any error happen in RFQResponseModifyOrderCommentsTCCmd execution
See Also:
RFQResponseModifyOrderCommentsTCCmd

modifyResponseBaseInfo

protected void modifyResponseBaseInfo()
                               throws ECException
Process Response base Information This method does the following:
  1. Sets the init argument for RFQResponseModifyBaseInfoCmd
  2. Executes RFQResponseModifyBaseInfoCmd to modify RFQ Response basic information
Throws:
ECException - if any error happen in RFQResponseModifyBaseInfoCmd execute.

performExecute

public void performExecute()
                    throws ECException
Modify RFQ response This method does the following:
  1. Modifies base information by calling RFQResponseModifyBaseInfoCmd
  2. Modifies RFQ level attachments by calling RespondRFQLevelAttachmentsCmd
  3. Modifies RFQ level fulfillment center by calling ModifyResponseFulfillmentTCCmd
  4. Modifies RFQ level comments by calling RFQResponseModifyOrderCommentsTCCmd
  5. Modifies RFQ product and it's TCs by calling RFQResponseOrderitemPAttributeCmd
  6. If ECApplicationException was thrown in these three steps,catch it and set error the flag
  7. Set response property by calling doAcknowlegement.
Specified by:
performExecute in interface ECCommand
Throws:
ECApplicationException - if application error happen in process
ECException

validateParameters

public void validateParameters()
                        throws ECException
Validate response parameters. This is only an init process in which we save the data from request properties into base clase
Specified by:
validateParameters in interface ECCommand
Throws:
ECException - if error happen in process