public class ItemDataBean
extends com.ibm.commerce.catalog.beansrc.CompactItemAccessBean
implements com.ibm.commerce.catalog.beans.ItemInputDataBean, com.ibm.commerce.catalog.beans.ItemSmartDataBean
You can find more information about data beans in the WebSphere Commerce data beans topic in the Information Center.
Access Beans: Item
Mandatory Parameters (for single row retrieval):
Some hints and tips for using this data bean are:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | ACCESS_PROFILE_NAME_STOREFRONT_SEARCH
The search access profile name for storefront navigation
|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
ItemDataBean()
Constructs an empty ItemDataBean.
|
ItemDataBean(CatalogEntryAccessBean abCatentry)
Constructs an ItemDataBean from a CatalogEntryAccessBean.
|
ItemDataBean(CatalogEntryAccessBean abCatEntry, CommandContext aCommandContext)
Constructs an ItemDataBean from a CatalogEntryAccessBean and a command context.
|
ItemDataBean(ItemAccessBean abItem, CommandContext aCommandContext)
Constructs an ItemDataBean from an ItemAccessBean and a command context.
|
Modifier and Type | Method and Description |
---|---|
AttachmentDataBean[] | getAllAttachments()
Gets all the attachments in the item.
|
java.lang.Long[] | getApplicableContractIds()
Gets a list of applicable contract IDs for calculating the prices.
|
com.ibm.commerce.catalog.util.RangePricingData[] | getApplicableContractPriceRanges()
Retrieve the tiered pricing information for the current item in all the applicable contracts.
|
PriceDataBean[] | getApplicableContractPrices()
Gets a list of prices of applicable contracts for calculating the prices.
|
ContractDataBean[] | getApplicableContracts()
Gets a list of ContractDataBean that represents applicable contracts for the item.
|
AttachmentDataBean[] | getAttachmentsByUsage()
Get all the item attachments by the specified attachment relation usage.
|
AttachmentUsageDataBean[] | getAttachmentUsages()
Get all the attachment relation usage used in the item attachments
|
AttributeDataBean[] | getAttributeDataBeans()
Gets a list of data beans that represent defining attributes of the product.
|
AttributeAccessBean[] | getAttributes()
Gets a list of beans that represent attributes of the item.
|
AttributeValueDataBean[] | getAttributeValueDataBeans()
Gets a list of the AttributeDataBeans for the item.
|
AttributeValueDataBean[] | getAttributeValueDataBeans(java.lang.Integer argLanguageId)
Gets a list of beans that represent packages that are accessories to this item.
|
AttributeValueDataBean[] | getAttributeValueDataBeansByAttributeUsage()
Gets a list of attribute value data beans by usage
|
AttributeValueAccessBean[] | getAttributeValues(java.lang.Integer anLanguageId)
Gets the attribute values for the specified item, in the specified language.
|
RelatedBundleDataBean[] | getBundleAccessories()
Gets a list of beans that represent bundles that are accessories to this item.
|
RelatedBundleDataBean[] | getBundleAssociations()
Gets a list of beans that represent bundles that are merchandising associations for this item.
|
RelatedBundleDataBean[] | getBundleCrossSells()
Gets a list of beans that represent bundles that are cross-sells to this item.
|
RelatedBundleDataBean[] | getBundleUpSells()
Gets a list of beans that represent bundles that are up-sells to this item.
|
PriceDataBean | getCalculatedContractPrice()
Gets a PriceDataBean that represents the calculated contract price for the item.
|
PriceDataBean | getCalculatedContractPrice(boolean isEntitledNeeded)
Gets a PriceDataBean that represents the calculated contract price for the item.
|
PriceDataBean | getCalculatedPrice()
Gets a PriceDataBean that represents the the calculated price for the item.
|
CommandContext | getCommandContext()
Gets the current command's context passed in at run time.
|
AttributeAccessBean[] | getDefiningAttributes()
Gets a list of beans that represent defining attributes of the item.
|
AttributeValueDataBean[] | getDefiningAttributeValueDataBeans()
Gets a list of defining attribute value data beans
|
CatalogEntryDescriptionAccessBean | getDescription()
Gets a bean representing descriptive information about this item.
|
AttributeDataBean[] | getDescriptiveAttributeDataBeans()
Gets a list of data beans that represent descriptive attributes of the product.
|
AttributeAccessBean[] | getDescriptiveAttributes()
Gets a list of beans that represent descriptive attributes of the item.
|
AttributeValueDataBean[] | getDescriptiveAttributeValueDataBeans()
Gets a list of descriptive attribute value data beans
|
CategorizedMonetaryAmountsDataBean | getDisplayTaxes()
Invokes the getTaxes method in PriceDataBean to calculate the taxes for those tax categories that are displayable at product display time.
|
RelatedDynamicKitDataBean[] | getDynamicKitAccessories()
Gets a list of beans that represent dynamic kits that are accessories.
|
RelatedDynamicKitDataBean[] | getDynamicKitAssociations()
Gets a list of beans that represent dynamic kits that are merchandising associations for this item.
|
RelatedDynamicKitDataBean[] | getDynamicKitCrossSells()
Gets a list of beans that represent dynamic kits that are cross-sells.
|
RelatedDynamicKitDataBean[] | getDynamicKitUpSells()
Gets a list of beans that represent dynamic kits that are up-sells.
|
boolean | getErrorMode()
Gets the error mode.
|
RelatedItemDataBean[] | getItemAccessories()
Gets a list of beans that represent items that are accessories to this item.
|
RelatedItemDataBean[] | getItemAssociations()
Gets a list of beans that represent items that are merchandising associations for this item.
|
RelatedItemDataBean[] | getItemCrossSells()
Gets a list of beans that represent items that are cross-sells to this item.
|
java.lang.String | getItemID()
Gets the item ID that represents the primary key for this item.
|
RelatedItemDataBean[] | getItemReplacements()
Gets a list of beans that represent items that are replacements to this item.
|
RelatedItemDataBean[] | getItemUpSells()
Gets a list of beans that represent items that are up-sells to this item.
|
PriceDataBean | getListPrice()
Gets a bean that represents the list price for the item.
|
int | getNumberOfApplicableContractIds()
Gets the number of applicable contract IDs for calculating the prices.
|
java.lang.String | getObjectPath()
Gets the path to objects such as images in the context of the current store.
|
RelatedPackageDataBean[] | getPackageAccessories()
Gets a list of beans that represent packages that are accessories to this item.
|
RelatedPackageDataBean[] | getPackageAssociations()
Gets a list of beans that represent packages that are merchandising associations for this item.
|
RelatedPackageDataBean[] | getPackageCrossSells()
Gets a list of beans that represent packages that are cross-sells to this item.
|
RelatedPackageDataBean[] | getPackageUpSells()
Gets a list of beans that represent packages that are up-sells to this item.
|
ProductDataBean | getParentProductDataBean()
Gets the parent product databean
|
ProductDataBean[] | getParentProductDataBeans()
Gets the parent product databeans
|
java.lang.String | getParentProductId()
Gets a the parent product Id
|
java.lang.String | getPartNumber()
Gets the part number of the item.
|
RelatedProductDataBean[] | getProductAccessories()
Gets a list of beans that represent products that are accessories to this item.
|
RelatedProductDataBean[] | getProductAssociations()
Gets a list of beans that represent products that are merchandising associations for this item.
|
RelatedProductDataBean[] | getProductCrossSells()
Gets a list of beans that represent products that are cross-sells to this item.
|
RelatedProductDataBean[] | getProductUpSells()
Gets a list of beans that represent products that are up-sells to this item.
|
TypedProperty | getRequestProperties()
Gets the request property.
|
PriceDataBean | getStandardPrice()
Gets a PriceDataBean that represents the standard contract price for the item.
|
boolean | isAdminMode()
Gets if the bean is running in administrative mode.
|
boolean | isAnyMerchandisingAssociated()
Determines whether there are any OOB or custom merchandising associations associated with this catalog entry
|
boolean | isCalculatedContractPriced()
Determines whether the item has a calculated contract price.
|
boolean | isCheckNumberOfApplicableContractIds()
Determines whether the item has any applicable contract IDs
|
boolean | isListPriced()
Determines whether the item has a list price.
|
boolean | isMerchandisingAssociated()
Determines whether there are any merchandising associations associated with this item
|
void | populate()
Loads data into the data bean when the DataBeanManager.activate() runs.
|
void | setAdminMode(boolean aboolAdminMode)
Sets the administrative mode of the bean.
|
void | setAssociationType(java.lang.String type)
Sets the variable istrAssociationType, which represents the target association type to be processed by an internal method called processCatalogEntryAssociation().
|
void | setAttachmentUsage(java.lang.String astrAttachmentUsage)
Sets the attachment relation usage identifier to get all the attachments of the item with the same usage.
|
void | setAttributeUsage(java.lang.String astrUsage)
Sets the attribute usage for attribute data beans retrieval
|
void | setCommandContext(CommandContext aCommandContext)
Sets the command context passed in at run time.
|
void | setDescription(CatalogEntryDescriptionAccessBean aabDescription)
Sets the descriptive information about this item.
|
void | setErrorMode(boolean aErrorMode)
Sets the error mode.
|
void | setItemID(java.lang.String astrItemId)
Sets the item ID that represents the primary key for this item.
|
void | setPartNumber(java.lang.String astrItemPartNumber)
Sets the item part number
|
void | setRequestProperties(TypedProperty aParam)
Sets the request property and populates the parameters that are needed by the bean.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String ACCESS_PROFILE_NAME_STOREFRONT_SEARCH
public ItemDataBean()
public ItemDataBean(CatalogEntryAccessBean abCatentry) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public ItemDataBean(CatalogEntryAccessBean abCatEntry, CommandContext aCommandContext) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public ItemDataBean(ItemAccessBean abItem, CommandContext aCommandContext) throws javax.ejb.CreateException, java.rmi.RemoteException, javax.ejb.FinderException, javax.naming.NamingException
public AttributeAccessBean[] getAttributes() throws javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public AttributeAccessBean[] getDescriptiveAttributes() throws javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public java.lang.Long[] getApplicableContractIds() throws ECException
public PriceDataBean[] getApplicableContractPrices() throws ECException
public AttachmentDataBean[] getAllAttachments()
public AttachmentDataBean[] getAttachmentsByUsage()
public AttachmentUsageDataBean[] getAttachmentUsages()
public AttributeValueDataBean[] getAttributeValueDataBeans(java.lang.Integer argLanguageId) throws javax.ejb.CreateException, javax.ejb.FinderException, java.rmi.RemoteException, javax.naming.NamingException, java.lang.Exception
public RelatedBundleDataBean[] getBundleAccessories() throws ECException
public RelatedBundleDataBean[] getBundleAssociations() throws ECException
setAssociationType("UPSELL");
RelatedBundleDataBean[] rb = getBundleAssociations();
public RelatedBundleDataBean[] getBundleCrossSells() throws ECException
public RelatedBundleDataBean[] getBundleUpSells() throws ECException
public PriceDataBean getCalculatedContractPrice() throws ECException
Note that a item entitlement check will be performed before calculating the contract price, NULL could be returned if the item is not entitled in contracts.
public PriceDataBean getCalculatedContractPrice(boolean isEntitledNeeded) throws ECException
public PriceDataBean getCalculatedPrice() throws ECException
public CommandContext getCommandContext()
public CatalogEntryDescriptionAccessBean getDescription() throws javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException, javax.ejb.FinderException
public CategorizedMonetaryAmountsDataBean getDisplayTaxes() throws ECException
public boolean getErrorMode()
public RelatedDynamicKitDataBean[] getDynamicKitAccessories() throws ECException
public RelatedDynamicKitDataBean[] getDynamicKitAssociations() throws ECException
setAssociationType("UPSELL");
RelatedDynamicKitDataBean[] rb = getDynamicKitAssociations();
public RelatedDynamicKitDataBean[] getDynamicKitCrossSells() throws ECException
public RelatedDynamicKitDataBean[] getDynamicKitUpSells() throws ECException
public RelatedItemDataBean[] getItemAccessories() throws ECException
public RelatedItemDataBean[] getItemAssociations() throws ECException
setAssociationType("UPSELL");
RelatedItemDataBean[] rb = getItemAssociations();
public RelatedItemDataBean[] getItemCrossSells() throws ECException
public java.lang.String getItemID()
public RelatedItemDataBean[] getItemUpSells() throws ECException
public PriceDataBean getListPrice() throws ECException, javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public java.lang.String getObjectPath() throws ECException
public RelatedPackageDataBean[] getPackageAccessories() throws ECException
public RelatedPackageDataBean[] getPackageAssociations() throws ECException
setAssociationType("UPSELL");
RelatedPackageDataBean[] rp = getPackageAssociations();
public RelatedPackageDataBean[] getPackageCrossSells() throws ECException
public RelatedPackageDataBean[] getPackageUpSells() throws ECException
public java.lang.String getPartNumber()
public RelatedProductDataBean[] getProductAccessories() throws ECException
public RelatedProductDataBean[] getProductAssociations() throws ECException
setAssociationType("UPSELL");
RelatedProductDataBean[] rb = getProductAssociations();
public RelatedProductDataBean[] getProductCrossSells() throws ECException
public RelatedProductDataBean[] getProductUpSells() throws ECException
public TypedProperty getRequestProperties()
public void populate() throws java.lang.Exception
public AttributeValueAccessBean[] getAttributeValues(java.lang.Integer anLanguageId) throws java.rmi.RemoteException, javax.ejb.CreateException, javax.ejb.FinderException, javax.naming.NamingException
Gets the attribute values for the specified item, in the specified language.
The superclass behavior is overridden to use the cache.
public RelatedItemDataBean[] getItemReplacements() throws ECException
public void setCommandContext(CommandContext aCommandContext)
public void setDescription(CatalogEntryDescriptionAccessBean aabDescription)
public void setErrorMode(boolean aErrorMode)
public void setItemID(java.lang.String astrItemId)
public void setPartNumber(java.lang.String astrItemPartNumber)
public void setAttachmentUsage(java.lang.String astrAttachmentUsage)
public void setRequestProperties(TypedProperty aParam)
public boolean isAdminMode()
public void setAdminMode(boolean aboolAdminMode)
public void setAssociationType(java.lang.String type)
public PriceDataBean getStandardPrice()
public AttributeValueDataBean[] getAttributeValueDataBeans()
public void setAttributeUsage(java.lang.String astrUsage)
public AttributeDataBean[] getAttributeDataBeans()
public AttributeDataBean[] getDescriptiveAttributeDataBeans()
public AttributeValueDataBean[] getAttributeValueDataBeansByAttributeUsage()
public AttributeValueDataBean[] getDescriptiveAttributeValueDataBeans()
public AttributeValueDataBean[] getDefiningAttributeValueDataBeans()
public ContractDataBean[] getApplicableContracts()
public java.lang.String getParentProductId()
public ProductDataBean[] getParentProductDataBeans()
public ProductDataBean getParentProductDataBean()
public boolean isCalculatedContractPriced()
public boolean isListPriced()
public boolean isMerchandisingAssociated()
public boolean isAnyMerchandisingAssociated()
public int getNumberOfApplicableContractIds() throws ECException
public AttributeAccessBean[] getDefiningAttributes() throws javax.ejb.FinderException, javax.ejb.CreateException, javax.naming.NamingException, java.rmi.RemoteException
public boolean isCheckNumberOfApplicableContractIds()
public com.ibm.commerce.catalog.util.RangePricingData[] getApplicableContractPriceRanges() throws ECException