Clearspace API (2.5.29) Core Javadocs

com.jivesoftware.community
Class PermissionType

java.lang.Object
  extended by com.jivesoftware.community.PermissionType

public class PermissionType
extends Object

A class to represent the two modes of permissions - additive and negative. Additive permissions are permissions that should be 'added' to the permissions retrieved from a parent object(s), while negative permissions are permissions that permission should be ' revoked' or 'removed' from permissions retrieved from parent object(s).


Field Summary
static PermissionType ADDITIVE
          The additive permission type indicates that the permission should be 'added' to the permissions retrieved from a parent object(s).
static PermissionType NEGATIVE
          The negative permission type indicates that the permission should be 'revoked' or 'removed' from permissions retrieved from parent object(s).
 
Method Summary
 boolean equals(Object object)
           
 int getID()
          Returns the id of the PermissionType
 int hashCode()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

ADDITIVE

public static final PermissionType ADDITIVE
The additive permission type indicates that the permission should be 'added' to the permissions retrieved from a parent object(s). This means that if the permission has been already set in a parent object, it will be inherited by all child objects.

As an example, setting an 'additive' permission to read messages for a community will cause that permission to be inherited by all child communities asuch that the final permissions for child communities will be the global permissions, plus parent community permissions (recursively up the community tree) plus the individual community specific permissions.


NEGATIVE

public static final PermissionType NEGATIVE
The negative permission type indicates that the permission should be 'revoked' or 'removed' from permissions retrieved from parent object(s). This means that if the permission has been already set in a parent object that permission will be removed and will not be inherited for the object for which permissions are being set upon.

As an example, setting a 'negative' permission to read messages for a community will cause that permission to be removed from permissions inherited from parent communities and the global permissions. Thus that permission will no longer be inherited by all child communities such that the final permissions for that community and all child communities will not include the specified permission.

Method Detail

getID

public int getID()
Returns the id of the PermissionType

Returns:
the id of the PermissionType.

equals

public boolean equals(Object object)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

Clearspace Project Page

Copyright © 1999-2007 Jive Software.