Class SearchSettings
java.lang.Object
com.broadleafcommerce.search.api.domain.SearchSettings
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware,Serializable
public class SearchSettings
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Represents a group of search settings for an application or tenant to allow sharing
Facets and SortOptions between different environments. Settings are
discriminated by both the settingsContext and the SearchGroup type
Catalog they belong to. Search Group Catalogs are used to allow inheritance and overrides by
Applications of a Tenant-level default. The context indicates whether the settings are for the
admin or storefront (or some arbitrary type of context).
IMPORTANT: There should only be one Search Settings per context per Application.
- Since:
- 2.1.0-GA
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanbooleanMiscellaneous attributes for this search settings.com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextStateA subset ofTrackinginformation to expose the context state for this object.The facet groups managed on this search settings.getId()The context ID of the search settings.The relevancy rule groups managed on this search settings.The scoped context of this SearchSettings.The sort groups managed on this search settings.inthashCode()booleanWhether advanced search is enabled.voidsetAttributes(Map<String, Object> attributes) Miscellaneous attributes for this search settings.voidsetContextState(com.broadleafcommerce.data.tracking.core.filtering.business.domain.ContextState contextState) A subset ofTrackinginformation to expose the context state for this object.voidsetFacetGroups(Set<FacetGroup> facetGroups) The facet groups managed on this search settings.voidThe context ID of the search settings.voidsetRelevancyRuleGroups(Set<RelevancyRuleGroup> relevancyRuleGroups) The relevancy rule groups managed on this search settings.voidsetSearchEnabled(boolean searchEnabled) Whether advanced search is enabled.voidsetSettingsContext(String settingsContext) The scoped context of this SearchSettings.voidsetSortGroups(Set<SortGroup> sortGroups) The sort groups managed on this search settings.toString()
-
Constructor Details
-
SearchSettings
public SearchSettings()
-
-
Method Details
-
getId
The context ID of the search settings.- Returns:
- the context ID of the search settings
-
getSettingsContext
The scoped context of this SearchSettings.- See Also:
-
isSearchEnabled
public boolean isSearchEnabled()Whether advanced search is enabled. Note: This is only implemented for search settings scoped toDefaultSettingsContextType.ADMIN -
getFacetGroups
The facet groups managed on this search settings. -
getSortGroups
The sort groups managed on this search settings. -
getRelevancyRuleGroups
The relevancy rule groups managed on this search settings. -
getAttributes
Miscellaneous attributes for this search settings.- Returns:
- Miscellaneous attributes for this search settings.
-
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 search settings.- Parameters:
id- the context ID of the search settings
-
setSettingsContext
The scoped context of this SearchSettings.- See Also:
-
setSearchEnabled
public void setSearchEnabled(boolean searchEnabled) Whether advanced search is enabled. Note: This is only implemented for search settings scoped toDefaultSettingsContextType.ADMIN -
setFacetGroups
The facet groups managed on this search settings. -
setSortGroups
The sort groups managed on this search settings. -
setRelevancyRuleGroups
The relevancy rule groups managed on this search settings. -
setAttributes
Miscellaneous attributes for this search settings.- Parameters:
attributes- Miscellaneous attributes for this search settings.
-
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
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-