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 Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Miscellaneous attributes for this facet group.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.Thefacets
in this facet group.The indexable type of the fields for this facet group.getId()
The context ID of the facet group.getName()
The name of the facet group.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Miscellaneous attributes for this facet group.void
setContextState
(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTracking
information to expose the context state for this object.void
Thefacets
in this facet group.void
setGroupIndexableType
(String groupIndexableType) The indexable type of the fields for this facet group.void
The context ID of the facet group.void
The name of the facet group.toString()
-
Constructor Details
-
FacetGroup
public FacetGroup()
-
-
Method Details
-
getId
The context ID of the facet group.- Returns:
- the context ID of the facet group
-
getName
The name of the facet group. -
getGroupIndexableType
The indexable type of the fields for this facet group. -
getFacets
Thefacets
in this facet group. -
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 ofTracking
information to expose the context state for this object.- Specified by:
getContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Returns:
- a subset of
Tracking
information to expose the context state for this object
-
setId
The context ID of the facet group.- Parameters:
id
- the context ID of the facet group
-
setName
The name of the facet group. -
setGroupIndexableType
The indexable type of the fields for this facet group. -
setFacets
Thefacets
in this facet group. -
setAttributes
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 ofTracking
information to expose the context state for this object.- Specified by:
setContextState
in interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware
- Parameters:
contextState
- a subset ofTracking
information to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-