org.objectweb.joram.mom.notifications
Class SetRightRequest
- Cloneable, Serializable
public class SetRightRequest
A SetRightRequest
instance is used by a client agent
for setting users right on a destination.
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.
|
SetRightRequest
public SetRightRequest(String id,
AgentId client,
int right)
Constructs a SetRightRequest
instance.
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 B) 2004 Scalagent - All rights reserved