@Entity public class GlobalBoostRuleImpl extends Object implements GlobalBoostRule, GlobalBoostRuleAdminPresentation
| Modifier and Type | Class and Description |
|---|---|
static class |
GlobalBoostRuleImpl.Presentation |
GlobalBoostRuleAdminPresentation.GroupName, GlobalBoostRuleAdminPresentation.GroupOrder, GlobalBoostRuleAdminPresentation.TabName, GlobalBoostRuleAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected Date |
activeEndDate
The active end date.
|
protected Date |
activeStartDate
The active start date.
|
protected Boolean |
applyToCategory |
protected BigDecimal |
boost |
protected Boolean |
descending |
protected Long |
id |
protected org.broadleafcommerce.core.search.domain.IndexFieldType |
indexFieldType |
protected String |
matchValue |
protected BigDecimal |
minimumScore |
protected String |
name |
protected String |
searchTermQualifierRegex |
protected String |
type |
| Constructor and Description |
|---|
GlobalBoostRuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends GlobalBoostRule> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) |
Date |
getActiveEndDate() |
Date |
getActiveStartDate() |
Boolean |
getApplyToCategory() |
BigDecimal |
getBoost() |
Boolean |
getDescending()
This flag decides whether or not a RELATIVE/ORDINAL BoostRule boosts results by highest or lowest value
Only set for BoostRuleType.RELATIVE/ORDINAL
|
Long |
getId() |
org.broadleafcommerce.core.search.domain.IndexFieldType |
getIndexFieldType() |
String |
getMatchValue()
This value is used by MATCHING_VALUE BoostRule to get the matching value for this SearchFieldType in the boost query.
|
BigDecimal |
getMinimumScore()
This returns the minimum possible score for this boost rule.
|
String |
getName()
This returns the name that describes this rule.
|
String |
getSearchTermQualifierRegex() |
BoostRuleType |
getType()
This determines how we apply this BoostRule.
|
boolean |
isActive() |
void |
setActiveEndDate(Date activeEndDate) |
void |
setActiveStartDate(Date activeStartDate) |
void |
setApplyToCategory(Boolean applyToCategory) |
void |
setBoost(BigDecimal boost) |
void |
setDescending(Boolean descending) |
void |
setId(Long id) |
void |
setIndexFieldType(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType) |
void |
setMatchValue(String matchValue) |
void |
setMinimumScore(BigDecimal minimumScore) |
void |
setName(String name) |
void |
setSearchTermQualifierRegex(String searchTermQualifierRegex) |
void |
setType(BoostRuleType type) |
protected Long id
protected String name
protected org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType
protected Date activeStartDate
protected Date activeEndDate
protected String type
protected BigDecimal boost
protected BigDecimal minimumScore
protected Boolean descending
protected String matchValue
protected Boolean applyToCategory
protected String searchTermQualifierRegex
public BigDecimal getBoost()
public void setBoost(BigDecimal boost)
public BigDecimal getMinimumScore()
BoostRulegetMinimumScore in interface BoostRulepublic void setMinimumScore(BigDecimal minimumScore)
setMinimumScore in interface BoostRulepublic String getName()
BoostRulepublic org.broadleafcommerce.core.search.domain.IndexFieldType getIndexFieldType()
getIndexFieldType in interface BoostRulepublic void setIndexFieldType(org.broadleafcommerce.core.search.domain.IndexFieldType indexFieldType)
setIndexFieldType in interface BoostRulepublic BoostRuleType getType()
BoostRulepublic void setType(BoostRuleType type)
public String getMatchValue()
BoostRulegetMatchValue in interface BoostRulepublic void setMatchValue(String matchValue)
setMatchValue in interface BoostRulepublic Boolean getDescending()
BoostRulegetDescending in interface BoostRulepublic void setDescending(Boolean descending)
setDescending in interface BoostRulepublic void setApplyToCategory(Boolean applyToCategory)
setApplyToCategory in interface GlobalBoostRulepublic Boolean getApplyToCategory()
getApplyToCategory in interface GlobalBoostRulepublic Date getActiveStartDate()
getActiveStartDate in interface BoostRulepublic void setActiveStartDate(Date activeStartDate)
setActiveStartDate in interface BoostRulepublic Date getActiveEndDate()
getActiveEndDate in interface BoostRulepublic void setActiveEndDate(Date activeEndDate)
setActiveEndDate in interface BoostRulepublic String getSearchTermQualifierRegex()
getSearchTermQualifierRegex in interface BoostRulepublic void setSearchTermQualifierRegex(String searchTermQualifierRegex)
setSearchTermQualifierRegex in interface BoostRulepublic <G extends GlobalBoostRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext multiTenantCopyContext) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<GlobalBoostRule>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.