PkgAgentSystem
Class PermissionEvent
java.lang.Object
|
+--java.util.EventObject
|
+--PkgAgentSystem.PermissionEvent
- public class PermissionEvent
- extends EventObject
Event to tell the agent that his permissions have changed. Can be either a grant or
a revoke event.
- Version:
- 1.0, 1.7.2000
- Author:
- Michael Sonntag
- See Also:
AgentBase
,
PermissionChangeListener
, Serialized Form
Constructor Summary |
PermissionEvent(int type,
Permission perm)
Creates a new permission event of a certain type with a certain permission. |
Methods inherited from class java.lang.Object |
,
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
PERMISSION_GRANTED
public static final int PERMISSION_GRANTED
- This permission was granted
PERMISSION_REVOKED
public static final int PERMISSION_REVOKED
- This permission was revoked
PermissionEvent
public PermissionEvent(int type,
Permission perm)
- Creates a new permission event of a certain type with a certain permission.
- Parameters:
type
- the type of the event (grant or revoke)perm
- the permission of the event
getPermission
public Permission getPermission()
- Retrieve the permission of the event.
- Returns:
- the permission of the event
getType
public int getType()
- Retrieve the type of the event (grant or revoke).
- Returns:
- the type of the event
toString
public String toString()
- Returns a string representation of this event. Includes the permission and the type.
- Returns:
- a string representation of the event (permission and type)
- Overrides:
- toString in class EventObject
Submit a bug
Copyright 2000 Michael Sonntag & Institute for Information Processing and Microprocessor Technology (FIM), Johannes-Kepler-University Linz, Altenbergerstr. 69, A-4040 Linz, Austria.