com.novell.ldap.events.edir.package.html Maven / Gradle / Ivy
Provides classes for Edirectory Events notification when connected to a LDAP V3 Server.
Package Specification
This package defines the classes for notification of Edirectory Events.
The following example explains the use of EdirEventSource.
source =
new
EdirEventSource(); //create an instance
EdirEventSpecifier specifier[] =
new
EdirEventSpecifier[2]; //array of
EdirEventSpecifier to specify the event types
listener =
new
EdirLDAPEventListener(); //An
implementation of LDAPEventListener
specifier[0] =
new
EdirEventSpecifier(EdirEventConstant.EVT_ADD_VALUE,
EdirEventConstant.EVT_STATUS_ALL);
// All
Add Values events.
specifier[1] =
new
EdirEventSpecifier(EdirEventConstant.EVT_ADD_ENTRY,
EdirEventConstant.EVT_STATUS_ALL);
//All
Add Entry events.
source.registerforEvent(specifier, connection, listener);
//register for events
//Process the events in the listener
//In the end, Remove the listener
source.removeListener(listener);
© 2015 - 2025 Weber Informatics LLC | Privacy Policy