Class WeaveLegacyOfferUses

java.lang.Object
org.broadleafcommerce.core.offer.weave.WeaveLegacyOfferUses
All Implemented Interfaces:
LegacyOfferUses

public abstract class WeaveLegacyOfferUses extends Object implements 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 Details

  • Constructor Details

    • WeaveLegacyOfferUses

      public WeaveLegacyOfferUses()
  • Method Details

    • getMaxUses

      public int getMaxUses()
      Description copied from interface: LegacyOfferUses
      Returns the maximum number of times that this offer can be used in the current order.

      0 indicates unlimited usage.

      Specified by:
      getMaxUses in interface LegacyOfferUses
    • setMaxUses

      public void setMaxUses(int maxUses)
      Description copied from interface: LegacyOfferUses
      Sets the maximum number of times that this offer can be used in the current order.

      0 indicates unlimited usage.

      Specified by:
      setMaxUses in interface LegacyOfferUses
    • getUses

      public int getUses()
      Specified by:
      getUses in interface LegacyOfferUses
    • setUses

      public void setUses(int uses)
      Specified by:
      setUses in interface LegacyOfferUses
    • getEmbeddableLegacyOfferUses

      protected LegacyOfferUsesImpl getEmbeddableLegacyOfferUses(boolean assign)