public class BitFlagsRights extends java.lang.Object implements Rights, java.io.Serializable, BitFlagsConstants
| Modifier and Type | Field and Description |
|---|---|
protected BitSet |
perms |
BIT_CREATE_ACCESS, BIT_DELETE_ACCESS, BIT_DENIED_ACCESS, BIT_READ_ACCESS, BIT_WRITE_ACCESS, BITSET_SIZE| Constructor and Description |
|---|
BitFlagsRights()
Default constructor.
|
BitFlagsRights(BitSet perms)
Constructor which initializes the permissions from the given argument.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
get(int index)
Gets the value (set or unset) of the indexed bit in the stored permissons.
|
java.util.Map<java.lang.String,java.lang.Object[]> |
getAttributes()
Returns its attributes map.
|
BitSet |
getPermissions()
Gets the entire set of permissions.
|
java.lang.String |
getRightsName()
Returns rights name that is registered in the directory.
|
java.lang.String |
toString()
Converts this object into a string.
|
protected BitSet perms
public BitFlagsRights()
public BitFlagsRights(BitSet perms)
perms - Bitfield of perms (CDRWN).public boolean get(int index)
index - The index of the permissons bit to query.true if the indexed bit is set.public BitSet getPermissions()
BitSet.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getRightsName()
getRightsName in interface Rightspublic java.util.Map<java.lang.String,java.lang.Object[]> getAttributes()
getAttributes in interface Rights