org.geebis.books.model.partner.pricelevel
Class PerProductPriceLevel

java.lang.Object
  extended by org.geebis.books.model.partner.pricelevel.PriceLevel
      extended by org.geebis.books.model.partner.pricelevel.PerProductPriceLevel
All Implemented Interfaces:
java.io.Serializable

@Name(value="perProductPriceLevel")
public class PerProductPriceLevel
extends PriceLevel
implements java.io.Serializable

The PerProductPriceLevel class represents a customer price level for which the user defines the prices for products individually.

See Also:
Serialized Form

Constructor Summary
PerProductPriceLevel()
           
PerProductPriceLevel(java.lang.String name)
           
 
Method Summary
 double calculateRetailItemPrice(RetailItem retailItem)
          Calculates the price of a retail item at this price level
 java.util.List<PerProductPriceLevelLine> getLines()
          Gets the lines for this price level
 void setLines(java.util.List<PerProductPriceLevelLine> lines)
          Sets the lines for this price level
 
Methods inherited from class org.geebis.books.model.partner.pricelevel.PriceLevel
getId, getName, getVersion, setId, setName, setVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PerProductPriceLevel

public PerProductPriceLevel()

PerProductPriceLevel

public PerProductPriceLevel(java.lang.String name)
Method Detail

getLines

public java.util.List<PerProductPriceLevelLine> getLines()
Gets the lines for this price level

Returns:
the lines for this price level

setLines

public void setLines(java.util.List<PerProductPriceLevelLine> lines)
Sets the lines for this price level

Parameters:
lines - the new lines for this price level

calculateRetailItemPrice

public double calculateRetailItemPrice(RetailItem retailItem)
Description copied from class: PriceLevel
Calculates the price of a retail item at this price level

Specified by:
calculateRetailItemPrice in class PriceLevel
Parameters:
retailItem - the retail item to calculate the price of
Returns:
the price of the retail item