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: 379008 $
Author:
Alex Karasulu, $Author: akarasulu $

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

Method Detail

assertCandidate

public boolean assertCandidate(java.lang.String a_dn,
                               javax.naming.directory.Attributes a_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:
a_dn - the normalized dn of the candidate entry to be tested
a_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 © 2003-2006 . All Rights Reserved.