org.idoox.security.pstore
Class NotificationEvent

java.lang.Object
  extended byjava.util.EventObject
      extended byorg.idoox.security.pstore.NotificationEvent
All Implemented Interfaces:
java.io.Serializable

public class NotificationEvent
extends java.util.EventObject

The NotificationEvent event gets delivered whenever a change that should affect other security components occur. Such a change is e.g. deletion of a user in the user store that should be propagated to the policy implementation to enforce change of access control lists.

Since:
4.0
See Also:
Serialized Form
Component:
Security-Core

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
NotificationEvent(java.lang.Object source, java.lang.String name, int typeMask)
          Constructs a new NotificationEvent.
 
Method Summary
 java.lang.String getName()
          Gets the name propertye of this event (e.g.
 int getTypeMask()
          Gets the mask of this event.
 
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
 

Constructor Detail

NotificationEvent

public NotificationEvent(java.lang.Object source,
                         java.lang.String name,
                         int typeMask)
Constructs a new NotificationEvent.

Parameters:
source - the source of the event (can be null)
name - name of the user store entry that has been changed
typeMask - modification type
Method Detail

getName

public java.lang.String getName()
Gets the name propertye of this event (e.g. user name).

Returns:
name property

getTypeMask

public int getTypeMask()
Gets the mask of this event. The value can be e.g. UserStore.DELETE_USER_ACTION

Returns:
The old value for the property, expressed as an Object. May be null if multiple properties have changed.