com.filenet.wcm.toolkit.util.security
Class GranteeRef

java.lang.Object
  extended bycom.filenet.wcm.toolkit.util.security.GranteeRef
All Implemented Interfaces:
java.lang.Comparable

public class GranteeRef
extends java.lang.Object
implements java.lang.Comparable

This class is an implementation of the security grantee structure.


Field Summary
 int AccessType
          Indicates whether the Permission returned by getPermission object will have TYPE_ALLOW or TYPE_DENY
 java.lang.String DisplayName
          Variable indicating the grantee display name.
 java.lang.String Id
          Variable indicating the grantee id (sid).
 java.lang.String Name
          Variable indicating the grantee name.
 java.lang.String ShortName
          Variable indicating the grantee short name.
 int Type
          Variable indicating the grantee type.
 
Constructor Summary
GranteeRef()
           
 
Method Summary
 int compareTo(java.lang.Object o)
          Compares this object to another GranteeRef, baed on the value of DisplayName field.
 com.filenet.wcm.api.Permission getPermission(int access)
          Creates Permission object from this GranteeRef object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

Name

public java.lang.String Name
Variable indicating the grantee name.


ShortName

public java.lang.String ShortName
Variable indicating the grantee short name.


DisplayName

public java.lang.String DisplayName
Variable indicating the grantee display name.


Id

public java.lang.String Id
Variable indicating the grantee id (sid).


Type

public int Type
Variable indicating the grantee type.


AccessType

public int AccessType
Indicates whether the Permission returned by getPermission object will have TYPE_ALLOW or TYPE_DENY

Constructor Detail

GranteeRef

public GranteeRef()
Method Detail

compareTo

public int compareTo(java.lang.Object o)
Compares this object to another GranteeRef, baed on the value of DisplayName field.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
o - another GranteeRef object
Returns:
int

getPermission

public com.filenet.wcm.api.Permission getPermission(int access)
Creates Permission object from this GranteeRef object. Access type is the value of AccessType field

Parameters:
access - access level
Returns:
Permission object


© Copyright IBM Corp. 2002, 2007. All Rights Reserved.