org.broadleafcommerce.core.offer.service.type
Class OfferItemRestrictionRuleType

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

public class OfferItemRestrictionRuleType
extends Object
implements Serializable, 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:
Serialized Form

Field Summary
static OfferItemRestrictionRuleType NONE
           
static OfferItemRestrictionRuleType QUALIFIER
           
static OfferItemRestrictionRuleType QUALIFIER_TARGET
           
static OfferItemRestrictionRuleType TARGET
           
 
Constructor Summary
OfferItemRestrictionRuleType()
           
OfferItemRestrictionRuleType(String type, String friendlyType)
           
 
Method Summary
 boolean equals(Object obj)
           
 String getFriendlyType()
           
static OfferItemRestrictionRuleType getInstance(String type)
           
 String getType()
           
 int hashCode()
           
 void setType(String type)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NONE

public static final OfferItemRestrictionRuleType NONE

QUALIFIER

public static final OfferItemRestrictionRuleType QUALIFIER

TARGET

public static final OfferItemRestrictionRuleType TARGET

QUALIFIER_TARGET

public static final OfferItemRestrictionRuleType QUALIFIER_TARGET
Constructor Detail

OfferItemRestrictionRuleType

public OfferItemRestrictionRuleType()

OfferItemRestrictionRuleType

public OfferItemRestrictionRuleType(String type,
                                    String friendlyType)
Method Detail

getInstance

public static OfferItemRestrictionRuleType getInstance(String type)

setType

public void setType(String type)

getType

public String getType()
Specified by:
getType in interface BroadleafEnumerationType

getFriendlyType

public String getFriendlyType()
Specified by:
getFriendlyType in interface BroadleafEnumerationType

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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


Copyright © 2012. All Rights Reserved.