public interface LDAPSearchResult
LDAPProvider#sendRequest(LDAPSearchRequest)
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<LDAPEntry> |
entriesIterator()
Returns an iterator over the set of the matching entries for the search operation.
|
int |
getCount()
Returns the number of matching entries for the search operation.
|
LDAPEntry |
getEntry()
Returns the single matching entry returned for the search operation.
|
LDAPEntry |
getEntry(java.lang.String dn)
Returns the matching entry with the specified DN from the set of entries for
the search operation.
|
int getCount()
LDAPEntry getEntry() throws LDAPException
Note that if the search result contains more than one entry, an LDAPException will be thrown. It is recommended to check the result count before making calls of this method. Use entries iterator instead, in case there will be more than one entry returned for the search operation.
LDAPException
- if more than one entry returned for the search operation.LDAPEntry getEntry(java.lang.String dn) throws LDAPException
dn
- DN of the entry to retrieve from the set of matching entries returned
for the search operation. It must not be null.LDAPException
- if failed to parse the provided DN or a search entry DN.java.util.Iterator<LDAPEntry> entriesIterator()