org.objectweb.joram.mom.notifications

Class SetRightRequest

Implemented Interfaces:
Cloneable, Serializable

public class SetRightRequest
extends AdminRequest

A SetRightRequest instance is used by a client agent for setting users right on a destination.

Field Summary

Fields inherited from class fr.dyade.aaa.agent.Notification

persistent

Constructor Summary

SetRightRequest(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 org.objectweb.joram.mom.notifications.AbstractNotification

getClientContext, toString

Methods inherited from class fr.dyade.aaa.agent.Notification

clone, getContext, setContext, toString

Constructor Details

SetRightRequest

public SetRightRequest(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.

Method Details

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