Class FacetLabelDisplayHandlerRegistry
- java.lang.Object
-
- org.alfresco.repo.search.impl.solr.facet.handler.FacetLabelDisplayHandlerRegistry
-
public class FacetLabelDisplayHandlerRegistry extends java.lang.ObjectA registry which holds and provides the appropriate display handler for a particular facet field.- Since:
- 5.0
- Author:
- Jamal Kaabi-Mofrad
-
-
Constructor Summary
Constructors Constructor Description FacetLabelDisplayHandlerRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDisplayHandler(java.lang.String fieldFacet, FacetLabelDisplayHandler displayHandler)Register an instance ofFacetLabelDisplayHandlerwith the specified field facet.FacetLabelDisplayHandlergetDisplayHandler(java.lang.String fieldFacet)Gets the display handler.
-
-
-
Method Detail
-
addDisplayHandler
public void addDisplayHandler(java.lang.String fieldFacet, FacetLabelDisplayHandler displayHandler)Register an instance ofFacetLabelDisplayHandlerwith the specified field facet.- Parameters:
fieldFacet- the field facetdisplayHandler- the display handler
-
getDisplayHandler
public FacetLabelDisplayHandler getDisplayHandler(java.lang.String fieldFacet)
Gets the display handler.- Parameters:
fieldFacet- the field facet to perform the lookup- Returns:
- the display handler or null if none found
-
-