|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.broadleafcommerce.core.offer.domain.OfferImpl
@Entity public class OfferImpl
| Field Summary | |
|---|---|
protected java.lang.String |
appliesToCustomerRules
Deprecated. |
protected java.lang.String |
appliesToOrderRules
Deprecated. |
protected boolean |
applyDiscountToMarkedItems
Deprecated. |
protected boolean |
applyToSalePrice
|
protected boolean |
combinableWithOtherOffers
|
protected java.lang.String |
deliveryType
|
protected java.lang.String |
description
|
protected java.lang.String |
discountType
|
protected java.util.Date |
endDate
|
protected java.lang.Long |
id
|
protected int |
maxUses
|
protected java.lang.String |
name
|
protected java.lang.String |
offerItemQualifierRuleType
|
protected java.lang.String |
offerItemTargetRuleType
|
protected int |
priority
|
protected java.util.Set<OfferItemCriteria> |
qualifyingItemCriteria
|
static long |
serialVersionUID
|
protected boolean |
stackable
|
protected java.util.Date |
startDate
|
protected OfferItemCriteria |
targetItemCriteria
|
protected java.lang.String |
targetSystem
|
protected java.lang.Boolean |
totalitarianOffer
|
protected java.lang.Boolean |
treatAsNewFormat
|
protected java.lang.String |
type
|
protected int |
uses
Deprecated. |
protected java.math.BigDecimal |
value
|
| Constructor Summary | |
|---|---|
OfferImpl()
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getAppliesToCustomerRules()
Deprecated. |
java.lang.String |
getAppliesToOrderRules()
Deprecated. |
boolean |
getApplyDiscountToMarkedItems()
Deprecated. |
boolean |
getApplyDiscountToSalePrice()
|
boolean |
getCombinableWithOtherOffers()
|
OfferDeliveryType |
getDeliveryType()
|
java.lang.String |
getDescription()
|
OfferDiscountType |
getDiscountType()
|
java.util.Date |
getEndDate()
|
java.lang.Long |
getId()
|
int |
getMaxUses()
|
java.lang.String |
getName()
|
OfferItemRestrictionRuleType |
getOfferItemQualifierRuleType()
|
OfferItemRestrictionRuleType |
getOfferItemTargetRuleType()
|
java.util.Map<java.lang.String,OfferRule> |
getOfferMatchRules()
|
int |
getPriority()
|
java.util.Set<OfferItemCriteria> |
getQualifyingItemCriteria()
|
boolean |
getStackable()
|
java.util.Date |
getStartDate()
|
OfferItemCriteria |
getTargetItemCriteria()
|
java.lang.String |
getTargetSystem()
|
java.lang.Boolean |
getTreatAsNewFormat()
|
OfferType |
getType()
|
int |
getUses()
Deprecated. |
java.math.BigDecimal |
getValue()
|
int |
hashCode()
|
boolean |
isApplyDiscountToMarkedItems()
Deprecated. |
boolean |
isCombinableWithOtherOffers()
Returns true if this offer can be combined with other offers in the order. |
boolean |
isStackable()
Returns true if this offer can be stacked on top of another offer. |
java.lang.Boolean |
isTotalitarianOffer()
|
void |
setAppliesToCustomerRules(java.lang.String appliesToCustomerRules)
Deprecated. |
void |
setAppliesToOrderRules(java.lang.String appliesToOrderRules)
Deprecated. |
void |
setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
Deprecated. |
void |
setApplyDiscountToSalePrice(boolean applyToSalePrice)
|
void |
setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
Sets the combinableWithOtherOffers value for this offer. |
void |
setDeliveryType(OfferDeliveryType deliveryType)
|
void |
setDescription(java.lang.String description)
|
void |
setDiscountType(OfferDiscountType discountType)
|
void |
setEndDate(java.util.Date endDate)
|
void |
setId(java.lang.Long id)
|
void |
setMaxUses(int maxUses)
|
void |
setName(java.lang.String name)
|
void |
setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
|
void |
setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
|
void |
setOfferMatchRules(java.util.Map<java.lang.String,OfferRule> offerMatchRules)
|
void |
setPriority(int priority)
|
void |
setQualifyingItemCriteria(java.util.Set<OfferItemCriteria> qualifyingItemCriteria)
|
void |
setStackable(boolean stackable)
Sets the stackable value for this offer. |
void |
setStartDate(java.util.Date startDate)
|
void |
setTargetItemCriteria(OfferItemCriteria targetItemCriteria)
|
void |
setTargetSystem(java.lang.String targetSystem)
|
void |
setTotalitarianOffer(java.lang.Boolean totalitarianOffer)
|
void |
setTreatAsNewFormat(java.lang.Boolean treatAsNewFormat)
|
void |
setType(OfferType type)
|
void |
setUses(int uses)
Deprecated. |
void |
setValue(java.math.BigDecimal value)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final long serialVersionUID
protected java.lang.Long id
protected java.lang.String name
protected java.lang.String description
protected java.lang.String type
protected java.lang.String discountType
protected java.math.BigDecimal value
protected int priority
protected java.util.Date startDate
protected java.util.Date endDate
protected boolean stackable
protected java.lang.String targetSystem
protected boolean applyToSalePrice
@Deprecated protected java.lang.String appliesToOrderRules
@Deprecated protected java.lang.String appliesToCustomerRules
@Deprecated protected boolean applyDiscountToMarkedItems
protected boolean combinableWithOtherOffers
protected java.lang.String deliveryType
protected int maxUses
@Deprecated protected int uses
protected java.lang.String offerItemQualifierRuleType
protected java.lang.String offerItemTargetRuleType
protected java.util.Set<OfferItemCriteria> qualifyingItemCriteria
protected OfferItemCriteria targetItemCriteria
protected java.lang.Boolean totalitarianOffer
protected java.lang.Boolean treatAsNewFormat
| Constructor Detail |
|---|
public OfferImpl()
| Method Detail |
|---|
public java.lang.Long getId()
getId in interface Offerpublic void setId(java.lang.Long id)
setId in interface Offerpublic java.lang.String getName()
getName in interface Offerpublic void setName(java.lang.String name)
setName in interface Offerpublic java.lang.String getDescription()
getDescription in interface Offerpublic void setDescription(java.lang.String description)
setDescription in interface Offerpublic OfferType getType()
getType in interface Offerpublic void setType(OfferType type)
setType in interface Offerpublic OfferDiscountType getDiscountType()
getDiscountType in interface Offerpublic void setDiscountType(OfferDiscountType discountType)
setDiscountType in interface Offerpublic OfferItemRestrictionRuleType getOfferItemQualifierRuleType()
getOfferItemQualifierRuleType in interface Offerpublic void setOfferItemQualifierRuleType(OfferItemRestrictionRuleType restrictionRuleType)
setOfferItemQualifierRuleType in interface Offerpublic OfferItemRestrictionRuleType getOfferItemTargetRuleType()
getOfferItemTargetRuleType in interface Offerpublic void setOfferItemTargetRuleType(OfferItemRestrictionRuleType restrictionRuleType)
setOfferItemTargetRuleType in interface Offerpublic java.math.BigDecimal getValue()
getValue in interface Offerpublic void setValue(java.math.BigDecimal value)
setValue in interface Offerpublic int getPriority()
getPriority in interface Offerpublic void setPriority(int priority)
setPriority in interface Offerpublic java.util.Date getStartDate()
getStartDate in interface Offerpublic void setStartDate(java.util.Date startDate)
setStartDate in interface Offerpublic java.util.Date getEndDate()
getEndDate in interface Offerpublic void setEndDate(java.util.Date endDate)
setEndDate in interface Offerpublic boolean isStackable()
isStackable in interface Offerpublic void setStackable(boolean stackable)
setStackable in interface Offerstackable - public boolean getStackable()
public java.lang.String getTargetSystem()
getTargetSystem in interface Offerpublic void setTargetSystem(java.lang.String targetSystem)
setTargetSystem in interface Offerpublic boolean getApplyDiscountToSalePrice()
getApplyDiscountToSalePrice in interface Offerpublic void setApplyDiscountToSalePrice(boolean applyToSalePrice)
setApplyDiscountToSalePrice in interface Offer@Deprecated public java.lang.String getAppliesToOrderRules()
getAppliesToOrderRules in interface Offer@Deprecated public void setAppliesToOrderRules(java.lang.String appliesToOrderRules)
setAppliesToOrderRules in interface Offer@Deprecated public java.lang.String getAppliesToCustomerRules()
getAppliesToCustomerRules in interface Offer@Deprecated public void setAppliesToCustomerRules(java.lang.String appliesToCustomerRules)
setAppliesToCustomerRules in interface Offer@Deprecated public boolean isApplyDiscountToMarkedItems()
isApplyDiscountToMarkedItems in interface Offer@Deprecated public boolean getApplyDiscountToMarkedItems()
@Deprecated public void setApplyDiscountToMarkedItems(boolean applyDiscountToMarkedItems)
setApplyDiscountToMarkedItems in interface Offerpublic boolean isCombinableWithOtherOffers()
isCombinableWithOtherOffers in interface Offerpublic void setCombinableWithOtherOffers(boolean combinableWithOtherOffers)
setCombinableWithOtherOffers in interface OffercombinableWithOtherOffers - public boolean getCombinableWithOtherOffers()
public OfferDeliveryType getDeliveryType()
getDeliveryType in interface Offerpublic void setDeliveryType(OfferDeliveryType deliveryType)
setDeliveryType in interface Offerpublic int getMaxUses()
getMaxUses in interface Offerpublic void setMaxUses(int maxUses)
setMaxUses in interface Offer@Deprecated public int getUses()
getUses in interface Offer@Deprecated public void setUses(int uses)
setUses in interface Offerpublic java.util.Set<OfferItemCriteria> getQualifyingItemCriteria()
getQualifyingItemCriteria in interface Offerpublic void setQualifyingItemCriteria(java.util.Set<OfferItemCriteria> qualifyingItemCriteria)
setQualifyingItemCriteria in interface Offerpublic OfferItemCriteria getTargetItemCriteria()
getTargetItemCriteria in interface Offerpublic void setTargetItemCriteria(OfferItemCriteria targetItemCriteria)
setTargetItemCriteria in interface Offerpublic java.lang.Boolean isTotalitarianOffer()
isTotalitarianOffer in interface Offerpublic void setTotalitarianOffer(java.lang.Boolean totalitarianOffer)
setTotalitarianOffer in interface Offerpublic java.util.Map<java.lang.String,OfferRule> getOfferMatchRules()
getOfferMatchRules in interface Offerpublic void setOfferMatchRules(java.util.Map<java.lang.String,OfferRule> offerMatchRules)
setOfferMatchRules in interface Offerpublic java.lang.Boolean getTreatAsNewFormat()
getTreatAsNewFormat in interface Offerpublic void setTreatAsNewFormat(java.lang.Boolean treatAsNewFormat)
setTreatAsNewFormat in interface Offerpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||