public class Product extends Session
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
IBM copyright notice field
|
static java.lang.String | PROMO_ACCESSORIES
A constant used to identify Accessories association (value "Accessories").
|
static java.lang.String | PROMO_DOWNSELLS
A constant used to identify Downsells association (value "Downsells").
|
static java.lang.String | PROMO_REPLACEMENT
A constant used to identify Replacement association (value "REPLACEMENT").
|
static java.lang.String | PROMO_UPSELLS
A constant used to identify UpSell association (value "Upsells").
|
static java.lang.String | PROMO_XSELLS
A constant used to identify Cross-Sell association (value "X-Sells").
|
static java.lang.String | PROP_ASSOCIATIONS
A constant for the associations property name.
|
static java.lang.String | PROP_ATTRIBUTE
A constant for the attribute property name prefix.
|
static java.lang.String | PROP_AVAILABLE_FOR_SALE
A constant for the available for sale property name.
|
static java.lang.String | PROP_BRAND
A constant for the brand property name.
|
static java.lang.String | PROP_CAT_ENTRY_DESC_NAME
A constant for the catalog entry description property name.
|
static java.lang.String | PROP_CAT_ENTRY_ID
A constant for the catalog entry ID property name.
|
static java.lang.String | PROP_CATEGORY
A constant for the category property name.
|
static java.lang.String | PROP_CONTRACT_PRICES
A constant for the contract prices property name.
|
static java.lang.String | PROP_CURRENCY
A constant for the currency property name.
|
static java.lang.String | PROP_DESCRIPTIVE_ATTRIBUTE
A constant for the descriptive attribute property name prefix.
|
static java.lang.String | PROP_DYNAMIC_KITS
A constant for the dynamic kits property name.
|
static java.lang.String | PROP_FULL_IMAGE
A constant for the full image property name.
|
static java.lang.String | PROP_FULL_IMAGE_PATH
A constant for the full image path property name.
|
static java.lang.String | PROP_INVENTORY
A constant for the inventory property name.
|
static java.lang.String | PROP_LONG_DESCRIPTION
A constant for the short description property name.
|
static java.lang.String | PROP_MANUFACTURER
A constant for the manufacturer property name.
|
static java.lang.String | PROP_MANUFACTURER_PART_NUMBER
A constant for the manufacturer part number property name.
|
static java.lang.String | PROP_MERCHANDISE
A constant for the merchandise property name.
|
static java.lang.String | PROP_PARENT_PRODUCT
A constant for the parent product property name.
|
static java.lang.String | PROP_PRODUCT_ID
A constant for the product ID property name.
|
static java.lang.String | PROP_PRODUCT_TYPE
A constant for the product type property name.
|
static java.lang.String | PROP_QUANTITY
A constant for the quantity property name.
|
static java.lang.String | PROP_SHORT_DESCRIPTION
A constant for the short description property name.
|
static java.lang.String | PROP_SUB_PRODUCTS
A constant for the sub products property name.
|
static java.lang.String | PROP_THUMBNAIL_IMAGE
A constant for the thumbnail image property name.
|
static java.lang.String | PROP_THUMBNAIL_IMAGE_PATH
A constant for the thumbnail image path property name.
|
static java.lang.String | TYPE_BUNDLE
A constant used to identify Bundle types (value "Bundle").
|
static java.lang.String | TYPE_DYNAMIC_KIT
A constant used to identify Dynamic Kit types (value "DynamicKit").
|
static java.lang.String | TYPE_ITEM
A constant used to identify Item types (value "Item").
|
static java.lang.String | TYPE_PACKAGE
A constant used to identify Package types (value "Package").
|
static java.lang.String | TYPE_PRODUCT
A constant used to identify Product types (value "Product").
|
Constructor and Description |
---|
Product()
Default constructor for Product.
|
Modifier and Type | Method and Description |
---|---|
void | addAssociation(Association promotion)
This is a convenience method for updating the PROP_ASSOCIATIONS property.
|
void | addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
This is a convenience method for setting an PROP_ATTRIBUTE property.
|
void | addContractPrice(ContractPrice contractPrice)
This is a convenience method for updating the PROP_CONTRACT_PRICES property.
|
void | addDescriptiveAttribute(java.lang.String descriptiveAttributeName, java.lang.String descriptiveAttributeValue)
This is a convenience method for setting an PROP_DESCRIPTIVE_ATTRIBUTE property.
|
void | addDynamicKit(DynamicKitBean dynamicKit)
This is a convenience method for updating the PROP_DYNAMIC_KITS property.
|
void | addSubProduct(Product subProduct)
This is a convenience method for updating the PROP_SUB_PRODUCTS property.
|
java.util.Vector | getAssociations()
This is a convenience method for retrieving the current setting of the PROP_ASSOCIATIONS property.
|
ModelObjectList | getAssociationsModelObjectList()
This is a convenience method for retrieving the current setting of the PROP_ASSOCIATIONS property.
|
java.util.Hashtable | getAttributes()
This is a convenience method for retrieving all of the PROP_ATTRIBUTE properties.
|
java.lang.String | getBrand()
This is a convenience method for retrieving the current setting of the PROP_BRAND property.
|
java.lang.String | getCatalogEntryId()
This is a convenience method for retrieving the current setting of the PROP_CAT_ENTRY_ID property.
|
java.lang.String | getCategory()
This is a convenience method for retrieving the current setting of the PROP_CATEGORY property.
|
java.util.Vector | getContractPrices()
This is a convenience method for retrieving the current setting of the PROP_CONTRACT_PRICES property.
|
ModelObjectList | getContractPricesModelObjectList()
This is a convenience method for retrieving the current setting of the PROP_CONTRACT_PRICES property.
|
java.lang.String | getCurrency()
This is a convenience method for retrieving the current setting of the PROP_CURRENCY property.
|
ContractPrice | getDefaultContractPrice()
This is a convenience method for retrieving the default contract price from the PROP_CONTRACT_PRICES property.
|
java.lang.String[] | getDescriptiveAttributeNames()
This is a convenience method for retrieving all of the descriptive attribute names.
|
java.util.Vector | getDynamicKits()
This is a convenience method for retrieving the current setting of the PROP_DYNAMIC_KITS property.
|
ModelObjectList | getDynamicKitsModelObjectList()
This is a convenience method for retrieving the current setting of the PROP_DYNAMIC_KITS property.
|
RemoteImage | getFullImage()
This is a convenience method for retrieving the current setting of the PROP_FULL_IMAGE property.
|
java.lang.String | getFullImagePath()
This is a convenience method for retrieving the current setting of the PROP_FULL_IMAGE_PATH property.
|
java.util.Vector | getInheritedAssociations()
This is a convenience method for retrieving the current setting of the PROP_ASSOCIATIONS property.
|
ModelObjectList | getInventory()
This is a convenience method for retrieving the current setting of the PROP_INVENTORY property.
|
java.lang.String | getLongDescription()
This is a convenience method for retrieving the current setting of the PROP_LONG_DESCRIPTION property.
|
java.lang.String | getManufacturer()
This is a convenience method for retrieving the current setting of the PROP_MANUFACTURER property.
|
java.lang.String | getManufacturerPartNumber()
This is a convenience method for retrieving the current setting of the PROP_MANUFACTURER_PART_NUMBER property.
|
Product | getParentProduct()
This is a convenience method for retrieving the current setting of the PROP_PARENT_PRODUCT property.
|
java.lang.String | getProductId()
This is a convenience method for retrieving the current setting of the PROP_PRODUCT_ID property.
|
java.lang.String | getProductName()
This is a convenience method for retrieving the current setting of the PROP_CAT_ENTRY_DESC_NAME property or simply the product name.
|
java.lang.String | getProductType()
This is a convenience method for retrieving the current setting of the PROP_PRODUCT_TYPE property.
|
java.lang.String | getQuantity()
This is a convenience method for retrieving the current setting of the PROP_QUANTITY property.
|
java.lang.String | getShortDescription()
This is a convenience method for retrieving the current setting of the PROP_SHORT_DESCRIPTION property.
|
java.util.Vector | getSubProducts()
This is a convenience method for retrieving the current setting of the PROP_SUB_PRODUCTS property.
|
ModelObjectList | getSubProductsModelObjectList()
This is a convenience method for retrieving the current setting of the PROP_SUB_PRODUCTS property.
|
RemoteImage | getThumbnailImage()
This is a convenience method for retrieving the current setting of the PROP_THUMBNAIL_IMAGE property.
|
java.lang.String | getThumbnailImagePath()
This is a convenience method for retrieving the current setting of the PROP_THUMBNAIL_IMAGE_PATH property.
|
java.lang.String[] | getValuesForDescriptiveAttribute(java.lang.String descriptiveAttributeName)
This method returns an array of descriptive attribute values for the specified descriptive attribute name.
|
boolean | hasAssociations()
This method answers that, if this item has any Associations.
|
boolean | hasAttributes()
This method answers that, if this item has any defining attributes.
|
boolean | hasDynamicKits()
This method answers that, if this item has any dynamic kits.
|
boolean | hasSubProducts()
This method tells that whether this product has any sub products associated to it
|
boolean | isAvailableForSale()
This is a convenience method for retrieving the current setting of the PROP_AVAILABLE_FOR_SALE property.
|
boolean | isMerchandise()
This is a convenience method for retrieving the current setting of the PROP_MERCHANDISE property.
|
void | setAvailableForSale(boolean availableForSale)
This is a convenience method for setting the PROP_AVAILABLE_FOR_SALE property.
|
void | setBrand(java.lang.String brand)
This is a convenience method for setting the PROP_BRAND property.
|
void | setCatalogEntryId(java.lang.String catEntryId)
This is a convenience method for setting the PROP_CAT_ENTRY_ID property.
|
void | setCategory(java.lang.String category)
This is a convenience method for setting the PROP_CATEGORY property.
|
void | setCurrency(java.lang.String currency)
This is a convenience method for setting the PROP_CURRENCY property.
|
void | setFullImage(RemoteImage image)
This is a convenience method for setting the PROP_FULL_IMAGE property.
|
void | setFullImagePath(java.lang.String path)
This is a convenience method for setting the PROP_FULL_IMAGE_PATH property.
|
void | setInventory(ModelObjectList newInventory)
This is a convenience method for setting the PROP_INVENTORY property.
|
void | setLongDescription(java.lang.String longDescription)
This is a convenience method for setting the PROP_LONG_DESCRIPTION property.
|
void | setManufacturer(java.lang.String manufacturer)
This is a convenience method for setting the PROP_MANUFACTURER property.
|
void | setManufacturerPartNumber(java.lang.String manufacturerPartNumber)
This is a convenience method for setting the PROP_MANUFACTURER_PART_NUMBER property.
|
void | setMerchandise(boolean merchandise)
This is a convenience method for retrieving the current setting of the PROP_MERCHANDISE property.
|
void | setParentProduct(Product parentProduct)
This is a convenience method for retrieving the current setting of the PROP_PARENT_PRODUCT property.
|
void | setProductId(java.lang.String productId)
This is a convenience method for setting the PROP_PRODUCT_ID property.
|
void | setProductName(java.lang.String name)
This method is a convenience method for setting the PROP_CAT_ENTRY_DESC_NAME property.
|
void | setProductType(java.lang.String productType)
This is a convenience method for retrieving the current setting of the PROP_PRODUCT_TYPE property.
|
void | setQuantity(java.lang.String quantity)
This is a convenience method for setting the PROP_QUANTITY property.
|
void | setShortDescription(java.lang.String shortDescription)
This is a convenience method for setting the PROP_SHORT_DESCRIPTION property.
|
void | setThumbnailImage(RemoteImage image)
This is a convenience method for setting the PROP_THUMBNAIL_IMAGE property.
|
void | setThumbnailImagePath(java.lang.String path)
This is a convenience method for setting the PROP_THUMBNAIL_IMAGE_PATH property.
|
java.lang.String | toString()
This method returns a string representation of this product.
|
public static final java.lang.String COPYRIGHT
public static final java.lang.String TYPE_BUNDLE
public static final java.lang.String TYPE_DYNAMIC_KIT
public static final java.lang.String TYPE_ITEM
public static final java.lang.String TYPE_PACKAGE
public static final java.lang.String TYPE_PRODUCT
public static final java.lang.String PROMO_UPSELLS
public static final java.lang.String PROMO_XSELLS
public static final java.lang.String PROMO_ACCESSORIES
public static final java.lang.String PROMO_DOWNSELLS
public static final java.lang.String PROMO_REPLACEMENT
public static final java.lang.String PROP_PRODUCT_ID
The value is "productId".
The data stored under the PROP_PRODUCT_ID property is a String that contains the product's SKU ID.
public static final java.lang.String PROP_CAT_ENTRY_DESC_NAME
The value is "catEntryDescName".
The data stored under the PROP_CAT_ENTRY_DESC_NAME property is a String that contains the product's catalog entry description or simply Product Name.
public static final java.lang.String PROP_CAT_ENTRY_ID
The value is "catEntryId".
The data stored under the PROP_CAT_ENTRY_ID property is a String that contains the product's catalog entry ID.
public static final java.lang.String PROP_SHORT_DESCRIPTION
The value is "shortDescription".
The data stored under the PROP_SHORT_DESCRIPTION property is a String that contains the product's short description.
public static final java.lang.String PROP_LONG_DESCRIPTION
The value is "longDescription".
The data stored under the PROP_LONG_DESCRIPTION property is a String that contains the product's long description.
public static final java.lang.String PROP_MANUFACTURER
The value is "manufacturer".
The data stored under the PROP_MANUFACTURER property is a String that contains the product's manufacturer.
public static final java.lang.String PROP_BRAND
The value is "brand".
The data stored under the PROP_BRAND property is a String that contains the product's brand.
public static final java.lang.String PROP_CATEGORY
The value is "category".
The data stored under the PROP_CATEGORY property is a String that contains the product's category.
public static final java.lang.String PROP_MANUFACTURER_PART_NUMBER
The value is "manufacturerPartNumber".
The data stored under the PROP_MANUFACTURER_PART_NUMBER property is a String that contains the manufacturer's part number.
public static final java.lang.String PROP_CONTRACT_PRICES
The value is "contractPrices".
The data stored under the PROP_CONTRACT_PRICES property is a String that contains the prices applicable to the product.
public static final java.lang.String PROP_CURRENCY
The value is "currency".
The data stored under the PROP_CURRENCY property is a String that contains the currency.
public static final java.lang.String PROP_AVAILABLE_FOR_SALE
The value is "availableForSale".
The data stored under the PROP_AVAILABLE_FOR_SALE property is a Boolean that indicates whether this product is available for sale.
public static final java.lang.String PROP_MERCHANDISE
The value is "merchandise".
The data stored under the PROP_MERCHANDISE property is a Boolean that indicates whether there are any merchandising associations associated with this product.
public static final java.lang.String PROP_PRODUCT_TYPE
The value is "productType".
The data stored under the PROP_PRODUCT_TYPE property is a String that contains the product type. The following are valid types:
public static final java.lang.String PROP_PARENT_PRODUCT
The value is "parentProduct".
The data stored under the PROP_PARENT_PRODUCT property is a Product that represents the parent product. For example, in the case of a ProductBean it should be assigned as the parent of ItemBeans that are sub products of the ProductBean. Another example: Products that are sub products of a BundleBean should set the BundleBean as their parent.
public static final java.lang.String PROP_SUB_PRODUCTS
The value is "subProducts".
The data stored under the PROP_SUB_PRODUCTS property is a ModelObjectList that contains the list of Product objects.
public static final java.lang.String PROP_ASSOCIATIONS
The value is "associations".
The data stored under the PROP_ASSOCIATIONS property is a ModelObjectList that contains the list of Association objects.
public static final java.lang.String PROP_ATTRIBUTE
The value is "attribute.".
The data stored under property names with the PROP_ATTRIBUTE prefix is of type String. The full property name is "attribute.name", where name is the name of the attribute.
public static final java.lang.String PROP_DESCRIPTIVE_ATTRIBUTE
The value is "descriptiveAttribute.".
The data stored under property names with the PROP_DESCRIPTIVE_ATTRIBUTE prefix is of type ModelObjectList. The values in the list are of type String. The full property name is "descriptiveAttribute.name", where name is the name of the descriptive attribute.
public static final java.lang.String PROP_DYNAMIC_KITS
The value is "dynamicKits".
The data stored under the PROP_DYNAMIC_KITS property is a ModelObjectList that contains the list of DynamicKitBean objects.
public static final java.lang.String PROP_INVENTORY
The value is "inventory".
The data stored under the PROP_INVENTORY property is a ModelObjectList that contains the list of FulfillmentCenter objects.
public static final java.lang.String PROP_QUANTITY
The value is "quantity".
The data stored under the PROP_QUANTITY property is a String that contains the quantity of a product in a dynamic kit.
public static final java.lang.String PROP_FULL_IMAGE_PATH
The value is "fullImagePath".
The data stored under the PROP_FULL_IMAGE_PATH property is a String that contains the full image path for the product.
public static final java.lang.String PROP_FULL_IMAGE
The value is "fullImage".
The data stored under the PROP_FULL_IMAGE property is a RemoteImage that contains the full image for the product.
public static final java.lang.String PROP_THUMBNAIL_IMAGE_PATH
The value is "thumbnailImagePath".
The data stored under the PROP_THUMBNAIL_IMAGE_PATH property is a String that contains the thumbnail image path for the product.
public static final java.lang.String PROP_THUMBNAIL_IMAGE
The value is "thumbnailImage".
The data stored under the PROP_THUMBNAIL_IMAGE property is a RemoteImage that contains the thumbnail image for the product.
public boolean isAvailableForSale()
public java.lang.String getBrand()
public java.lang.String getCategory()
public java.lang.String getCatalogEntryId()
public java.lang.String getLongDescription()
public java.lang.String getManufacturer()
public java.lang.String getManufacturerPartNumber()
public java.lang.String getProductName()
public java.lang.String getProductId()
public java.lang.String getShortDescription()
public java.lang.String getQuantity()
public ModelObjectList getContractPricesModelObjectList()
public java.util.Vector getContractPrices()
public ContractPrice getDefaultContractPrice()
public void setAvailableForSale(boolean availableForSale)
public void setBrand(java.lang.String brand)
public void setCategory(java.lang.String category)
public void setCatalogEntryId(java.lang.String catEntryId)
public void setInventory(ModelObjectList newInventory)
public void setLongDescription(java.lang.String longDescription)
public void setManufacturer(java.lang.String manufacturer)
public void setManufacturerPartNumber(java.lang.String manufacturerPartNumber)
public void setProductId(java.lang.String productId)
public void setProductName(java.lang.String name)
public void setShortDescription(java.lang.String shortDescription)
public void setQuantity(java.lang.String quantity)
public void addContractPrice(ContractPrice contractPrice)
public boolean isMerchandise()
public java.lang.String getProductType()
public void setMerchandise(boolean merchandise)
public void setProductType(java.lang.String productType)
public void setParentProduct(Product parentProduct)
public Product getParentProduct()
public void addSubProduct(Product subProduct)
public java.util.Vector getSubProducts()
public ModelObjectList getSubProductsModelObjectList()
public ModelObjectList getInventory()
public boolean hasSubProducts()
public void addAttribute(java.lang.String attributeName, java.lang.String attributeValue)
public java.util.Hashtable getAttributes()
public boolean hasAttributes()
public void addDescriptiveAttribute(java.lang.String descriptiveAttributeName, java.lang.String descriptiveAttributeValue)
public java.lang.String[] getDescriptiveAttributeNames()
public java.lang.String[] getValuesForDescriptiveAttribute(java.lang.String descriptiveAttributeName)
public void addAssociation(Association promotion)
public java.util.Vector getAssociations()
public java.util.Vector getInheritedAssociations()
Retrieves the associations for this product along with the associations from the parent product.
public ModelObjectList getAssociationsModelObjectList()
public boolean hasAssociations()
public java.lang.String getCurrency()
public void setCurrency(java.lang.String currency)
public void addDynamicKit(DynamicKitBean dynamicKit)
public java.util.Vector getDynamicKits()
public ModelObjectList getDynamicKitsModelObjectList()
public boolean hasDynamicKits()
public java.lang.String getFullImagePath()
public RemoteImage getFullImage()
public java.lang.String getThumbnailImagePath()
public RemoteImage getThumbnailImage()
public void setFullImagePath(java.lang.String path)
public void setFullImage(RemoteImage image)
public void setThumbnailImagePath(java.lang.String path)
public void setThumbnailImage(RemoteImage image)
public java.lang.String toString()