Oracle Collaboration Suite Discussions Web Services Java API Reference
10g (10.1.2.2)

Part No. B28210-01


oracle.discussions.ws.beans
Class GranteeRole

java.lang.Object
  extended byoracle.discussions.ws.beans.GranteeRole


public class GranteeRole
extends java.lang.Object

Represents the role of a Oracle Discussions user, on a container.

See Also:
Role.

Constructor Summary
GranteeRole()
          Default constructor

 

Method Summary
 java.lang.String getEmail()
          Returns the email address of the user, holding a role on a container.
 Role getRole()
          Returns the role of a user, on a container.
 boolean isInherited()
          Returns if the role for the user is inherited from the user's role on the parent container.
 void setEmail(java.lang.String email)
          Sets the email id of the user, holding a role on a container.
 void setRole(Role role)
          Sets the role of the user on a container.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

GranteeRole

public GranteeRole()
Default constructor

Method Detail

setRole

public void setRole(Role role)
Sets the role of the user on a container.
Parameters:
role - - Role of a user

getRole

public Role getRole()
Returns the role of a user, on a container.
Returns:
Role - User's role.

setEmail

public void setEmail(java.lang.String email)
Sets the email id of the user, holding a role on a container.

The email id should be of the form <string>@<email-domain>. The email domain should be same as the domain configured for Discussions internal user.

Parameters:
email - - user's email.

getEmail

public java.lang.String getEmail()
Returns the email address of the user, holding a role on a container.
Returns:
String - email id of the user.

isInherited

public boolean isInherited()
Returns if the role for the user is inherited from the user's role on the parent container.

Returns true, if the role for a user is inherited from the parent container.
Discussions role scheme is hierarchial. A user holding a role on a container is automatically granted a highest possible role on the child container. For example, if a user A holds a category administrator on a category C, he is granted a role of a forum moderator on a child forum F, of category C.

Returns:
boolean - Status indicating if the role is inherited.

Copyright © 2005, Oracle. All rights reserved.