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

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

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

The FixedPercentPriceLevel class represents a customer price level for which the user specifies a global increase or decrease of price by percent for all products.

See Also:
Serialized Form

Constructor Summary
FixedPercentPriceLevel()
           
FixedPercentPriceLevel(java.lang.String name)
           
 
Method Summary
 double calculateRetailItemPrice(RetailItem retailItem)
          Calculates the price of a retail item at this price level
 PriceLevelDirection getDirection()
          Sets the direction to adjust prices for customers of this price level
 java.lang.Double getPercent()
          Gets the percent to adjust prices by
 void setDirection(PriceLevelDirection direction)
          Sets the direction to adjust prices for customers of this price level
 void setPercent(java.lang.Double percent)
          Sets the percent to adjust prices by
 
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

FixedPercentPriceLevel

public FixedPercentPriceLevel()

FixedPercentPriceLevel

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

getDirection

public PriceLevelDirection getDirection()
Sets the direction to adjust prices for customers of this price level

Returns:
the direction to adjust prices for customers of this price level
See Also:
PriceLevelDirection

setDirection

public void setDirection(PriceLevelDirection direction)
Sets the direction to adjust prices for customers of this price level

Parameters:
direction - the new direction to adjust prices for customers of this level

getPercent

public java.lang.Double getPercent()
Gets the percent to adjust prices by

Returns:
the percent to adjust prices by

setPercent

public void setPercent(java.lang.Double percent)
Sets the percent to adjust prices by

Parameters:
percent - the new percent to adjust prices by

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