org.apache.directory.shared.ldap.filter
Interface Assertion


public interface Assertion

A candidacy predicate which tests if an entry satisfies some condition before being returned by a search.

Version:
$Revision: 493916 $
Author:
Apache Directory Project

Method Summary
 boolean assertCandidate(java.lang.String dn, javax.naming.directory.Attributes entry)
          Checks to see if a candidate is valid by asserting an arbitrary predicate against the candidate.
 

Method Detail

assertCandidate

boolean assertCandidate(java.lang.String dn,
                        javax.naming.directory.Attributes entry)
                        throws javax.naming.NamingException
Checks to see if a candidate is valid by asserting an arbitrary predicate against the candidate. Where available entry attributes will be provided however there is no guarantee. The entry's attributes are only provided if they were previously accessed. All assertions should handle cases where the entry argument is null.

Parameters:
dn - the normalized dn of the candidate entry to be tested
entry - the entry's attributes if available
Returns:
true if the candidate satisfies the predicate, false otherwise
Throws:
javax.naming.NamingException - if an error occurs while asserting the predicate


Copyright © 2004-2011. All Rights Reserved.