Class Permission
- java.lang.Object
-
- org.apache.jackrabbit.core.security.authorization.Permission
-
public final class Permission extends Object
Permission
...
-
-
Field Summary
Fields Modifier and Type Field Description static int
ADD_NODE
static int
ALL
static int
LIFECYCLE_MNGMT
static int
LOCK_MNGMT
static int
MODIFY_AC
static int
MODIFY_CHILD_NODE_COLLECTION
static int
NAMESPACE_MNGMT
static int
NODE_TYPE_DEF_MNGMT
static int
NODE_TYPE_MNGMT
static int
NONE
static int
PRIVILEGE_MNGMT
static int
READ
static int
READ_AC
static int
REMOVE_NODE
static int
REMOVE_PROPERTY
static int
RETENTION_MNGMT
static int
SET_PROPERTY
static int
VERSION_MNGMT
static int
WORKSPACE_MNGMT
-
Constructor Summary
Constructors Constructor Description Permission()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static int
diff(int permissions, int otherPermissions)
Returns those bits frompermissions
that are not present in theotherPermissions
, i.e.
-
-
-
Field Detail
-
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
-
-
Method Detail
-
diff
public static int diff(int permissions, int otherPermissions)
Returns those bits frompermissions
that are not present in theotherPermissions
, i.e. subtracts the other permissions from permissions.
If the specifiedotherPermissions
do not intersect withpermissions
,permissions
are returned.
Ifpermissions
is included inotherPermissions
,NONE
is returned.- Parameters:
permissions
-otherPermissions
-- Returns:
- the differences of the 2 permissions or
.NONE
-
-