org.apache.jackrabbit.core.security.authorization
Class Permission
java.lang.Object
org.apache.jackrabbit.core.security.authorization.Permission
public final class Permission
- extends Object
Permission...
|
Method Summary |
static int |
diff(int permissions,
int otherPermissions)
Returns those bits from permissions that are not present in
the otherPermissions, i.e. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NONE
public static final int NONE
- See Also:
- Constant Field Values
READ
public static final int READ
- See Also:
- Constant Field Values
SET_PROPERTY
public static final int SET_PROPERTY
- See Also:
- Constant Field Values
ADD_NODE
public static final int ADD_NODE
- See Also:
- Constant Field Values
REMOVE_NODE
public static final int REMOVE_NODE
- See Also:
- Constant Field Values
REMOVE_PROPERTY
public static final int REMOVE_PROPERTY
- See Also:
- Constant Field Values
READ_AC
public static final int READ_AC
- See Also:
- Constant Field Values
MODIFY_AC
public static final int MODIFY_AC
- See Also:
- Constant Field Values
NODE_TYPE_MNGMT
public static final int NODE_TYPE_MNGMT
- See Also:
- Constant Field Values
VERSION_MNGMT
public static final int VERSION_MNGMT
- See Also:
- Constant Field Values
LOCK_MNGMT
public static final int LOCK_MNGMT
- See Also:
- Constant Field Values
LIFECYCLE_MNGMT
public static final int LIFECYCLE_MNGMT
- See Also:
- Constant Field Values
RETENTION_MNGMT
public static final int RETENTION_MNGMT
- See Also:
- Constant Field Values
MODIFY_CHILD_NODE_COLLECTION
public static final int MODIFY_CHILD_NODE_COLLECTION
- See Also:
- Constant Field Values
NODE_TYPE_DEF_MNGMT
public static final int NODE_TYPE_DEF_MNGMT
- See Also:
- Constant Field Values
NAMESPACE_MNGMT
public static final int NAMESPACE_MNGMT
- See Also:
- Constant Field Values
WORKSPACE_MNGMT
public static final int WORKSPACE_MNGMT
- See Also:
- Constant Field Values
PRIVILEGE_MNGMT
public static final int PRIVILEGE_MNGMT
- See Also:
- Constant Field Values
ALL
public static final int ALL
- See Also:
- Constant Field Values
Permission
public Permission()
diff
public static int diff(int permissions,
int otherPermissions)
- Returns those bits from
permissions that are not present in
the otherPermissions, i.e. subtracts the other permissions
from permissions.
If the specified otherPermissions do not intersect with
permissions, permissions are returned.
If permissions is included in otherPermissions,
NONE is returned.
- Parameters:
permissions - otherPermissions -
- Returns:
- the differences of the 2 permissions or
NONE.
Copyright © 2004-2012 The Apache Software Foundation. All Rights Reserved.