pulse - the web application framework Get pulse at SourceForge.net. Fast, secure and Free Open Source software downloads Ohloh project report for pulse-java

org.torweg.pulse.util.search
Class SitemapNodeRoleFilterFactory

java.lang.Object
  extended by org.torweg.pulse.util.search.SitemapNodeRoleFilterFactory

public class SitemapNodeRoleFilterFactory
extends java.lang.Object

a Filter removing SitemapNodes requiring Roles which are not provided to the Filter.

Version:
$Revision: 1415 $
Author:
unknown, Thomas Weber
See Also:
SitemapNode

Nested Class Summary
static class SitemapNodeRoleFilterFactory.SitemapNodeRoleFilter
          The filter checking whether the filter's roles are part of the document roles.
 
Constructor Summary
SitemapNodeRoleFilterFactory()
          default constructor.
 
Method Summary
 org.apache.lucene.search.Filter getFilter()
          factory method to create a cacheable version of SitemapNodeUniqueContentFilter.
 org.hibernate.search.filter.FilterKey getKey()
          returns the FilterKey.
 void setRoles(java.util.Set<Role> r)
          injects the roles.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SitemapNodeRoleFilterFactory

public SitemapNodeRoleFilterFactory()
default constructor.

Method Detail

setRoles

public final void setRoles(java.util.Set<Role> r)
injects the roles.

Parameters:
r - the roles

getKey

@Key
public final org.hibernate.search.filter.FilterKey getKey()
returns the FilterKey.

Returns:
the filter key

getFilter

@Factory
public final org.apache.lucene.search.Filter getFilter()
factory method to create a cacheable version of SitemapNodeUniqueContentFilter.

Returns:
the cachable filter
See Also:
Factory