java.lang.ObjectCacheableCommandImpl
com.ibm.commerce.command.AbstractECTargetableCommand
com.ibm.commerce.command.TaskCommandImpl
com.ibm.commerce.utf.commands.CreateOrderItemPAttributeTCCmdImpl
Creates terms and conditions of type "OrderItemPAttribute".
This command can be used to convert personalization attributes specified for each item during the course of a negotiation into Terms and Conditions associated with a trading agreement. When an order results from this trading agreement, these OrderItemPAttribute TCs will appear as personalized attributes for each order item.
Behaviour
The command loops through the list of personalized attributes and does the following for each attribute:
Exception conditions
Field Summary | |
java.util.Vector | attributeInfo Attribute if vector. |
java.lang.Long | catentryId Catentry Id. |
java.lang.Long | tradingId Trading Id. |
Fields inherited from class com.ibm.commerce.command.AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands.CreateOrderItemPAttributeTCCmd |
COPYRIGHT, defaultCommandClassName, NAME |
Fields inherited from interface com.ibm.commerce.command.ECCommand |
defaultCommandClassName |
Constructor Summary | |
CreateOrderItemPAttributeTCCmdImpl() Default Constructor. |
Method Summary | |
java.util.Vector | getAttributeInfo() Retrieves the list of personalized attributes. |
java.lang.Long | getCatentryId() Retrieves the catalog entry ID. |
java.lang.Long | getTradingId() Retrieves the trading agreement ID. |
void | performExecute() Creates one OrderItemPAttribute TC for every incoming personalization attribute. |
void | reset() Reset the command. |
void | setAttributeInfo(java.util.Vector newAttributeInfo) Stores the list of personalization attributes that need to be converted into terms and conditions. |
void | setCatentryId(java.lang.Long newCatentryId) Stores the incoming catalog entry ID. |
void | setTradingId(java.lang.Long newTradingId) Stores the incoming trading agreement ID. |
void | validateParameters() This method does the following: Verifies that a trading agreement ID has been provided and exists. Verifies that a catalog entry ID has been provided. Verifies that a list of personalized attributes has been provided for the catalog entry. |
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, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.lang.Long catentryId
public java.lang.Long tradingId
public java.util.Vector attributeInfo
Constructor Detail |
public CreateOrderItemPAttributeTCCmdImpl()
Method Detail |
public void reset()
public java.util.Vector getAttributeInfo()
public java.lang.Long getCatentryId()
public java.lang.Long getTradingId()
public void performExecute() throws ECException
public void setAttributeInfo(java.util.Vector newAttributeInfo)
public void setCatentryId(java.lang.Long newCatentryId)
public void setTradingId(java.lang.Long newTradingId)
public void validateParameters() throws ECException
(C) Copyright IBM Corporation 1996, 2005. All Rights Reserved.