@Entity public class SearchFacetImpl extends Object implements SearchFacet, Serializable, AdminMainEntity, SearchFacetAdminPresentation
SearchFacetAdminPresentation.GroupName, SearchFacetAdminPresentation.GroupOrder, SearchFacetAdminPresentation.TabName, SearchFacetAdminPresentation.TabOrder| Modifier and Type | Field and Description |
|---|---|
protected Boolean |
canMultiselect |
protected IndexFieldType |
fieldType |
protected Long |
id |
protected String |
label |
protected String |
name |
protected List<RequiredFacet> |
requiredFacets |
protected Boolean |
requiresAllDependentFacets |
protected Integer |
searchDisplayPriority |
protected List<SearchFacetRange> |
searchFacetRanges |
protected Boolean |
showOnSearch |
protected Boolean |
useFacetRanges |
MAIN_ENTITY_NAME_PROPERTY| Constructor and Description |
|---|
SearchFacetImpl() |
| Modifier and Type | Method and Description |
|---|---|
<G extends SearchFacet> |
createOrRetrieveCopyInstance(MultiTenantCopyContext context) |
boolean |
equals(Object obj) |
Boolean |
getCanMultiselect()
Gets whether or not you can multiselect values for this Facet
|
String |
getFacetFieldType()
This String represents the FieldType for the given SearchFacet.
|
Field |
getField()
Returns the field associated with this facet.
|
IndexFieldType |
getFieldType()
The main relationship to the rest of the search index entities
|
Long |
getId()
Returns the internal id
|
String |
getLabel()
Gets the label of this SearchFacet.
|
String |
getMainEntityName() |
String |
getName()
Gets the name of this SearchFacet.
|
List<RequiredFacet> |
getRequiredFacets() |
Boolean |
getRequiresAllDependentFacets()
This boolean controls whether or not this particular facet requires one of the dependent facets to be active, or if
it requires all of the dependent facets to be active.
|
Integer |
getSearchDisplayPriority()
Gets the display priority of this SearchFacet on search result pages
|
List<SearchFacetRange> |
getSearchFacetRanges()
Gets the applicable ranges for this search facet, if any are specified.
|
Boolean |
getShowOnSearch()
Gets a boolean that specifies whether or not this SearchFacet should be displayed on search
result pages in addition to category pages
|
Boolean |
getUseFacetRanges()
Gets whether or not this facet uses facet ranges
|
int |
hashCode() |
void |
setCanMultiselect(Boolean canMultiselect)
Sets whether or not you can multiselect values for this Facet.
|
void |
setFieldType(IndexFieldType fieldType) |
void |
setId(Long id)
Sets the internal id
|
void |
setLabel(String label)
Sets the label
|
void |
setName(String name)
Sets the name
|
void |
setRequiredFacets(List<RequiredFacet> requiredFacets)
Sets the list of facets which this facet depends on.
|
void |
setRequiresAllDependentFacets(Boolean requiresAllDependentFacets)
Sets whether or not all dependent facets must be active, or if only one is necessary
|
void |
setSearchDisplayPriority(Integer searchDisplayPriority)
Sets the display priority on search result pages
|
void |
setSearchFacetRanges(List<SearchFacetRange> searchFacetRanges)
Sets the SearchFacetRanges
Note: This method will set ALL search facet ranges
|
void |
setShowOnSearch(Boolean showOnSearch)
Sets showOnSearch
|
void |
setUseFacetRanges(Boolean useFacetRanges)
Sets useFacetRanges
|
protected Long id
protected String name
protected String label
protected IndexFieldType fieldType
protected Boolean showOnSearch
protected Boolean useFacetRanges
protected Integer searchDisplayPriority
protected Boolean canMultiselect
protected List<SearchFacetRange> searchFacetRanges
protected List<RequiredFacet> requiredFacets
protected Boolean requiresAllDependentFacets
public Long getId()
SearchFacetgetId in interface SearchFacetpublic void setId(Long id)
SearchFacetsetId in interface SearchFacetpublic IndexFieldType getFieldType()
SearchFacetgetFieldType in interface SearchFacet#getField()},
#getFacetFieldType()}public void setFieldType(IndexFieldType fieldType)
setFieldType in interface SearchFacetpublic Field getField()
SearchFacetReturns the field associated with this facet.
This is a convenience method for
getFieldType().getIndexField().getField()getField in interface SearchFacetpublic String getFacetFieldType()
SearchFacetThis String represents the FieldType for the given SearchFacet. This is the FieldType that will be used when this Field is indexed in Solr
This is a convience method for
getFieldType().getFieldType().getType()getFacetFieldType in interface SearchFacetpublic String getName()
SearchFacetgetName in interface SearchFacetpublic void setName(String name)
SearchFacetsetName in interface SearchFacetSearchFacet.getName()public String getLabel()
SearchFacetgetLabel in interface SearchFacetpublic void setLabel(String label)
SearchFacetsetLabel in interface SearchFacetSearchFacet.getLabel()public Boolean getShowOnSearch()
SearchFacetgetShowOnSearch in interface SearchFacetpublic void setShowOnSearch(Boolean showOnSearch)
SearchFacetsetShowOnSearch in interface SearchFacetSearchFacet.getShowOnSearch()public Integer getSearchDisplayPriority()
SearchFacetgetSearchDisplayPriority in interface SearchFacetpublic void setSearchDisplayPriority(Integer searchDisplayPriority)
SearchFacetsetSearchDisplayPriority in interface SearchFacetpublic Boolean getCanMultiselect()
SearchFacetgetCanMultiselect in interface SearchFacetpublic void setCanMultiselect(Boolean canMultiselect)
SearchFacetsetCanMultiselect in interface SearchFacetpublic Boolean getUseFacetRanges()
SearchFacetgetUseFacetRanges in interface SearchFacetpublic void setUseFacetRanges(Boolean useFacetRanges)
SearchFacetsetUseFacetRanges in interface SearchFacetSearchFacet.getUseFacetRanges()public List<RequiredFacet> getRequiredFacets()
getRequiredFacets in interface SearchFacetSearchFacet.getRequiresAllDependentFacets()public void setRequiredFacets(List<RequiredFacet> requiredFacets)
SearchFacetsetRequiredFacets in interface SearchFacetpublic Boolean getRequiresAllDependentFacets()
SearchFacetgetRequiresAllDependentFacets in interface SearchFacetSearchFacet.getRequiredFacets()public void setRequiresAllDependentFacets(Boolean requiresAllDependentFacets)
SearchFacetsetRequiresAllDependentFacets in interface SearchFacetpublic List<SearchFacetRange> getSearchFacetRanges()
SearchFacetgetSearchFacetRanges in interface SearchFacetpublic void setSearchFacetRanges(List<SearchFacetRange> searchFacetRanges)
SearchFacetsetSearchFacetRanges in interface SearchFacetSearchFacet.getSearchFacetRanges()public <G extends SearchFacet> CreateResponse<G> createOrRetrieveCopyInstance(MultiTenantCopyContext context) throws CloneNotSupportedException
createOrRetrieveCopyInstance in interface MultiTenantCloneable<SearchFacet>CloneNotSupportedExceptionpublic String getMainEntityName()
getMainEntityName in interface AdminMainEntityCopyright © 2022. All rights reserved.