org.norther.tammi.core.relation
Class RoleNotification

java.lang.Object
  extended by java.util.EventObject
      extended by javax.management.Notification
          extended by org.norther.tammi.core.base.ReferableNotification
              extended by org.norther.tammi.core.relation.RoleNotification
All Implemented Interfaces:
Serializable, MBeanReference

public class RoleNotification
extends ReferableNotification

An extended notification of RelationMBeans sent after modification of roles.

Author:
Ilkka Priha
See Also:
Serialized Form

Field Summary
static String ROLE_MODIFIED
          The relation modified notification.
 
Fields inherited from class org.norther.tammi.core.base.ReferableNotification
GENERIC
 
Fields inherited from class javax.management.Notification
source
 
Constructor Summary
RoleNotification(String type, MBeanReference src, long sequenceNumber, long timeStamp, String theRoleName, List theNewRoleValue, List theOldRoleValue, ObjectName addedActor, ObjectName removedActor)
          Creates a notification with a time stamp.
RoleNotification(String type, MBeanReference src, long sequenceNumber, long timeStamp, String message, String theRoleName, List theNewRoleValue, List theOldRoleValue, ObjectName addedActor, ObjectName removedActor)
          Creates a notification with a time stamp and message.
RoleNotification(String type, MBeanReference src, long sequenceNumber, String theRoleName, List theNewRoleValue, List theOldRoleValue, ObjectName addedActor, ObjectName removedActor)
          Creates a notification.
RoleNotification(String type, MBeanReference src, long sequenceNumber, String message, String theRoleName, List theNewRoleValue, List theOldRoleValue, ObjectName addedActor, ObjectName removedActor)
          Creates a notification with a message.
 
Method Summary
 Collection getAddedActorMBeans()
          Gets the added actor MBeans, if any.
 List getNewRoleValue()
          Gets the unmodifiable new value of the role.
 List getOldRoleValue()
          Gets the unmodifiable old value of the role.
 Collection getRemovedActors()
          Gets the removed actors, if any.
 String getRoleName()
          Gets the name of the modified role.
 
Methods inherited from class org.norther.tammi.core.base.ReferableNotification
get, getClassName, getMBeanServer, getObjectName, isRegistered
 
Methods inherited from class javax.management.Notification
getMessage, getSequenceNumber, getTimeStamp, getType, getUserData, setSequenceNumber, setSource, setTimeStamp, setUserData, toString
 
Methods inherited from class java.util.EventObject
getSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ROLE_MODIFIED

public static final String ROLE_MODIFIED
The relation modified notification.

Constructor Detail

RoleNotification

public RoleNotification(String type,
                        MBeanReference src,
                        long sequenceNumber,
                        String theRoleName,
                        List theNewRoleValue,
                        List theOldRoleValue,
                        ObjectName addedActor,
                        ObjectName removedActor)
Creates a notification.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
theRoleName - the name of the role.
theNewRoleValue - the new value of the role.
theOldRoleValue - the old value of the role.
addedActor - an optional added actor.
removedActor - an optional removed actor.

RoleNotification

public RoleNotification(String type,
                        MBeanReference src,
                        long sequenceNumber,
                        String message,
                        String theRoleName,
                        List theNewRoleValue,
                        List theOldRoleValue,
                        ObjectName addedActor,
                        ObjectName removedActor)
Creates a notification with a message.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
message - the notification message.
theRoleName - the name of the role.
theNewRoleValue - the new value of the role.
theOldRoleValue - the old value of the role.
addedActor - an optional added actor.
removedActor - an optional removed actor.

RoleNotification

public RoleNotification(String type,
                        MBeanReference src,
                        long sequenceNumber,
                        long timeStamp,
                        String theRoleName,
                        List theNewRoleValue,
                        List theOldRoleValue,
                        ObjectName addedActor,
                        ObjectName removedActor)
Creates a notification with a time stamp.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
timeStamp - the time stamp.
theRoleName - the name of the role.
theNewRoleValue - the new value of the role.
theOldRoleValue - the old value of the role.
addedActor - an optional added actor.
removedActor - an optional removed actor.

RoleNotification

public RoleNotification(String type,
                        MBeanReference src,
                        long sequenceNumber,
                        long timeStamp,
                        String message,
                        String theRoleName,
                        List theNewRoleValue,
                        List theOldRoleValue,
                        ObjectName addedActor,
                        ObjectName removedActor)
Creates a notification with a time stamp and message.

Parameters:
type - the notification type.
src - the notification source.
sequenceNumber - the sequence number.
timeStamp - the time stamp.
message - the notification message.
theRoleName - the name of the role.
theNewRoleValue - the new value of the role.
theOldRoleValue - the old value of the role.
addedActor - an optional added actor.
removedActor - an optional removed actor.
Method Detail

getRoleName

public String getRoleName()
Gets the name of the modified role.

Returns:
the role name.

getNewRoleValue

public List getNewRoleValue()
Gets the unmodifiable new value of the role.

Returns:
the new role value.

getOldRoleValue

public List getOldRoleValue()
Gets the unmodifiable old value of the role.

Returns:
the old role value.

getRemovedActors

public Collection getRemovedActors()
Gets the removed actors, if any.

Returns:
object names of removed actors or an empty collection.

getAddedActorMBeans

public Collection getAddedActorMBeans()
Gets the added actor MBeans, if any.

Note that this call should happen within a synchronized block during the modification, otherwise the list may not correspond exactly with the point of modification.

Returns:
references of added actor MBeans or an empty collection.


Copyright © 2004 The Norther Organization. All rights reserved.