@Entity public class CategoryBoostRuleImpl extends Object implements CategoryBoostRule, CategoryBoostRuleAdminPresentation
CategoryBoostRuleAdminPresentation.GroupName, CategoryBoostRuleAdminPresentation.GroupOrder| Modifier and Type | Field and Description |
|---|---|
protected Date |
activeEndDate
The active end date.
|
protected Date |
activeStartDate
The active start date.
|
protected BigDecimal |
boost |
protected org.broadleafcommerce.core.catalog.domain.Category |
category |
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 |
INDEX_FIELD_TYPE_CUSTOM_CRITERIA| Constructor and Description |
|---|
CategoryBoostRuleImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends CategoryBoostRule> |
createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) |
boolean |
equals(Object o) |
Date |
getActiveEndDate() |
Date |
getActiveStartDate() |
BigDecimal |
getBoost() |
org.broadleafcommerce.core.catalog.domain.Category |
getCategory() |
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.
|
int |
hashCode() |
boolean |
isActive() |
void |
setActiveEndDate(Date activeEndDate) |
void |
setActiveStartDate(Date activeStartDate) |
void |
setBoost(BigDecimal boost) |
void |
setCategory(org.broadleafcommerce.core.catalog.domain.Category category) |
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 String searchTermQualifierRegex
protected org.broadleafcommerce.core.catalog.domain.Category category
public org.broadleafcommerce.core.catalog.domain.Category getCategory()
getCategory in interface CategoryBoostRulepublic void setCategory(org.broadleafcommerce.core.catalog.domain.Category category)
setCategory in interface CategoryBoostRulepublic 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 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 CategoryBoostRule> org.broadleafcommerce.common.copy.CreateResponse<G> createOrRetrieveCopyInstance(org.broadleafcommerce.common.copy.MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface org.broadleafcommerce.common.copy.MultiTenantCloneable<CategoryBoostRule>CloneNotSupportedExceptionCopyright © 2020. All rights reserved.