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. |
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.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.
ECCommand |
checkIsAllowed,
checkResourcePermission,
createCommandExecutionEvent,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright.
- See Also:
-
Constant Field Values
RFQResponseModifyCmdImpl
public RFQResponseModifyCmdImpl()
- RFQResponseModifyCmdImpl constructor .
doAcknowlegement
protected void doAcknowlegement()
throws ECApplicationException
- This method does the following:
- If error flag set
- set error flag and error content in response property.
- set error view name in response property
- throw ECApplicationException
- If error flag not set
- set successful flag in response property
-
- 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.
- Check attachment information. If it's empty ,only return.
- Set RespondRFQLevelAttachmentsCmd's init arguments.
- 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
- Check fulfillment center information. If it's empty ,only return.
- Set ModifyResponseFulfillmentTCCmd's init arguments.
- 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
- Check product list.If it's empty ,only return.
- Set RFQResponseModifyOrderitemPAttributeTCCmd's init arguments
- 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
- Check Response comments list.If it's empty, only return
- Set RFQResponseModifyOrderCommentsTCCmd's init arguments
- 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:
- Sets the init argument for RFQResponseModifyBaseInfoCmd
- Executes RFQResponseModifyBaseInfoCmd to modify RFQ Response basic
information
-
- Throws:
-
ECException
- if any error happen in RFQResponseModifyBaseInfoCmd
execute.
public void performExecute()
throws ECException
- 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.
-
- 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