All Superinterfaces:
BusinessObject, Cloneable, Comparable<SimpleItem>, MessageListHolder, Serializable
All Known Subinterfaces:
CPQItem, Item, ItemBase
All Known Implementing Classes:
CPQItemSalesDoc, ItemBaseImpl, ItemSalesDoc, SimpleItemImpl

public interface SimpleItem extends BusinessObject, Cloneable, Comparable<SimpleItem>
this interface defines the most common attributes of an item (e.g. product, quantity, ...).
  • Method Details

    • getProductId

      String getProductId()
      Returns the product (name) of this item.
      Returns:
      product name
    • getProductGuid

      TechKey getProductGuid()
      Returns the id / TechKey / GUID of the product.
      Returns:
      TechKey / GUID of this product
    • setProductId

      void setProductId(String productId)
      Sets the product for this item.
      Parameters:
      productId - product name
    • setProductGuid

      void setProductGuid(TechKey productGuid)
      Sets the product guid for this item.
      Parameters:
      productGuid - TechKey/guid of the product
    • isProductChanged

      boolean isProductChanged()
      If product of the item changes (e.g. was a notebook and is now a monitor), we reuse the item but we need to know whether the product changed
      Returns:
      true if product was changed
    • setProductChanged

      void setProductChanged(boolean productChanged)
      If product of the item changes (e.g. was a notebook and is now a monitor), we reuse the item but we need to know whether the product changed
      Parameters:
      productChanged - if true, we conside the item to be changted
    • setParentId

      void setParentId(TechKey parentId)
      Sets parent Id for an item. For example for the sub item, free good item.
      Parameters:
      parentId - TechKey or null/TechKey.EMPTY_KEY
    • getParentId

      TechKey getParentId()
      Returns the TechKey (guid) of the parent item if this item is a sub item.
      If there is no parent item, null or TechKey.EMPTY_KEY is returned.
      Returns:
      TechKey of the parent item
    • getDescription

      String getDescription()
      Get descriptions on the item level.
      Returns:
      description
    • getQuantity

      BigDecimal getQuantity()
      Returns the quantity of this item.
      Returns:
      quantity
    • getLastQuantity

      BigDecimal getLastQuantity()
      Returns the quantity of this item.
      Returns:
      quantity
    • getUnit

      String getUnit()
      Returns the UOM (Unit of Measure) of this item.
      This unit is not localised, e.g. ST
      Returns:
      UOM
    • setDescription

      void setDescription(String description)
      Sets Description.
      Parameters:
      description - item description
    • setQuantity

      void setQuantity(BigDecimal quantity)
      Sets an item quantity.
      Parameters:
      quantity - value to set
    • setUnit

      void setUnit(String unit)
      Set the unit (UOM) for this item.
      The value is not localised, e.g. ST
      Parameters:
      unit - UOM
    • getNumberInt

      int getNumberInt()
      Return the position number of this item.
      The position is determined in the back end.
      Returns:
      numberInt/position
    • setNumberInt

      void setNumberInt(int numberInt)
      Sets the numberInt/position of the item.
      The position is determined in the back end and set to the item. It cannot be changed.
      Parameters:
      numberInt - position
    • getTypedExtensionMap

      Map<String,Object> getTypedExtensionMap()
      Type safe getter for the extension map
      Returns:
      extension map attached to this item