Package org.sakaiproject.unboundid
Interface LdapEntryMapper
-
public interface LdapEntryMapperSimilar toorg.springframework.jdbc.core.RowMapper, but forLDAPSearchResultsrather thanResultSets. The callback method signature is slightly different thanorg.springframework.jdbc.core.RowMapper#mapRow(java.sql.ResultSet, int)due to API differences between Novell and JDBC libraries. Clients interact withLDAPSearchResultsas if it were a collection ofLDAPEntry, so passing the entireLDAPSearchResultsobject to {@Link {@link #mapLdapEntry(LDAPEntry, int)} places undue burden on implementations.- Author:
- Dan McCallum (dmccallum@unicon.net)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ObjectmapLdapEntry(com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPEntry entry, int resultNum)Map the givenLDAPEntryonto someObject.
-
-
-
Method Detail
-
mapLdapEntry
Object mapLdapEntry(com.unboundid.ldap.sdk.migrate.ldapjdk.LDAPEntry entry, int resultNum)
Map the givenLDAPEntryonto someObject.- Parameters:
entry- theLDAPEntryto mapresultNum- the number of times this mapper has been invoked for the current LDAP search result set. One-based.- Returns:
- the mapped
LDAPEntry
-
-