org.apache.directory.server.core.subtree
Class SubentryService.HideSubentriesFilter

java.lang.Object
  extended by org.apache.directory.server.core.subtree.SubentryService.HideSubentriesFilter
All Implemented Interfaces:
SearchResultFilter
Enclosing class:
SubentryService

public class SubentryService.HideSubentriesFilter
extends java.lang.Object
implements SearchResultFilter

SearchResultFilter used to filter out subentries based on objectClass values.


Constructor Summary
SubentryService.HideSubentriesFilter()
           
 
Method Summary
 boolean accept(Invocation invocation, javax.naming.directory.SearchResult result, javax.naming.directory.SearchControls controls)
          Filters the contents of search results on the way out the door to client callers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubentryService.HideSubentriesFilter

public SubentryService.HideSubentriesFilter()
Method Detail

accept

public boolean accept(Invocation invocation,
                      javax.naming.directory.SearchResult result,
                      javax.naming.directory.SearchControls controls)
               throws javax.naming.NamingException
Description copied from interface: SearchResultFilter
Filters the contents of search results on the way out the door to client callers. These filters can and do produce side-effects on the results if if need be the attributes or names within the result should be cloned.

Specified by:
accept in interface SearchResultFilter
result - the database search result to return
controls - search controls associated with the invocation
Returns:
true if the result is to be returned, false if it is to be discarded from the result set
Throws:
javax.naming.NamingException


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.