com.ibm.commerce.rfq.commands
Class ModifyResponsePAttributeCmdImpl
java.lang.Object
|
+--CacheableCommandImpl
|
+--com.ibm.commerce.command.AbstractECTargetableCommand
|
+--com.ibm.commerce.command.TaskCommandImpl
|
+--com.ibm.commerce.rfq.commands.ModifyResponsePAttributeCmdImpl
- All Implemented Interfaces:
-
ECCommand,
ECTargetableCommand,
ModifyResponsePAttributeCmd,
TaskCommand
- public class ModifyResponsePAttributeCmdImpl
- extends
TaskCommandImpl
- implements
ModifyResponsePAttributeCmd
Implemetation used to modify an RFQ response product personalization
attribute.
This command calls the following TaskCommands:
This command uses the following AccessBeans:
-
OperatorAccessBean
PAttrValueAccessBean
RFQResponsePAttributeRelAccessBean
RFQResponseProductAccessBean
- See Also:
- Serialized
Form
Method Summary |
protected
void |
modifyProComments(java.lang.Long rspProdId,
java.util.Vector CommentsVector)
Modify product level comments
Get comments list. |
protected
void |
modifyProPAttribute(java.lang.Long rspProdId,
java.util.Vector PAttributeVector)
Modify product level attribute
This method does the following:
Get product specifications list. |
void |
performExecute()
Processes the products and related personalization attributes 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.
AbstractECTargetableCommand |
accessControlCheck,
checkIsAllowed,
checkParameters,
checkResourcePermission,
createCommandExecutionEvent,
execute,
finalize,
getAccCheck,
getCommandContext,
getCommandIfName,
getCommandName,
getCommandStoreId,
getDefaultProperties,
getResources,
getStoreId,
getUser,
getUserId,
isReadyToCallExecute,
reset,
setAccCheck,
setCommandContext,
setCommandIfName,
setCommandStoreId,
setDefaultProperties,
validateParameters |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait,
wait, wait |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- Copyright.
- See Also:
-
Constant Field Values
VALUE_CHANGE_FLAG
public static java.lang.Integer VALUE_CHANGE_FLAG
- Change flag.
ModifyResponsePAttributeCmdImpl
public ModifyResponsePAttributeCmdImpl()
- ModifyResponsePAttributeCmdImpl constructor.
protected void modifyProComments(java.lang.Long rspProdId,
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
-
- Parameters:
rspProdId
- The response product ID.
CommentsVector
- The vector of hashtables of attribute
values.
- Throws:
-
ECException
- if the input argument is incorrect or the process of update TC
fail.
modifyProPAttribute
protected void modifyProPAttribute(java.lang.Long rspProdId,
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.
-
- Parameters:
rspProdId
- The response product ID.
- Throws:
-
ECException
- if the input argument is incorrect or the process of update TC
fail.
public void performExecute()
throws ECException
- Processes the products and related personalization attributes 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
AbstractECTargetableCommand
-
- Throws:
-
ECApplicationException
- if using RFQResponseProductAccessBean
fail.or modify item level pattribute fail
-
ECSystemException
- if System error happen
-
ECException
setProductVector
public void setProductVector(java.util.Vector newProductVector)
- Sets RFQ Response product list.
-
- Specified by:
-
setProductVector
in interface
ModifyResponsePAttributeCmd
-
- Parameters:
newProductVector
- The RFQ Response product
list.
setRequestId
public void setRequestId(java.lang.Long newRequestId)
- Sets RFQ requestId
-
- Specified by:
-
setRequestId
in interface
ModifyResponsePAttributeCmd
-
- Parameters:
newRequestId
- The RFQ request ID.
setResponseId
public void setResponseId(java.lang.Long newResponseId)
- Sets RFQ Response id
-
- Specified by:
-
setResponseId
in interface
ModifyResponsePAttributeCmd
-
- Parameters:
newResponseId
- The RFQ response ID.