All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.novell.ldap.events.package.html Maven / Gradle / Ivy








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);





© 2015 - 2024 Weber Informatics LLC | Privacy Policy