com.mtvi.plateng.hudson.ldap
Class LdapMailAddressResolver

java.lang.Object
  extended by hudson.tasks.MailAddressResolver
      extended by com.mtvi.plateng.hudson.ldap.LdapMailAddressResolver
All Implemented Interfaces:
hudson.ExtensionPoint

public class LdapMailAddressResolver
extends hudson.tasks.MailAddressResolver

Implementation of hudson.tasks.MailAddressResolver that looks up the email address for a user based on information in an LDAP directory.

Author:
justinedelson

Nested Class Summary
 
Nested classes/interfaces inherited from interface hudson.ExtensionPoint
hudson.ExtensionPoint.LegacyInstancesAreScopedToHudson
 
Field Summary
 
Fields inherited from class hudson.tasks.MailAddressResolver
LIST
 
Constructor Summary
LdapMailAddressResolver(Configuration config)
          Build an instance wrapping a Configuration object.
 
Method Summary
protected  java.lang.String findMailAddressFor(java.lang.String userName)
          Look up the email address for a user in the directory.
 java.lang.String findMailAddressFor(hudson.model.User user)
          
 
Methods inherited from class hudson.tasks.MailAddressResolver
all, resolve
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LdapMailAddressResolver

public LdapMailAddressResolver(Configuration config)
Build an instance wrapping a Configuration object.

Parameters:
config - the Configuration object
Method Detail

findMailAddressFor

public java.lang.String findMailAddressFor(hudson.model.User user)

Specified by:
findMailAddressFor in class hudson.tasks.MailAddressResolver

findMailAddressFor

protected java.lang.String findMailAddressFor(java.lang.String userName)
Look up the email address for a user in the directory.

Parameters:
userName - the user's username, generally corresponds to the uid attribute.
Returns:
the corresponding email address from the directory, or null if none can be found.


Copyright © 2004-2011. All Rights Reserved.