org.imixs.workflow.jee.plugins.extended
Class OpenLDAPMailPlugin

java.lang.Object
  extended by org.imixs.workflow.plugins.AbstractPlugin
      extended by org.imixs.workflow.jee.plugins.AbstractPlugin
          extended by org.imixs.workflow.jee.plugins.MailPlugin
              extended by org.imixs.workflow.jee.plugins.extended.OpenLDAPMailPlugin
All Implemented Interfaces:
org.imixs.workflow.Plugin

public class OpenLDAPMailPlugin
extends MailPlugin

This Plugin extends the standard JEE MailPlugin to lookup smtp mail addresses from an OpenLDAP directory by a given username. Therefore the Plugin expects an JNDI Ressource to the corresponding directory identified by the jndi name: 'org.imixs.mail.directory'

The search phrase is (uid=%u) where %u is the username to be translated into a smtp address.

Author:
rsoika

Field Summary
 String LDAP_JNDI_NAME
           
 
Fields inherited from class org.imixs.workflow.jee.plugins.MailPlugin
adocumentContext
 
Fields inherited from class org.imixs.workflow.plugins.AbstractPlugin
ctx
 
Fields inherited from interface org.imixs.workflow.Plugin
PLUGIN_ERROR, PLUGIN_OK, PLUGIN_WARNING
 
Constructor Summary
OpenLDAPMailPlugin()
           
 
Method Summary
 javax.mail.internet.InternetAddress getInternetAddress(String aAddr)
          this method tries to lookup a users smtp address from the ldap directory if no smtp name is provided.
 
Methods inherited from class org.imixs.workflow.jee.plugins.MailPlugin
close, getMailMessage, getMailSession, init, initializeMailMessage, run
 
Methods inherited from class org.imixs.workflow.jee.plugins.AbstractPlugin
getUserName
 
Methods inherited from class org.imixs.workflow.plugins.AbstractPlugin
formatItemValues, getAbbreviateName, getCommonName, replaceDynamicValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LDAP_JNDI_NAME

public final String LDAP_JNDI_NAME
See Also:
Constant Field Values
Constructor Detail

OpenLDAPMailPlugin

public OpenLDAPMailPlugin()
Method Detail

getInternetAddress

public javax.mail.internet.InternetAddress getInternetAddress(String aAddr)
                                                       throws javax.mail.internet.AddressException
this method tries to lookup a users smtp address from the ldap directory if no smtp name is provided. The method overwrite the standard behaivor form the MailPlugin Class.

Overrides:
getInternetAddress in class MailPlugin
Parameters:
aAddr -
Returns:
Throws:
javax.mail.internet.AddressException


Copyright © 2006-2011 Imixs Software Solutions GmbH. All Rights Reserved.