Class FacetGroup

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

public class FacetGroup extends Object implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Provides a way to group related Facets to easily reuse them in different contexts.
Since:
2.1.0-GA
See Also:
  • Constructor Details

    • FacetGroup

      public FacetGroup()
  • Method Details

    • getId

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

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

      public String getGroupIndexableType()
      The indexable type of the fields for this facet group.
    • getFacets

      public Set<Facet> getFacets()
      The facets in this facet group.
    • getAttributes

      public Map<String,Object> getAttributes()
      Miscellaneous attributes for this facet group.
      Returns:
      Miscellaneous attributes for this facet 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 facet group.
      Parameters:
      id - the context ID of the facet group
    • setName

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

      public void setGroupIndexableType(String groupIndexableType)
      The indexable type of the fields for this facet group.
    • setFacets

      public void setFacets(Set<Facet> facets)
      The facets in this facet group.
    • setAttributes

      public void setAttributes(Map<String,Object> attributes)
      Miscellaneous attributes for this facet group.
      Parameters:
      attributes - Miscellaneous attributes for this facet 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