Package com.sun.identity.sm.ldap
Class SearchResultIterator
- java.lang.Object
-
- com.sun.identity.sm.ldap.SearchResultIterator
-
- All Implemented Interfaces:
Iterator<SMSDataEntry>
public class SearchResultIterator extends Object implements Iterator<SMSDataEntry>
This class iterates through theLDAPSearchResultsand converts the LDAPEntry to aSMSDataEntryobject.
-
-
Constructor Summary
Constructors Constructor Description SearchResultIterator(org.forgerock.opendj.ldif.ConnectionEntryReader results, Set<String> excludeDNs, org.forgerock.opendj.ldap.Connection conn)Constructs aSearchResultIterator
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanhasNext()SMSDataEntrynext()voidremove()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Constructor Detail
-
SearchResultIterator
public SearchResultIterator(org.forgerock.opendj.ldif.ConnectionEntryReader results, Set<String> excludeDNs, org.forgerock.opendj.ldap.Connection conn)Constructs aSearchResultIterator- Parameters:
results- LDAP Search Results object.excludeDNs- a set of distinguished names to be excludedconn-
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNextin interfaceIterator<SMSDataEntry>
-
next
public SMSDataEntry next()
- Specified by:
nextin interfaceIterator<SMSDataEntry>
-
remove
public void remove()
- Specified by:
removein interfaceIterator<SMSDataEntry>
-
-