Joram ${version}

org.objectweb.joram.mom.notifications
Class SetRightRequest

java.lang.Object
  extended byfr.dyade.aaa.agent.Notification
      extended byorg.objectweb.joram.mom.notifications.AbstractNotification
          extended byorg.objectweb.joram.mom.notifications.AdminRequest
              extended byorg.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

Field Summary
 
Fields inherited from class fr.dyade.aaa.agent.Notification
detachable, detached, persistent
 
Constructor Summary
SetRightRequest(java.lang.String id, fr.dyade.aaa.agent.AgentId client, int right)
          Constructs a SetRightRequest instance.
 
Method Summary
 fr.dyade.aaa.agent.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, getPersistent, setPersistent, toString
 
Methods inherited from class fr.dyade.aaa.agent.Notification
clone, getContext, getMessageId, isPersistent, setContext
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SetRightRequest

public SetRightRequest(java.lang.String id,
                       fr.dyade.aaa.agent.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 Detail

getClient

public fr.dyade.aaa.agent.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.


Joram ${version}

Copyright © 2005 Scalagent - All rights reserved