public class CreateOrderItemPAttributeTCCmdImpl extends TaskCommandImpl implements CreateOrderItemPAttributeTCCmd
This command can be used to convert personalization attributes specified for each item. During the course of a negotiation, it enters 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
RFQProductAttributesPAttrProdAccessBeanOperatorAccessBean| Modifier and Type | Field and Description |
|---|---|
java.util.Vector |
attributeInfo
Attribute if vector.
|
java.lang.Long |
catentryId
Catentry ID.
|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.lang.Long |
tradingId
Trading ID.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreateOrderItemPAttributeTCCmdImpl()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
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. |
accessControlCheck, checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, execute, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getObjectSize, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, isReadyToCallExecute, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiesexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCachegetCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicyequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitexecuteFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCachegetCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputPropertiescheckIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultPropertiespublic static final java.lang.String COPYRIGHT
public java.lang.Long catentryId
public java.lang.Long tradingId
public java.util.Vector attributeInfo
public CreateOrderItemPAttributeTCCmdImpl()
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic java.util.Vector getAttributeInfo()
public java.lang.Long getCatentryId()
public java.lang.Long getTradingId()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECApplicationException - If no value was provided for a personalization attribute.ECSystemException - If a system error occurs while creating the TC.ECExceptionECCommand#performExecute()public void setAttributeInfo(java.util.Vector newAttributeInfo)
setAttributeInfo in interface CreateOrderItemPAttributeTCCmdnewAttrInfo - The list of personalization attributes.public void setCatentryId(java.lang.Long newCatentryId)
setCatentryId in interface CreateOrderItemPAttributeTCCmdnewCatentryid - The ID of the catalog entry.public void setTradingId(java.lang.Long newTradingId)
setTradingId in interface CreateOrderItemPAttributeTCCmdnewTradingId - The ID of the trading agreement.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - ECExceptionECCommand#validateParameters()