Class SortGroup
java.lang.Object
com.broadleafcommerce.search.api.domain.SortGroup
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class SortGroup
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Provides a way to group related
SortOptions
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 sort group.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState
A subset ofTracking
information to expose the context state for this object.The indexable type of the fields for this facet group.getId()
The context ID of the sort group.getName()
The name of the sort group.Thesort options
in this sort group.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Miscellaneous attributes for this sort 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
setGroupIndexableType
(String groupIndexableType) The indexable type of the fields for this facet group.void
The context ID of the sort group.void
The name of the sort group.void
setSortOptions
(Set<SortOption> sortOptions) Thesort options
in this sort group.toString()
-
Constructor Details
-
SortGroup
public SortGroup()
-
-
Method Details
-
getId
The context ID of the sort group.- Returns:
- the context ID of the sort group
-
getName
The name of the sort group. -
getGroupIndexableType
The indexable type of the fields for this facet group. -
getSortOptions
Thesort options
in this sort group. -
getAttributes
Miscellaneous attributes for this sort group.- Returns:
- Miscellaneous attributes for this sort 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 sort group.- Parameters:
id
- the context ID of the sort group
-
setName
The name of the sort group. -
setGroupIndexableType
The indexable type of the fields for this facet group. -
setSortOptions
Thesort options
in this sort group. -
setAttributes
Miscellaneous attributes for this sort group.- Parameters:
attributes
- Miscellaneous attributes for this sort 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
-