java.lang.Object | +--CacheableCommandImpl | +--com.ibm.commerce.command.AbstractECTargetableCommand | +--com.ibm.commerce.command.TaskCommandImpl | +--com.ibm.commerce.utf.commands.CreateRFQItemCmdImpl
This command creates a catalog entry for a "made-to-order" item requested via an RFQ.
Behaviour
Exception conditions
ItemAccessBean
CatalogEntryDescriptionAccessBean
RFQAccessBean
Field Summary | |
---|---|
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. |
Fields inherited from class com.ibm.commerce.command. AbstractECTargetableCommand |
commandContext |
Fields inherited from interface com.ibm.commerce.utf.commands. CreateRFQItemCmd |
COPYRIGHT,
defaultCommandClassName,
NAME |
Fields inherited from interface com.ibm.commerce.command. ECTargetableCommand |
COPYRIGHT |
Fields inherited from interface com.ibm.commerce.command. ECCommand |
defaultCommandClassName |
Constructor Summary | |
---|---|
CreateRFQItemCmdImpl() Default Constructor. |
Method Summary | |
---|---|
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. |
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.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
Constructor Detail |
---|
public CreateRFQItemCmdImpl()
Method Detail |
---|
public void reset()
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 class
AbstractECTargetableCommand
ECSystemException
- If a system error occurs while creating the
item.ECException
ECCommand#performExecute()
public void setItemId(java.lang.Long newItemId)
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()