public final class Permission extends Object
Permission
...Modifier and Type | Field and 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 and Description |
---|
Permission() |
Modifier and Type | Method and Description |
---|---|
static int |
diff(int permissions,
int otherPermissions)
Returns those bits from
permissions that are not present in
the otherPermissions , i.e. |
public static final int NONE
public static final int READ
public static final int SET_PROPERTY
public static final int ADD_NODE
public static final int REMOVE_NODE
public static final int REMOVE_PROPERTY
public static final int READ_AC
public static final int MODIFY_AC
public static final int NODE_TYPE_MNGMT
public static final int VERSION_MNGMT
public static final int LOCK_MNGMT
public static final int LIFECYCLE_MNGMT
public static final int RETENTION_MNGMT
public static final int MODIFY_CHILD_NODE_COLLECTION
public static final int NODE_TYPE_DEF_MNGMT
public static final int NAMESPACE_MNGMT
public static final int WORKSPACE_MNGMT
public static final int PRIVILEGE_MNGMT
public static final int ALL
public static int diff(int permissions, int otherPermissions)
permissions
that are not present in
the otherPermissions
, i.e. subtracts the other permissions
from permissions.otherPermissions
do not intersect with
permissions
, permissions
are returned.permissions
is included in otherPermissions
,
NONE
is returned.permissions
- otherPermissions
- NONE
.Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.