|
Clearspace API (2.5.29) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.PermissionType
public class PermissionType
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 |
|---|
public static final PermissionType ADDITIVE
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.
public static final PermissionType NEGATIVE
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 |
|---|
public int getID()
public boolean equals(Object object)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Object
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||