org.objectweb.joram.mom.notifications
Class SetRightRequest
java.lang.Object
fr.dyade.aaa.agent.Notification
org.objectweb.joram.mom.notifications.AbstractNotification
org.objectweb.joram.mom.notifications.AdminRequest
org.objectweb.joram.mom.notifications.SetRightRequest
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class SetRightRequest
- extends AdminRequest
A SetRightRequest
instance is used by a client agent
for setting users right on a destination.
- See Also:
- Serialized Form
Constructor Summary |
SetRightRequest(java.lang.String id,
AgentId client,
int right)
Constructs a SetRightRequest instance. |
Method Summary |
AgentId |
getClient()
Returns the AgentId of the client which right is set. |
int |
getRight()
Returns the right to set, (-)3 for (un)setting an admin right, (-)2 for
(un)setting a writing permission, (-)1 for (un)setting a reading
permission, and 0 for removing all the user's permissions. |
Methods inherited from class org.objectweb.joram.mom.notifications.AdminRequest |
getId |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
SetRightRequest
public SetRightRequest(java.lang.String id,
AgentId client,
int right)
- Constructs a
SetRightRequest
instance.
- Parameters:
id
- Identifier of the request, may be null.client
- AgentId of client which right is to be set,
null
for all users.right
- Right to grant, authorized values: -3, -2, -1, 1, 2, 3.
getClient
public AgentId getClient()
- Returns the AgentId of the client which right is set.
getRight
public int getRight()
- Returns the right to set, (-)3 for (un)setting an admin right, (-)2 for
(un)setting a writing permission, (-)1 for (un)setting a reading
permission, and 0 for removing all the user's permissions.
Copyright ? 2004 Scalagent - All rights reserved