Class StructuredContentRuleType

java.lang.Object
org.broadleafcommerce.cms.structure.service.type.StructuredContentRuleType
All Implemented Interfaces:
Serializable, org.broadleafcommerce.common.BroadleafEnumerationType

public class StructuredContentRuleType extends Object implements Serializable, org.broadleafcommerce.common.BroadleafEnumerationType
An extendible enumeration of offer rule types.
REQUEST - indicates a rule based on the incoming http request.
TIME - indicates a rule based on time
PRODUCT - indicates a rule based on product CUSTOMER - indicates a rule based on org.broadleafcommerce.profile.core.domain
See Also:
  • Field Details

  • Constructor Details

    • StructuredContentRuleType

      public StructuredContentRuleType()
    • StructuredContentRuleType

      public StructuredContentRuleType(String type, String friendlyType)
      Initialize the type and friendlyType
      Type Parameters:
      code - type
      code - friendlyType
  • Method Details

    • getInstance

      public static StructuredContentRuleType getInstance(String type)
      Allows translation from the passed in String to a StructuredContentRuleType
      Parameters:
      type -
      Returns:
      The matching rule type
    • getType

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

      public void setType(String type)
      Sets the type
      Parameters:
      type -
    • getFriendlyType

      public String getFriendlyType()
      Gets the name of the type
      Specified by:
      getFriendlyType in interface org.broadleafcommerce.common.BroadleafEnumerationType
      Returns:
    • hashCode

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

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