public class AdminRights extends java.lang.Object implements Rights, java.io.Serializable
Admin resources come with rights objects made of one mandatory bitfield of a variable number of permissions.
Modifier and Type | Field and Description |
---|---|
static int |
ADLR_DENIED_ACCESS
Refresh: DENIED permissions bit
|
static int |
ADLR_REFRESH_ACCESS
Refresh: REFRESH permissions bit
|
(package private) static int |
ADLR_SIZE
Refresh: size of the bitfield
|
static int |
ADLU_CREATE_ACCESS
CREATE permissions bit
|
static int |
ADLU_DELETE_ACCESS
DELETE permissions bit
|
static int |
ADLU_DENIED_ACCESS
DENIED permissions bit
|
static int |
ADLU_ENUMERATE_ACCESS
ENUMERATE permissions bit
|
static int |
ADLU_GROUP_ACCESS
PASSWORD permissions bit
|
static int |
ADLU_PASSWORD_ACCESS
PASSWORD permissions bit
|
static int |
ADLU_READ_ACCESS
READ permissions bit
|
(package private) static int |
ADLU_SIZE
User: size of the bitfield
|
static int |
ADLU_WRITE_ACCESS
WRITE permissions bit
|
static int |
ADMT_LEAF_REFRESH
Rights variation type
|
static int |
ADMT_LEAF_USER
Rights variation type
|
static int |
ADMT_PATH
Rights variation type
|
static int |
ADTP_DENIED_ACCESS
Path: DENIED permissions bit
|
(package private) static int |
ADTP_SIZE
Path: size of the bitfield
|
static int |
ADTP_UNLIMITED_ACCESS
Path: UNLIMITED permissions bit
|
(package private) BitSet |
permissions
mandatory field - permissions
|
(package private) int |
varType
mandatory field - variation type
|
Constructor and Description |
---|
AdminRights()
Default constructor.
|
AdminRights(java.lang.Integer type)
Constructor.
|
AdminRights(java.lang.Integer type,
BitSet permissions)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object[]> |
getAttributes()
Returns its attributes map.
|
(package private) boolean |
getPermission(int index)
Gets the indexed bit of permissions.
|
BitSet |
getPermissions()
Gets the entire set of permissions.
|
java.lang.String |
getRightsName()
Returns rights name, a directory known class name.
|
int |
getType()
Gets the type of the bitfield.
|
java.lang.String |
toString()
Converts this object to string.
|
public static final int ADMT_PATH
public static final int ADMT_LEAF_REFRESH
public static final int ADTP_UNLIMITED_ACCESS
public static final int ADTP_DENIED_ACCESS
static final int ADTP_SIZE
public static final int ADMT_LEAF_USER
public static final int ADLU_ENUMERATE_ACCESS
public static final int ADLU_PASSWORD_ACCESS
public static final int ADLU_GROUP_ACCESS
public static final int ADLU_READ_ACCESS
public static final int ADLU_WRITE_ACCESS
public static final int ADLU_CREATE_ACCESS
public static final int ADLU_DELETE_ACCESS
public static final int ADLU_DENIED_ACCESS
static final int ADLU_SIZE
public static final int ADLR_REFRESH_ACCESS
public static final int ADLR_DENIED_ACCESS
static final int ADLR_SIZE
int varType
BitSet permissions
public AdminRights()
public AdminRights(java.lang.Integer type)
type
- type of permissions bitfieldpublic AdminRights(java.lang.Integer type, BitSet permissions)
type
- type of permissions bitfieldpermissions
- bitfield with permissionsboolean getPermission(int index)
index
- index of the permissions bit to querypublic int getType()
public BitSet getPermissions()
BitSet
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String getRightsName()
getRightsName
in interface Rights
public java.util.Map<java.lang.String,java.lang.Object[]> getAttributes()
getAttributes
in interface Rights