com.ibm.commerce.rfq.commands
Class RFQResponseModifyOrderCommentsTCCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.rfq.commands.RFQResponseModifyOrderCommentsTCCmdImpl
- All Implemented Interfaces:
- ECCommand, RFQResponseModifyOrderCommentsTCCmd, TaskCommand
- public class RFQResponseModifyOrderCommentsTCCmdImpl
- extends TaskCommandImpl
- implements RFQResponseModifyOrderCommentsTCCmd
Implementation to modify an RFQ Response Level TCs
Method Summary |
void |
performExecute()
Process the RFQ response level comments
This method does the following:
Gets the response level comments list. |
void |
setCommentsVector(java.util.Vector newCommentsVector)
Sets RFQ Response level comments |
void |
setRequestId(java.lang.Long newRequestId)
Sets RFQ Response requestId |
void |
setResponseId(java.lang.Long newResponseId)
Sets RFQ Response response id |
Methods inherited from class com.ibm.commerce.command.AbstractECCommand |
accessControlCheck, checkIsAllowed, checkResourcePermission, execute, finalize, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, reset, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.ibm.commerce.command.ECCommand |
checkIsAllowed, checkResourcePermission, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getDefaultProperties, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setDefaultProperties, validateParameters |
commentsVector
protected java.util.Vector commentsVector
requestId
protected java.lang.Long requestId
responseId
protected java.lang.Long responseId
VALUE_CHANGE_FLAG
public static java.lang.Integer VALUE_CHANGE_FLAG
RFQResponseModifyOrderCommentsTCCmdImpl
public RFQResponseModifyOrderCommentsTCCmdImpl()
- RFQResponseModifyOrderCommentsTCCmdImpl constructor comment.
performExecute
public void performExecute()
throws ECException
- Process the RFQ response level comments
This method does the following:
- Gets the response level comments list.
- Converts each comment into class ResponseComments
- If the value is null
- If the TCid < 0, do nothing
- If the TCid exists(>0), delete the old response
- If the value not null
- If the TCid < 0 , create response TCs and RfqResponseTCRelation
- If the TCid exists(>0), update the old response TCs
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECException
- if the input arguments are incorrect or the process of TCs updating fail.
setCommentsVector
public void setCommentsVector(java.util.Vector newCommentsVector)
- Sets RFQ Response level comments
- Specified by:
setCommentsVector
in interface RFQResponseModifyOrderCommentsTCCmd
- Parameters:
CommenceVector
- java.util.Vector
setRequestId
public void setRequestId(java.lang.Long newRequestId)
- Sets RFQ Response requestId
- Specified by:
setRequestId
in interface RFQResponseModifyOrderCommentsTCCmd
- Parameters:
id
- java.lang.Long
setResponseId
public void setResponseId(java.lang.Long newResponseId)
- Sets RFQ Response response id
- Specified by:
setResponseId
in interface RFQResponseModifyOrderCommentsTCCmd
- Parameters:
id
- java.lang.Long