Class RelevancyRuleGroup

java.lang.Object
com.broadleafcommerce.search.api.domain.RelevancyRuleGroup
All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware, Serializable

public class RelevancyRuleGroup extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Provides a way to group related relevancy rules to easily reuse them in different contexts.
Since:
Search Service 2.2.0, Release Train 2.2.0
See Also:
  • Constructor Details

    • RelevancyRuleGroup

      public RelevancyRuleGroup()
  • Method Details

    • getId

      public String getId()
      The context ID of the relevancy rule group.
      Returns:
      the context ID of the relevancy rule group
    • getName

      public String getName()
      The name of the relevancy rule group.
    • getGroupIndexableType

      public String getGroupIndexableType()
      The indexable type of the fields for this relevancy rule group.
    • getRelevancyRules

      public Set<RelevancyRule> getRelevancyRules()
      The relevancy rules in this relevancy rule group.
    • getAttributes

      public Map<String,Object> getAttributes()
      Miscellaneous attributes for this relevancy rule group.
      Returns:
      Miscellaneous attributes for this relevancy rule group.
    • getContextState

      public com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState getContextState()
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      getContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Returns:
      a subset of Tracking information to expose the context state for this object
    • setId

      public void setId(String id)
      The context ID of the relevancy rule group.
      Parameters:
      id - the context ID of the relevancy rule group
    • setName

      public void setName(String name)
      The name of the relevancy rule group.
    • setGroupIndexableType

      public void setGroupIndexableType(String groupIndexableType)
      The indexable type of the fields for this relevancy rule group.
    • setRelevancyRules

      public void setRelevancyRules(Set<RelevancyRule> relevancyRules)
      The relevancy rules in this relevancy rule group.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Miscellaneous attributes for this relevancy rule group.
      Parameters:
      attributes - Miscellaneous attributes for this relevancy rule group.
    • setContextState

      public void setContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState)
      A subset of Tracking information to expose the context state for this object.
      Specified by:
      setContextState in interface com.broadleafcommerce.data.tracking.core.ContextStateAware
      Parameters:
      contextState - a subset of Tracking information to expose the context state for this object
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object