Class RelevancyRuleGroup
java.lang.Object
com.broadleafcommerce.search.api.domain.RelevancyRuleGroup
- All Implemented Interfaces:
com.broadleafcommerce.data.tracking.core.ContextStateAware
,Serializable
public class RelevancyRuleGroup
extends Object
implements Serializable, com.broadleafcommerce.data.tracking.core.ContextStateAware
Provides a way to group related
relevancy rules
to easily reuse them in
different contexts.- Since:
- Search Service 2.2.0, Release Train 2.2.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
boolean
Miscellaneous attributes for this relevancy rule 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 relevancy rule group.getId()
The context ID of the relevancy rule group.getName()
The name of the relevancy rule group.Therelevancy rules
in this relevancy rule group.int
hashCode()
void
setAttributes
(Map<String, Object> attributes) Miscellaneous attributes for this relevancy rule 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 relevancy rule group.void
The context ID of the relevancy rule group.void
The name of the relevancy rule group.void
setRelevancyRules
(Set<RelevancyRule> relevancyRules) Therelevancy rules
in this relevancy rule group.toString()
-
Constructor Details
-
RelevancyRuleGroup
public RelevancyRuleGroup()
-
-
Method Details
-
getId
The context ID of the relevancy rule group.- Returns:
- the context ID of the relevancy rule group
-
getName
The name of the relevancy rule group. -
getGroupIndexableType
The indexable type of the fields for this relevancy rule group. -
getRelevancyRules
Therelevancy rules
in this relevancy rule group. -
getAttributes
Miscellaneous attributes for this relevancy rule group.- Returns:
- Miscellaneous attributes for this relevancy rule 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 relevancy rule group.- Parameters:
id
- the context ID of the relevancy rule group
-
setName
The name of the relevancy rule group. -
setGroupIndexableType
The indexable type of the fields for this relevancy rule group. -
setRelevancyRules
Therelevancy rules
in this relevancy rule group. -
setAttributes
Miscellaneous attributes for this relevancy rule group.- Parameters:
attributes
- Miscellaneous attributes for this relevancy rule 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
-