Oracle© Collaboration Suite Workspaces Web Services API Reference
10g Release 1 (10.1.2.2)

Part No. B28209-01


oracle.workspaces.ws.beans
Class Grants

java.lang.Object
  extended byoracle.workspaces.ws.beans.Grants


public class Grants
extends java.lang.Object

This class represents the role assigned to a user. The role defines the set of privileges a user can enjoy while accessing a library item.


Method Summary
 java.lang.String getGrantee()
          Gets the nick name of the grantee.
 java.lang.String[] getNativeRoles()
          Gets the role native to content services (for example, Author role).
 java.lang.String getPropagatedFrom()
          Gets the parent folder id from which grants are inherited.
 java.lang.String getRole()
          Gets the role.
 boolean isAllUsersGranteeSet()
          Gets all users as grantee.
 boolean isPropagating()
          Gets the grants inherited from parent folder.
 void setAllUsersGrantee()
          Sets all users as grantee.
 void setGrantee(java.lang.String cuser)
          Sets the grantee.
 void setRole(java.lang.String croletype)
          Sets the role.

 

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

 

Method Detail

setGrantee

public void setGrantee(java.lang.String cuser)
Sets the grantee.
Parameters:
cuser -

getGrantee

public java.lang.String getGrantee()
Gets the nick name of the grantee.
Returns:
nick name of the grantee.

setAllUsersGrantee

public void setAllUsersGrantee()
Sets all users as grantee.

isAllUsersGranteeSet

public boolean isAllUsersGranteeSet()
Gets all users as grantee.

setRole

public void setRole(java.lang.String croletype)
Sets the role. The valid roles are "READER", "WRITER", "ADMIN".
Parameters:
croletype -

getRole

public java.lang.String getRole()
Gets the role. The valid roles are "READER", "WRITER", "ADMIN".
Returns:
role

getNativeRoles

public java.lang.String[] getNativeRoles()
Gets the role native to content services (for example, Author role).
Returns:
native roles.

isPropagating

public boolean isPropagating()
Gets the grants inherited from parent folder.
Returns:
propagatedGrants

getPropagatedFrom

public java.lang.String getPropagatedFrom()
Gets the parent folder id from which grants are inherited.
Returns:
propagatedGrants

Copyright © 2001, 2006, Oracle. All rights reserved.