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
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 otherBits do not intersect with
bits, bits are returned.
If bits is included otherBits,
NONE is returned.
- Parameters:
permissions - otherPermissions -
- Returns:
- the differences of the 2 permissions or
NONE.
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.