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: 690196 $
- Author:
- Apache Directory Project
Method Summary |
boolean |
assertCandidate(Entry entry)
Checks to see if a candidate is valid by asserting an arbitrary predicate
against the candidate. |
assertCandidate
boolean assertCandidate(Entry entry)
throws javax.naming.NamingException
- Checks to see if a candidate is valid by asserting an arbitrary predicate
against the candidate. Where available entry 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:
entry
- the entry 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-2011 Apache Software Foundation. All Rights Reserved.