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, setDefaultProperties
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, setObjectSize, unionDependencies, updateCache
getCommandTarget, getCommandTargetName, getTargetPolicy, hasOutputProperties, setCommandTarget, setCommandTargetName, setHasOutputProperties, setOutputProperties, setTargetPolicy
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
executeFromCache, getCaller, getEntryInfo, getId, getSharingPolicy, postExecute, preExecute, setCaller, updateCache
getCommandTarget, getCommandTargetName, hasOutputProperties, setCommandTarget, setCommandTargetName, setOutputProperties
checkIsAllowed, checkResourcePermission, createCommandExecutionEvent, getAccCheck, getCommandContext, getCommandIfName, getCommandName, getCommandStoreId, getDefaultProperties, getExceptionInvokeParameters, getPostInvokeParameters, getPreInvokeParameters, getResources, getStoreId, getUser, getUserId, setAccCheck, setCommandContext, setCommandIfName, setCommandStoreId, setDefaultProperties
public 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.Command
reset
in class AbstractECTargetableCommand
public java.lang.Long getItemId()
getItemId
in interface CreateRFQItemCmd
public 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 ECCommand
performExecute
in interface com.ibm.websphere.command.TargetableCommand
performExecute
in class AbstractECTargetableCommand
ECSystemException
- If a system error occurs while creating the item.ECException
ECCommand#performExecute()
public void setItemId(java.lang.Long newItemId)
The
- item ID.public void setLanguageId(java.lang.Integer newLanguageId)
setLanguageId
in interface CreateRFQItemCmd
newLanguageId
- The language identifier.public void setName(java.lang.String newName)
setName
in interface CreateRFQItemCmd
newName
- The name of the item.public void setOfferingId(java.lang.Long newOfferingId)
setOfferingId
in interface CreateRFQItemCmd
newOfferingId
- The RFQ ID.public void setOwnerId(java.lang.Long newOwnerId)
setOwnerId
in interface CreateRFQItemCmd
newOwnerId
- The member ID of the item's owner.public void setParentProductId(java.lang.Long newParentProductId)
setParentProductId
in interface CreateRFQItemCmd
newParentProductId
- The parent product reference number.public void setShortDescription(java.lang.String newShortDescription)
setShortDescription
in interface CreateRFQItemCmd
newShortDescription
- The item's short description.public void validateParameters() throws ECException
validateParameters
in interface ECCommand
validateParameters
in class AbstractECTargetableCommand
ECApplicationException
- ECException
ECCommand#validateParameters()