org.apache.directory.server.core.subtree
Class SubentryInterceptor.HideEntriesFilter

java.lang.Object
  extended by org.apache.directory.server.core.subtree.SubentryInterceptor.HideEntriesFilter
All Implemented Interfaces:
EntryFilter
Enclosing class:
SubentryInterceptor

public class SubentryInterceptor.HideEntriesFilter
extends java.lang.Object
implements EntryFilter

SearchResultFilter used to filter out normal entries but shows subentries based on objectClass values.


Constructor Summary
SubentryInterceptor.HideEntriesFilter()
           
 
Method Summary
 boolean accept(SearchingOperationContext operation, ClonedServerEntry entry)
          Filters the contents of search entries 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

SubentryInterceptor.HideEntriesFilter

public SubentryInterceptor.HideEntriesFilter()
Method Detail

accept

public boolean accept(SearchingOperationContext operation,
                      ClonedServerEntry entry)
               throws java.lang.Exception
Description copied from interface: EntryFilter
Filters the contents of search entries on the way out the door to client callers. These filters can and do produce side-effects on the entry results if need be. These entries, their attributes and values should be cloned when alterations are made to avoid altering cached entries.

Specified by:
accept in interface EntryFilter
entry - the result to accept or reject possibly modifying it
Returns:
true if the entry is to be returned, false if it is rejected
Throws:
java.lang.Exception - if there are failures during evaluation


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