Interface FacetValueDisplayNameProvider
-
- All Known Implementing Classes:
AbstractFacetValueDisplayNameProvider
,ColorFacetDisplayNameProvider
,CommerceCategoryFacetDisplayNameProvider
,CustomerCouponFacetDisplayNameProvider
,GenderFacetDisplayNameProvider
,PointOfServiceFacetDisplayNameProvider
,PointOfServiceFacetDisplayNameProvider
,ProductVendorFacetDisplayNameProvider
,PromotionFacetDisplayNameProvider
public interface FacetValueDisplayNameProvider
Interface used to lookup a display name for a specific facet value. Facet values retrieved from Solr are simple strings which cannot encode localised display values, therefore this interface can be used to provide additional displayable data for the facet value. A spring bean that implements theFacetDisplayNameProvider
interface can be associated with anIndexedProperty
and is then used to resolve a display name for a specific facet value. TheFacetDisplayNameProvider
interface is deprecated in favour of this interface, however implementers of this interface must also implement theFacetDisplayNameProvider
interface otherwise they cannot be associated with theIndexedProperty
. Where a bean implements both this interface and theFacetDisplayNameProvider
interface then this interface will be called in preference. Implementers should typically extend theAbstractFacetValueDisplayNameProvider
class.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getDisplayName(SearchQuery query, IndexedProperty property, java.lang.String facetValue)
Get the display name for a facet value.
-
-
-
Method Detail
-
getDisplayName
java.lang.String getDisplayName(SearchQuery query, IndexedProperty property, java.lang.String facetValue)
Get the display name for a facet value.- Parameters:
query
- The search queryproperty
- The indexed property (i.e. the facet)facetValue
- The facet value- Returns:
- The display name for the specified facet value.
-
-