org.imixs.workflow.plugins.jee.extended
Class OpenLDAPMailPlugin
java.lang.Object
org.imixs.workflow.plugins.AbstractPlugin
org.imixs.workflow.plugins.jee.AbstractPlugin
org.imixs.workflow.plugins.jee.MailPlugin
org.imixs.workflow.plugins.jee.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
| Fields inherited from interface org.imixs.workflow.Plugin |
PLUGIN_ERROR, PLUGIN_OK, PLUGIN_WARNING |
|
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LDAP_JNDI_NAME
public final String LDAP_JNDI_NAME
- See Also:
- Constant Field Values
OpenLDAPMailPlugin
public OpenLDAPMailPlugin()
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.