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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes for this sort group.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation 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 optionsin this sort group.inthashCode()voidsetAttributes(Map<String, Object> attributes) Miscellaneous attributes for this sort group.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetGroupIndexableType(String groupIndexableType) The indexable type of the fields for this facet group.voidThe context ID of the sort group.voidThe name of the sort group.voidsetSortOptions(Set<SortOption> sortOptions) Thesort optionsin 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 optionsin 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 ofTrackinginformation to expose the context state for this object.- Specified by:
getContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Returns:
- a subset of
Trackinginformation 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 optionsin 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 ofTrackinginformation to expose the context state for this object.- Specified by:
setContextStatein interfacecom.broadleafcommerce.data.tracking.core.ContextStateAware- Parameters:
contextState- a subset ofTrackinginformation to expose the context state for this object
-
equals
-
canEqual
-
hashCode
public int hashCode() -
toString
-