public class CreateRFQItemCmdImpl extends TaskCommandImpl implements CreateRFQItemCmd
Behaviour
Exception conditions
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
COPYRIGHT
IBM copyright notice field.
|
java.lang.Long |
itemId
Item Id.
|
java.lang.Integer |
languageId
Language Id.
|
java.lang.String |
name
Name.
|
java.lang.Long |
offeringId
Offering Id.
|
java.lang.Long |
ownerId
Owner Id.
|
java.lang.Long |
parentProductId
Parent Product Id.
|
java.lang.String |
shortDescription
Short Description.
|
defaultCommandClassName, NAME| Constructor and Description |
|---|
CreateRFQItemCmdImpl()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.Long |
getItemId()
Retrieves the ID of the newly created item.
|
java.lang.Integer |
getLanguageId()
Retrieves the language identifier.
|
java.lang.String |
getName()
Retrieves the name of the item.
|
java.lang.Long |
getOfferingId()
Retrieves the ID of the RFQ.
|
java.lang.Long |
getOwnerId()
Retrieves the member ID of the item owner.
|
java.lang.Long |
getParentProductId()
Retrieves the ID of the parent product.
|
java.lang.String |
getShortDescription()
Retrieves the short description for the item.
|
void |
performExecute()
Creates the RFQ catalog entry relationship.
|
void |
reset()
Reset the command.
|
void |
setItemId(java.lang.Long newItemId)
Stores the ID of the newly created item.
|
void |
setLanguageId(java.lang.Integer newLanguageId)
Stores the language identifier.
|
void |
setName(java.lang.String newName)
Stores the item name.
|
void |
setOfferingId(java.lang.Long newOfferingId)
Stores the RFQ ID.
|
void |
setOwnerId(java.lang.Long newOwnerId)
Stores the ID of the item owner.
|
void |
setParentProductId(java.lang.Long newParentProductId)
Stores the ID of the parent catalog entry under which this item has been created.
|
void |
setShortDescription(java.lang.String newShortDescription)
Stores a brief description of the item.
|
void |
validateParameters()
This method does the following:
Verifies that a name has been provided for the item. Verifies that the RFQ ID has been provided. Verifies that member ID has been provided for the RFQ owner. Verifies that parent product reference number has been provided. Checks if a language identifier has been specified. |
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.String name
public java.lang.Long offeringId
public java.lang.Long parentProductId
public java.lang.String shortDescription
public java.lang.Long ownerId
public java.lang.Long itemId
public java.lang.Integer languageId
public void reset()
reset in interface com.ibm.websphere.command.Commandreset in class AbstractECTargetableCommandpublic java.lang.Long getItemId()
getItemId in interface CreateRFQItemCmdpublic java.lang.Integer getLanguageId()
public java.lang.String getName()
public java.lang.Long getOfferingId()
public java.lang.Long getOwnerId()
public java.lang.Long getParentProductId()
public java.lang.String getShortDescription()
public void performExecute()
throws ECException
performExecute in interface ECCommandperformExecute in interface com.ibm.websphere.command.TargetableCommandperformExecute in class AbstractECTargetableCommandECSystemException - If a system error occurs while creating the item.ECExceptionECCommand#performExecute()public void setItemId(java.lang.Long newItemId)
The - item ID.public void setLanguageId(java.lang.Integer newLanguageId)
setLanguageId in interface CreateRFQItemCmdnewLanguageId - The language identifier.public void setName(java.lang.String newName)
setName in interface CreateRFQItemCmdnewName - The name of the item.public void setOfferingId(java.lang.Long newOfferingId)
setOfferingId in interface CreateRFQItemCmdnewOfferingId - The RFQ ID.public void setOwnerId(java.lang.Long newOwnerId)
setOwnerId in interface CreateRFQItemCmdnewOwnerId - The member ID of the item's owner.public void setParentProductId(java.lang.Long newParentProductId)
setParentProductId in interface CreateRFQItemCmdnewParentProductId - The parent product reference number.public void setShortDescription(java.lang.String newShortDescription)
setShortDescription in interface CreateRFQItemCmdnewShortDescription - The item's short description.public void validateParameters()
throws ECException
validateParameters in interface ECCommandvalidateParameters in class AbstractECTargetableCommandECApplicationException - ECExceptionECCommand#validateParameters()