LDAP Classes
Implements Java LDAP

Package com.novell.ldap.events

Provides classes for LDAP Events notification when connected to a LDAP V3 Server.

See:
          Description

Interface Summary
EventConstant This interface contains the constants for Classification of Events.
LDAPEventListener This interface defines the generic listener for handling LDAP Events.
PSearchEventListener This Listener is for receiving persistence search events.
 

Class Summary
LDAPEvent This class represents an generic event fired in response to an notification (LDAPResponse) sent by the LDAP Server.
LDAPEventSource The base Class which is used by all Ldap Event Generator.
LDAPExceptionEvent This class represents an event fired when an Exception occurs during the process of listening to the LDAP Events.
PsearchEventSource This Class is responsible for generation of Persistence Search Events.
SearchReferralEvent This class represents an Persistence Search event fired in response to an notification (LDAPSearchResult) sent by the LDAP Server.
SearchResultEvent This class represents an Persistence Search event fired in response to an notification (LDAPSearchResult) sent by the LDAP Server.
 

Package com.novell.ldap.events Description

Provides classes for LDAP Events notification when connected to a LDAP V3 Server.

Package Specification

This package defines the classes for notification of Persistence Search Events. It also contains the base classes which can be extended for generation of custom events.

The following example explains the use of PsearchEventSource

 

source = new PsearchEventSource();  //Create a instance

listener = new SearchEventListener(); //Some implementation of PSearchListener

//register for search with no attributes returned

source.registerforEvent(

                connection, //Connection to connect to server.

                searchBase,// container to search

                LDAPConnection.SCOPE_SUB,// search container's subtree

                "(objectClass=*)", // search filter, all objects

                LDAPConnection.NO_ATTRS, // don't return attributes

                true,// return attrs and values, ignored

                null, // use default search queue

                EventConstant.LDAP_PSEARCH_ANY, // use default search constraints   

                true, //return change only

                listener); //PsearchListener for receiving events.

// process the events in the listener.

//In the end, remove the listener

source.removeListener(listener);


LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000