org.broadleafcommerce.core.offer.service.discount.domain
Class PromotableFulfillmentGroupAdjustmentImpl

java.lang.Object
  extended by org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
      extended by org.broadleafcommerce.core.offer.service.discount.domain.PromotableFulfillmentGroupAdjustmentImpl
All Implemented Interfaces:
Serializable, OfferHolder, PromotableFulfillmentGroupAdjustment, PromotionRounding

public class PromotableFulfillmentGroupAdjustmentImpl
extends AbstractPromotionRounding
implements PromotableFulfillmentGroupAdjustment, OfferHolder

See Also:
Serialized Form

Field Summary
protected  Money adjustmentValue
           
protected  boolean appliedToSalePrice
           
protected  PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer
           
protected  PromotableFulfillmentGroup promotableFulfillmentGroup
           
protected  Money retailAdjustmentValue
           
protected  Money saleAdjustmentValue
           
 
Fields inherited from class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
roundingMode, roundingScale, roundOfferValues
 
Constructor Summary
PromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer, PromotableFulfillmentGroup fulfillmentGroup)
           
 
Method Summary
protected  Money computeAdjustmentValue(Money currentPriceDetailValue)
           
protected  void computeAdjustmentValues()
           
 void finalizeAdjustment(boolean useSalePrice)
          Updates the adjustmentValue to the sales or retail value based on the passed in param
 Money getAdjustmentValue()
          Returns the value of this adjustment
 BroadleafCurrency getCurrency()
           
 Offer getOffer()
           
 PromotableCandidateFulfillmentGroupOffer getPromotableCandidateFulfillmentGroupOffer()
          Returns the associated promotableCandidateOrderOffer
 PromotableFulfillmentGroup getPromotableFulfillmentGroup()
          Returns the associated promotableFulfillmentGroup
 Money getRetailAdjustmentValue()
          Returns the value of this adjustment
 Money getSaleAdjustmentValue()
          Returns the value of this adjustment
 boolean isAppliedToSalePrice()
           
 boolean isCombinable()
          Returns true if this adjustment represents a combinable offer.
 boolean isTotalitarian()
          Returns true if this adjustment represents a totalitarian offer.
 
Methods inherited from class org.broadleafcommerce.core.offer.service.discount.domain.AbstractPromotionRounding
getRoundingMode, getRoundingScale, isRoundOfferValues, setRoundingMode, setRoundingScale
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

promotableCandidateFulfillmentGroupOffer

protected PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer

promotableFulfillmentGroup

protected PromotableFulfillmentGroup promotableFulfillmentGroup

saleAdjustmentValue

protected Money saleAdjustmentValue

retailAdjustmentValue

protected Money retailAdjustmentValue

adjustmentValue

protected Money adjustmentValue

appliedToSalePrice

protected boolean appliedToSalePrice
Constructor Detail

PromotableFulfillmentGroupAdjustmentImpl

public PromotableFulfillmentGroupAdjustmentImpl(PromotableCandidateFulfillmentGroupOffer promotableCandidateFulfillmentGroupOffer,
                                                PromotableFulfillmentGroup fulfillmentGroup)
Method Detail

getOffer

public Offer getOffer()
Specified by:
getOffer in interface OfferHolder

computeAdjustmentValues

protected void computeAdjustmentValues()

computeAdjustmentValue

protected Money computeAdjustmentValue(Money currentPriceDetailValue)

getPromotableFulfillmentGroup

public PromotableFulfillmentGroup getPromotableFulfillmentGroup()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns the associated promotableFulfillmentGroup

Specified by:
getPromotableFulfillmentGroup in interface PromotableFulfillmentGroupAdjustment
Returns:

getPromotableCandidateFulfillmentGroupOffer

public PromotableCandidateFulfillmentGroupOffer getPromotableCandidateFulfillmentGroupOffer()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns the associated promotableCandidateOrderOffer

Specified by:
getPromotableCandidateFulfillmentGroupOffer in interface PromotableFulfillmentGroupAdjustment
Returns:

getAdjustmentValue

public Money getAdjustmentValue()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns the value of this adjustment

Specified by:
getAdjustmentValue in interface PromotableFulfillmentGroupAdjustment
Returns:

getCurrency

public BroadleafCurrency getCurrency()
Specified by:
getCurrency in interface OfferHolder

isCombinable

public boolean isCombinable()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns true if this adjustment represents a combinable offer.

Specified by:
isCombinable in interface PromotableFulfillmentGroupAdjustment

isTotalitarian

public boolean isTotalitarian()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns true if this adjustment represents a totalitarian offer.

Specified by:
isTotalitarian in interface PromotableFulfillmentGroupAdjustment

getSaleAdjustmentValue

public Money getSaleAdjustmentValue()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns the value of this adjustment

Specified by:
getSaleAdjustmentValue in interface PromotableFulfillmentGroupAdjustment
Returns:

getRetailAdjustmentValue

public Money getRetailAdjustmentValue()
Description copied from interface: PromotableFulfillmentGroupAdjustment
Returns the value of this adjustment

Specified by:
getRetailAdjustmentValue in interface PromotableFulfillmentGroupAdjustment
Returns:

isAppliedToSalePrice

public boolean isAppliedToSalePrice()
Specified by:
isAppliedToSalePrice in interface PromotableFulfillmentGroupAdjustment

finalizeAdjustment

public void finalizeAdjustment(boolean useSalePrice)
Description copied from interface: PromotableFulfillmentGroupAdjustment
Updates the adjustmentValue to the sales or retail value based on the passed in param

Specified by:
finalizeAdjustment in interface PromotableFulfillmentGroupAdjustment


Copyright © 2013. All Rights Reserved.