com.novell.admin.rbs
Class RBSEvent

java.lang.Object
  |
  +--java.util.EventObject
        |
        +--com.novell.application.console.snapin.SnapinEvent
              |
              +--com.novell.admin.rbs.RBSEvent
All Implemented Interfaces:
java.io.Serializable

public class RBSEvent
extends SnapinEvent

SnapinEvent class that is sent when events occur in RBS such as the creation and deletion of asociations and content changes in Roles.


Field Summary
static int ASSOCIATION_ADDED
          Event type when associations added
static int ASSOCIATION_DELETED
          Event type when associations removed
static int ASSOCIATION_MODIFIED
          Event type when associations modified.
static java.lang.String NAME
          Name of this event.
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
RBSEvent(java.lang.Object o, int eventType, RBSAssociation assc, RBSAssociation oldAssc)
          Constructor for ASSOCIATION_ADDED, ASSOCIATION_DELETED & ASSOCIATION_MODIFIED
 
Method Summary
 RBSAssociation getAssociation()
          Gets the RBSAssociation for the association that was either added or deleted or modified
 int getEventType()
          Gets the type of event.
 RBSAssociation getOldAssociation()
          Gets the RBSAssociation before the modification.
 
Methods inherited from class com.novell.application.console.snapin.SnapinEvent
getEvent
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASSOCIATION_ADDED

public static final int ASSOCIATION_ADDED
Event type when associations added

ASSOCIATION_DELETED

public static final int ASSOCIATION_DELETED
Event type when associations removed

ASSOCIATION_MODIFIED

public static final int ASSOCIATION_MODIFIED
Event type when associations modified. This would include where the Role already had a user and a scope but the scope was changed or the inheritance was changed

NAME

public static final java.lang.String NAME
Name of this event. This is what all listeners of RBSEvents should use when adding themselves as SnapinListeners to the Shell.
Constructor Detail

RBSEvent

public RBSEvent(java.lang.Object o,
                int eventType,
                RBSAssociation assc,
                RBSAssociation oldAssc)
Constructor for ASSOCIATION_ADDED, ASSOCIATION_DELETED & ASSOCIATION_MODIFIED
Parameters:
o - The source of the event
eventType - The event type, must be ASSOCIATION_ADDED or ASSOCIATION_DELETED
assc - The RBSAssociation object
oldAssc - The Previous RBSAssociation when modifications occur
Method Detail

getEventType

public int getEventType()
Gets the type of event.
Returns:
int representing the type of RBSEvent.

getAssociation

public RBSAssociation getAssociation()
Gets the RBSAssociation for the association that was either added or deleted or modified
Returns:
The RBSAssociation

getOldAssociation

public RBSAssociation getOldAssociation()
Gets the RBSAssociation before the modification.
Returns:
The RBSAssociation relation before the scope or inheritance was changed. Note that returns null if this was not a modify


API Documentation Copyright © 1998-2003 Novell, Inc. All rights reserved.
ConsoleOne is a registered trademark of Novell Inc.
Generated December 9 2003 1727.