The public console API package is named com.iplanet.am.console.base.model . It contains interfaces that can be used to monitor and react to events that occur in the console. This listener can be called when the user executes an action on the console that causes an event. An event can have multiple listeners registered on it. Conversely, a listener can register with multiple events. Events that might be used to trigger a listener include:
Displaying a tab in the Header frame.
Creating or deleting identity-related objects.
Modifying the properties of an identity-related object.
Sending attribute values to the console ViewBean for display purposes.
When a listener is created all the methods of that interface must be implemented thus, the methods in the AMConsoleListener interface must be implemented. The AMConsoleListenerAdapter class provides default implementations of those methods and can be used instead. Creating a console event listener includes the following:
Write a console event listener class or implement the default methods in the AMConsoleListenerAdapter class.
Compile the code.
Register the listener in the Administration Service.
Access Manager includes a sample implementation of the ConsoleEventListener. The Sun Java System Access Manager 7.1 Java API Reference also contains more detailed information on the listener interfaces and class.