|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.opencms.security.CmsPermissionSet
org.opencms.security.CmsPermissionSetCustom
public class CmsPermissionSetCustom
A custom permission set that can be modified during runtime and contains both allowed and denied permissions as bitsets.
| Field Summary |
|---|
| Fields inherited from class org.opencms.security.CmsPermissionSet |
|---|
ACCESS_CONTROL, ACCESS_DIRECT_PUBLISH, ACCESS_READ, ACCESS_VIEW, ACCESS_WRITE, m_allowed, m_denied, PERMISSION_CONTROL, PERMISSION_DIRECT_PUBLISH, PERMISSION_EMPTY, PERMISSION_FULL, PERMISSION_READ, PERMISSION_VIEW, PERMISSION_WRITE |
| Constructor Summary | |
|---|---|
CmsPermissionSetCustom()
Constructor to create an empty permission set. |
|
CmsPermissionSetCustom(CmsPermissionSet permissions)
Constructor to create a permission set with preset allowed and denied permissions from another permission set. |
|
CmsPermissionSetCustom(int allowedPermissions)
Constructor to create a permission set with preset allowed permissions. |
|
CmsPermissionSetCustom(int allowedPermissions,
int deniedPermissions)
Constructor to create a permission set with preset allowed and denied permissions. |
|
CmsPermissionSetCustom(String permissionString)
Constructor to create a permission set with preset allowed and denied permissions from a String. |
|
| Method Summary | |
|---|---|
void |
addPermissions(CmsPermissionSet permissionSet)
Sets permissions from another permission set additionally both as allowed and denied permissions. |
Object |
clone()
Returns a clone of this Objects instance. |
void |
denyPermissions(int permissions)
Sets permissions additionally as denied permissions. |
void |
grantPermissions(int permissions)
Sets permissions additionally as allowed permissions. |
void |
setPermissions(CmsPermissionSet permissionSet)
Set permissions from another permission set both as allowed and denied permissions. |
void |
setPermissions(int allowedPermissions,
int deniedPermissions)
Sets permissions as allowed and denied permissions in the permission set. |
| Methods inherited from class org.opencms.security.CmsPermissionSet |
|---|
equals, getAllowedPermissions, getDeniedPermissions, getPermissionKeys, getPermissions, getPermissionString, getPermissionValue, hashCode, requiresControlPermission, requiresDirectPublishPermission, requiresReadPermission, requiresViewPermission, requiresWritePermission, toString |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CmsPermissionSetCustom()
public CmsPermissionSetCustom(CmsPermissionSet permissions)
The permissions are read from a string representation of permissions
in the format {{+|-}{r|w|v|c|d}}*.
permissions - the set of allowed and denied permissionspublic CmsPermissionSetCustom(int allowedPermissions)
allowedPermissions - bitset of allowed permissions
public CmsPermissionSetCustom(int allowedPermissions,
int deniedPermissions)
allowedPermissions - the set of permissions to allowdeniedPermissions - the set of permissions to denypublic CmsPermissionSetCustom(String permissionString)
The permissions are read from a string representation of permissions
in the format {{+|-}{r|w|v|c|d}}*.
permissionString - the string representation of allowed and denied permissions| Method Detail |
|---|
public void addPermissions(CmsPermissionSet permissionSet)
permissionSet - the set of permissions to set additionally.public Object clone()
clone in class Objectpublic void denyPermissions(int permissions)
permissions - bitset of permissions to denypublic void grantPermissions(int permissions)
permissions - bitset of permissions to allowpublic void setPermissions(CmsPermissionSet permissionSet)
Permissions formerly set are overwritten.
permissionSet - the set of permissions
public void setPermissions(int allowedPermissions,
int deniedPermissions)
Permissions formerly set are overwritten.
allowedPermissions - bitset of permissions to allowdeniedPermissions - bitset of permissions to deny
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||