Skip navigation links


com.thortech.xl.util.adapters
Class tcUtilLDAPListener

java.lang.Object
  extended by com.thortech.xl.util.adapters.tcUtilLDAPListener

All Implemented Interfaces:
java.util.EventListener, javax.naming.event.NamespaceChangeListener, javax.naming.event.NamingListener, javax.naming.event.ObjectChangeListener

public abstract class tcUtilLDAPListener
extends java.lang.Object
implements javax.naming.event.NamespaceChangeListener, javax.naming.event.ObjectChangeListener

LDAP Listener Utility class


Constructor Summary
tcUtilLDAPListener(java.lang.String psServer, java.lang.String psRootContext, java.lang.String psPrincipal, java.lang.String psPassword)
          Creates a new tcUtilLDAPListener object.

 

Method Summary
abstract  void addObject(java.lang.String psRDN, java.util.Hashtable poAttribs)
          Method called when an object is added
abstract  void modifyObject(java.lang.String psRDN, java.util.Hashtable poAttribs)
          Method called when an object is added
 void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
          Method notified (called) when an exception is thrown
 void objectAdded(javax.naming.event.NamingEvent evt)
          Method notified (called) when a new object is added
 void objectChanged(javax.naming.event.NamingEvent evt)
          Method notified (called) when an object is modified
 void objectRemoved(javax.naming.event.NamingEvent evt)
          Method notified (called) when an object is removed
 void objectRenamed(javax.naming.event.NamingEvent evt)
          Method notified (called) when an object is renamed (rdn changes)
abstract  void removeObject(java.lang.String psRDN)
          Method called when an object is added
abstract  void renameObject(java.lang.String psOldRDN, java.lang.String psNewRDN)
          Method called when an object is added
 void startListening()
          The work method of the Listener.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

tcUtilLDAPListener

public tcUtilLDAPListener(java.lang.String psServer,
                          java.lang.String psRootContext,
                          java.lang.String psPrincipal,
                          java.lang.String psPassword)
                   throws java.lang.Exception
Creates a new tcUtilLDAPListener object.
Parameters:
psServer -
psRootContext -
psPrincipal -
psPassword -
Throws:
java.lang.Exception

Method Detail

startListening

public final void startListening()
The work method of the Listener. Connects to the LDAP server and registers itself as a listener.

objectAdded

public final void objectAdded(javax.naming.event.NamingEvent evt)
Method notified (called) when a new object is added
Specified by:
objectAdded in interface javax.naming.event.NamespaceChangeListener
Parameters:
evt -

objectRemoved

public final void objectRemoved(javax.naming.event.NamingEvent evt)
Method notified (called) when an object is removed
Specified by:
objectRemoved in interface javax.naming.event.NamespaceChangeListener
Parameters:
evt -

objectRenamed

public final void objectRenamed(javax.naming.event.NamingEvent evt)
Method notified (called) when an object is renamed (rdn changes)
Specified by:
objectRenamed in interface javax.naming.event.NamespaceChangeListener
Parameters:
evt -

objectChanged

public final void objectChanged(javax.naming.event.NamingEvent evt)
Method notified (called) when an object is modified
Specified by:
objectChanged in interface javax.naming.event.ObjectChangeListener
Parameters:
evt -

namingExceptionThrown

public void namingExceptionThrown(javax.naming.event.NamingExceptionEvent evt)
Method notified (called) when an exception is thrown
Specified by:
namingExceptionThrown in interface javax.naming.event.NamingListener
Parameters:
evt -

addObject

public abstract void addObject(java.lang.String psRDN,
                               java.util.Hashtable poAttribs)
Method called when an object is added
Parameters:
psRDN - The RDN of the object added, relative to the rootcontext
poAttribs - The hashtable containing the attribute-value pairs. The key is the attribute name. The value is a vector of string objects holding the value(s) of that attribute

removeObject

public abstract void removeObject(java.lang.String psRDN)
Method called when an object is added
Parameters:
psRDN - The RDN of the object added, relative to the rootcontext

renameObject

public abstract void renameObject(java.lang.String psOldRDN,
                                  java.lang.String psNewRDN)
Method called when an object is added
Parameters:
psOldRDN - The Old RDN of the object renamed, relative to the rootcontext
psNewRDN - The New RDN of the object renamed, relative to the rootcontext

modifyObject

public abstract void modifyObject(java.lang.String psRDN,
                                  java.util.Hashtable poAttribs)
Method called when an object is added
Parameters:
psRDN - The RDN of the object modified, relative to the rootcontext
poAttribs - The hashtable containing the attribute-value pairs. The key is the attribute name. The value is a vector of string objects holding the value(s) of that attribute

Skip navigation links


Copyright © 2014, Oracle and/or its affiliates. All rights reserved.