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


Field Summary
protected  java.util.Vector ProductVector
           
protected  java.lang.Long RequestId
           
protected  java.lang.Long ResponseId
           
static java.lang.Integer VALUE_CHANGE_FLAG
           
 
Fields inherited from class com.ibm.commerce.command.AbstractECCommand
commandContext
 
Fields inherited from interface com.ibm.commerce.rfq.commands.RFQResponseModifyOrderitemPAttributeTCCmd
COPYRIGHT, defaultCommandClassName, NAME
 
Constructor Summary
RFQResponseModifyOrderitemPAttributeTCCmdImpl()
           RFQResponseModifyOrderitemPAttributeTCCmdImpl RFQResponseModifyOrderitemPAttributeTCCmdImpl constructor.
 
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
 

Field Detail

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
Constructor Detail

RFQResponseModifyOrderitemPAttributeTCCmdImpl

public RFQResponseModifyOrderitemPAttributeTCCmdImpl()
RFQResponseModifyOrderitemPAttributeTCCmdImpl RFQResponseModifyOrderitemPAttributeTCCmdImpl constructor.
Method Detail

modifyProComments

protected void modifyProComments(java.lang.Long catalogId,
                                 java.util.Vector CommentsVector)
                          throws ECException
Modify product level comments
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:
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:
  1. Gets all products
  2. Modifies the product price,quantity,currency and unit for each product
  3. 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 fail
ECSystemException - 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