Class OfferItemRestrictionRuleType

java.lang.Object
org.broadleafcommerce.core.offer.service.type.OfferItemRestrictionRuleType
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

public class OfferItemRestrictionRuleType extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
An extendible enumeration of offer item restriction types. Determines how items in the order can be used across multiple promotions

NONE - Cannot be used in more than one promotion QUALIFIER - Can be used as a qualifier for multiple promotions, but cannot be a target for multiple promotions TARGET - Can be used as a target for multiple promotions, but cannot be used as a qualifier for multiple promotions QUALIFIER_TARGET - Can be used as a qualifier and target in multiple promotions

See Also:
  • Field Details

  • Constructor Details

    • OfferItemRestrictionRuleType

      public OfferItemRestrictionRuleType()
    • OfferItemRestrictionRuleType

      public OfferItemRestrictionRuleType(String type, String friendlyType)
  • Method Details

    • getInstance

      public static OfferItemRestrictionRuleType getInstance(String type)
    • getType

      public String getType()
      Specified by:
      getType in interface org.broadleafcommerce.common.BroadleafEnumerationType
    • setType

      public void setType(String type)
    • getFriendlyType

      public String getFriendlyType()
      Specified by:
      getFriendlyType in interface org.broadleafcommerce.common.BroadleafEnumerationType
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object