com.ibm.commerce.rfq.commands
Class RFQResponseModifyOrderitemPAttributeTCCmdImpl
java.lang.Object
|
+--com.ibm.commerce.command.AbstractECCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.rfq.commands.RFQResponseModifyOrderitemPAttributeTCCmdImpl
- All Implemented Interfaces:
- ECCommand, RFQResponseModifyOrderitemPAttributeTCCmd, TaskCommand
- public class RFQResponseModifyOrderitemPAttributeTCCmdImpl
- extends TaskCommandImpl
- implements RFQResponseModifyOrderitemPAttributeTCCmd
Implemetation used to modify an RFQ Response product and related TCs
Method Summary |
protected void |
modifyProComments(java.lang.Long catalogId,
java.util.Vector CommentsVector)
Modify product level comments
Get comments list. |
protected void |
modifyProPAttribute(java.lang.Long catalogId,
java.util.Vector PAttributeVector)
Modify product level attribute
This method does the following:
Get product specifications list. |
void |
performExecute()
Processes the products and related TCs of an RFQ response
This method does the following:
Gets all products
Modifies the product price,quantity,currency and unit for each product
Modifies the product level comments and specifications if they exist
|
void |
setProductVector(java.util.Vector newProductVector)
Sets RFQ Response product list |
void |
setRequestId(java.lang.Long newRequestId)
Sets RFQ requestId |
void |
setResponseId(java.lang.Long newResponseId)
Sets RFQ 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 |
ProductVector
protected java.util.Vector ProductVector
RequestId
protected java.lang.Long RequestId
ResponseId
protected java.lang.Long ResponseId
VALUE_CHANGE_FLAG
public static java.lang.Integer VALUE_CHANGE_FLAG
RFQResponseModifyOrderitemPAttributeTCCmdImpl
public RFQResponseModifyOrderitemPAttributeTCCmdImpl()
- RFQResponseModifyOrderitemPAttributeTCCmdImpl
RFQResponseModifyOrderitemPAttributeTCCmdImpl constructor.
modifyProComments
protected void modifyProComments(java.lang.Long catalogId,
java.util.Vector CommentsVector)
throws ECException
- Modify product level comments
- Get comments list. If the list is empty, just return.
- Process comment value one by one
- Comments value is empty
- If the response tcid less than 0, do thing
- If the response tcid exist(>0),delete the old one
- Comments value exist,using it and some default value to generate XML element
- If the response tcid less than 0, create rfq product level comments tc
- If the response tcid exist(>0), update it
- Throws:
ECException
- if the input argument is incorrect or the process of update TC fail.
modifyProPAttribute
protected void modifyProPAttribute(java.lang.Long catalogId,
java.util.Vector PAttributeVector)
throws ECException
- Modify product level attribute
This method does the following:
- Get product specifications list. If the list is empty, just return.
- Get specification value one by one
- Specifaication value is empty
- If the response tcid less than 0, do thing
- If the response tcid exist (>0),delete the old one
- Specifaication value exist,using it to generate a XML element
- if the response tcid less than 0, create rfq product level comments tc and relations
- if the response tcid exist, update it
- Throws:
ECException
- if the input argument is incorrect or the process of update TC fail.
performExecute
public void performExecute()
throws ECException
- Processes the products and related TCs of an RFQ response
This method does the following:
- Gets all products
- Modifies the product price,quantity,currency and unit for each product
- Modifies the product level comments and specifications if they exist
- Specified by:
performExecute
in interface ECCommand
- Overrides:
performExecute
in class AbstractECCommand
- Throws:
ECApplicationException
- if using RFQResponseProductAccessBean fail.or modify item level pattribute failECSystemException
- if System error happen
setProductVector
public void setProductVector(java.util.Vector newProductVector)
- Sets RFQ Response product list
- Specified by:
setProductVector
in interface RFQResponseModifyOrderitemPAttributeTCCmd
- Parameters:
ProductVector
- java.util.Vector
setRequestId
public void setRequestId(java.lang.Long newRequestId)
- Sets RFQ requestId
- Specified by:
setRequestId
in interface RFQResponseModifyOrderitemPAttributeTCCmd
- Parameters:
id
- java.lang.Long
setResponseId
public void setResponseId(java.lang.Long newResponseId)
- Sets RFQ Response id
- Specified by:
setResponseId
in interface RFQResponseModifyOrderitemPAttributeTCCmd
- Parameters:
id
- java.lang.Long