Class WeaveLegacyOfferUses
java.lang.Object
org.broadleafcommerce.core.offer.weave.WeaveLegacyOfferUses
- All Implemented Interfaces:
LegacyOfferUses
Provide a template class that holds interfaces, fields and methods to be optionally, dynamically introduced
into OfferImpl at runtime.
- Author:
- Jeff Fischer
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected LegacyOfferUsesImplgetEmbeddableLegacyOfferUses(boolean assign) intReturns the maximum number of times that this offer can be used in the current order.intgetUses()voidsetMaxUses(int maxUses) Sets the maximum number of times that this offer can be used in the current order.voidsetUses(int uses) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.broadleafcommerce.core.offer.weave.LegacyOfferUses
isApplyDiscountToMarkedItems, setApplyDiscountToMarkedItems
-
Field Details
-
embeddableLegacyOfferUses
-
-
Constructor Details
-
WeaveLegacyOfferUses
public WeaveLegacyOfferUses()
-
-
Method Details
-
getMaxUses
public int getMaxUses()Description copied from interface:LegacyOfferUsesReturns the maximum number of times that this offer can be used in the current order.0 indicates unlimited usage.
- Specified by:
getMaxUsesin interfaceLegacyOfferUses
-
setMaxUses
public void setMaxUses(int maxUses) Description copied from interface:LegacyOfferUsesSets the maximum number of times that this offer can be used in the current order.0 indicates unlimited usage.
- Specified by:
setMaxUsesin interfaceLegacyOfferUses
-
getUses
public int getUses()- Specified by:
getUsesin interfaceLegacyOfferUses
-
setUses
public void setUses(int uses) - Specified by:
setUsesin interfaceLegacyOfferUses
-
getEmbeddableLegacyOfferUses
-