Class SolrFacetProperties
- java.lang.Object
-
- org.alfresco.repo.search.impl.solr.facet.SolrFacetProperties
-
- All Implemented Interfaces:
java.io.Serializable
public class SolrFacetProperties extends java.lang.Object implements java.io.SerializableDomain-Specific Language (DSL) style builder class for encapsulating the facet properties.- Author:
- Jamal Kaabi-Mofrad
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSolrFacetProperties.Builderstatic classSolrFacetProperties.CustomProperties
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Set<SolrFacetProperties.CustomProperties>getCustomProperties()Returns an unmodifiable view of the custom properties set or null.java.lang.StringgetDisplayControl()java.lang.StringgetDisplayName()org.alfresco.service.namespace.QNamegetFacetQName()java.lang.StringgetFilterID()intgetHitThreshold()intgetMaxFilters()intgetMinFilterValueLength()java.lang.StringgetScope()java.util.Set<java.lang.String>getScopedSites()Returns an unmodifiable view of the Scoped Sites set.java.lang.StringgetSortBy()inthashCode()booleanisDefault()Whether the facet is a default facet (loaded from a configuration file) or notjava.lang.BooleanisEnabled()java.lang.StringtoString()
-
-
-
Method Detail
-
getFilterID
public java.lang.String getFilterID()
- Returns:
- the filterID
-
getFacetQName
public org.alfresco.service.namespace.QName getFacetQName()
- Returns:
- the facetQName
-
getDisplayName
public java.lang.String getDisplayName()
- Returns:
- the displayName
-
getDisplayControl
public java.lang.String getDisplayControl()
- Returns:
- the displayControl
-
getMaxFilters
public int getMaxFilters()
- Returns:
- the maxFilters
-
getHitThreshold
public int getHitThreshold()
- Returns:
- the hitThreshold
-
getMinFilterValueLength
public int getMinFilterValueLength()
- Returns:
- the minFilterValueLength
-
getSortBy
public java.lang.String getSortBy()
- Returns:
- the sortBy
-
getScope
public java.lang.String getScope()
- Returns:
- the scope
-
getScopedSites
public java.util.Set<java.lang.String> getScopedSites()
Returns an unmodifiable view of the Scoped Sites set. Never null.- Returns:
- the scopedSites
-
isEnabled
public java.lang.Boolean isEnabled()
- Returns:
- null if the value is not set
-
isDefault
public boolean isDefault()
Whether the facet is a default facet (loaded from a configuration file) or not- Returns:
- true if the facet is default, false otherwise
-
getCustomProperties
public java.util.Set<SolrFacetProperties.CustomProperties> getCustomProperties()
Returns an unmodifiable view of the custom properties set or null.- Returns:
- the customProperties
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-