org.hibernate.search.query.engine.impl
Class FacetManagerImpl

java.lang.Object
  extended by org.hibernate.search.query.engine.impl.FacetManagerImpl
All Implemented Interfaces:
FacetManager

public class FacetManagerImpl
extends Object
implements FacetManager

Default implementation of the FacetManager implementation.

Author:
Hardy Ferentschik

Method Summary
 void disableFaceting(String facetingName)
          Disable a facet with the given name.
 FacetManager enableFaceting(FacetingRequest facetingRequest)
          Enable a facet request.
 FacetSelection getFacetGroup(String groupName)
          Returns a instance of FacetSelection instance in order to apply a disjunction of facet criteria on the current query.
 List<Facet> getFacets(String facetingName)
          Returns the Facets for a given facet name
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

enableFaceting

public FacetManager enableFaceting(FacetingRequest facetingRequest)
Description copied from interface: FacetManager
Enable a facet request.

Specified by:
enableFaceting in interface FacetManager
Parameters:
facetingRequest - the faceting request
Returns:
this to allow method chaining

disableFaceting

public void disableFaceting(String facetingName)
Description copied from interface: FacetManager
Disable a facet with the given name.

Specified by:
disableFaceting in interface FacetManager
Parameters:
facetingName - the name of the facet to disable.

getFacets

public List<Facet> getFacets(String facetingName)
Description copied from interface: FacetManager
Returns the Facets for a given facet name

Specified by:
getFacets in interface FacetManager
Parameters:
facetingName - the facet name for which to return the facet list
Returns:
the facet result list which corresponds to the facet request with the given name. The empty list is returned for an unknown facet name.
See Also:
FacetManager.enableFaceting(org.hibernate.search.query.facet.FacetingRequest)

getFacetGroup

public FacetSelection getFacetGroup(String groupName)
Description copied from interface: FacetManager
Returns a instance of FacetSelection instance in order to apply a disjunction of facet criteria on the current query.

Specified by:
getFacetGroup in interface FacetManager
Parameters:
groupName - the name the group. If the name is unknown an empty selection group is returned. null is not allowed.
Returns:
the FacetSelection for this group name if it exists., otherwise a new selection is created.


Copyright © 2006-2012 Red Hat Middleware, LLC. All Rights Reserved