com.ibm.commerce.rfq.commands
Class RFQResponseModifyCmdImpl

com.ibm.commerce.rfq.commands.RFQResponseBaseCmdImpl
  |
  +--com.ibm.commerce.rfq.commands.RFQResponseModifyCmdImpl
All Implemented Interfaces:
AccCommand, ControllerCommand, ECCommand, Protectable, RFQResponseBaseCmd, RFQResponseModifyCmd, ToolsControllerCommand

public class RFQResponseModifyCmdImpl
extends RFQResponseBaseCmdImpl
implements RFQResponseModifyCmd

Implementation used to modify an RFQ response


Fields inherited from class com.ibm.commerce.rfq.commands.RFQResponseBaseCmdImpl
commentsRFQLevelList, createTime, errorContent, errorFlag, majorVersion, minorVersion, ownerId, requestId, responseId, responseName, responseRemarks, resProductsList, updateTime
 
Fields inherited from interface com.ibm.commerce.rfq.commands.RFQResponseModifyCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
RFQResponseModifyCmdImpl()
           
 
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 modifyResponseBaseInfo()
          Process Response base Information
This method does the following:
Sets the init argument for RFQResponseModifyBaseInfoCmd Executes RFQResponseModifyBaseInfoCmd to modify RFQ Response basic information
 void performExecute()
          Modify RFQ response
This method does the following:
Modifies base information by calling RFQResponseModifyBaseInfoCmd 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
getCommentsRFQLevelList, getCreateTime, getErrorContent, getErrorFlag, getMajorVersion, getMinorVersion, getOwnerId, getRequestId, getResponseId, getResponseName, getResponseRemarks, getResProductsList, getToolXMLObject, getUpdateTime, getViewTaskName, getWizardNavagationFile, setCommentsRFQLevelList, setCommentsRFQLevelList, setCreateTime, setErrorContent, setErrorFlag, setMajorVersion, setMinorVersion, setRequestId, setRequestProperties, setResponseId, setResponseId, setResponseName, setResponseRemarks, setResProductsList, setResProductsList, setToolXMLObject, setUpdateTime, setViewTaskName
 
Methods inherited from interface com.ibm.commerce.rfq.commands.RFQResponseBaseCmd
getCommentsRFQLevelList, setRequestId, setResponseName, setResponseRemarks, setResProductsList
 
Methods inherited from interface com.ibm.commerce.command.ControllerCommand
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, setAccCheck, setForUserId, setOwner
 
Methods inherited from interface com.ibm.commerce.command.ECCommand
checkIsAllowed, checkResourcePermission, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setCommandContext, setCommandIfName, setDefaultProperties
 
Methods inherited from interface com.ibm.commerce.security.Protectable
fulfills, getOwner
 

Constructor Detail

RFQResponseModifyCmdImpl

public RFQResponseModifyCmdImpl()
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.

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 comments by calling RFQResponseModifyOrderCommentsTCCmd
  3. Modifies RFQ product and it's TCs by calling RFQResponseOrderitemPAttributeCmd
  4. If ECApplicationException was thrown in these three steps,catch it and set error the flag
  5. Set response property by calling doAcknowlegement.
Specified by:
performExecute in interface ECCommand
Returns:
none
Throws:
ECApplicationException - if application error happen in process

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
Following copied from interface: com.ibm.commerce.command.ECCommand
Throws:
ECException. -