nl.surfnet.coin.ldap
Class LdapClientImpl

java.lang.Object
  extended by nl.surfnet.coin.ldap.LdapClientImpl
All Implemented Interfaces:
LdapClient

public class LdapClientImpl
extends Object
implements LdapClient

Interface to Ldap where all persons are stored.


Field Summary
 
Fields inherited from interface nl.surfnet.coin.ldap.LdapClient
URN_IDENTIFIER
 
Constructor Summary
LdapClientImpl()
           
 
Method Summary
protected  Person convertLdapProperties(Person person, Attributes attributes)
           
 Person findPerson(String identifier)
          Find the Person in the LDAP.
 List<Person> findPersons(Collection<String> identifiers)
          Find the Persons in the LDAP.
 void setEngineBlock(EngineBlock engineBlock)
           
 void setLdapOperations(org.springframework.ldap.core.LdapOperations ldapOperations)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapClientImpl

public LdapClientImpl()
Method Detail

findPerson

public Person findPerson(String identifier)
Find the Person in the LDAP. The identifier can either be the urn (urn:collab:person:nl.myuniversity:s123456) or the persistent identifier (hashed urn specific for the SP).

Specified by:
findPerson in interface LdapClient
Parameters:
identifier - unique identifier of the Person
Returns:
Person object

findPersons

public List<Person> findPersons(Collection<String> identifiers)
Description copied from interface: LdapClient
Find the Persons in the LDAP. The identifier can either be the urn (urn:collab:person:nl.myuniversity:s123456) or the persistent identifier (hashed urn specific for the SP).

Specified by:
findPersons in interface LdapClient
Returns:
Persons objects

convertLdapProperties

protected Person convertLdapProperties(Person person,
                                       Attributes attributes)

setLdapOperations

public void setLdapOperations(org.springframework.ldap.core.LdapOperations ldapOperations)
Parameters:
ldapOperations - the ldapOperations to set

setEngineBlock

public void setEngineBlock(EngineBlock engineBlock)
Parameters:
engineBlock - the engineBlock to set


Copyright © 2009-2013 SURFnet bv, The Netherlands. All Rights Reserved.