|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Object | +--arlut.csd.ganymede.PermEntry
Serializable and immutable permissions entry object, used to
store and transmit permissions for a specific DBObjectBase and DBObjectBaseField.
Used in conjunction with
PermissionMatrixDBField
and PermMatrix to handle Permissions
in a Role object in the Ganymede server.
| Field Summary | |
private boolean |
create
|
private boolean |
delete
|
private boolean |
editable
|
static PermEntry |
fullPerms
|
private byte |
index
|
private boolean |
indexSet
|
static PermEntry |
noPerms
|
private static PermEntry[] |
permObs
|
(package private) static long |
serialVersionUID
|
static PermEntry |
viewPerms
|
private boolean |
visible
|
| Constructor Summary | |
PermEntry(boolean visible,
boolean editable,
boolean create,
boolean delete)
|
|
PermEntry(java.io.DataInput in)
|
|
PermEntry(PermEntry orig)
|
|
| Method Summary | |
(package private) static void |
|
private void |
addString(java.lang.StringBuffer x,
java.lang.String y)
|
private void |
calcIndex()
|
java.lang.String |
difference(PermEntry p)
This method returns a textual description of the changes between this PermEntry and <p> |
(package private) void |
emit(java.io.DataOutput out)
|
boolean |
equals(java.lang.Object obj)
|
static PermEntry |
getPermEntry(boolean visible,
boolean editable,
boolean create,
boolean delete)
This static method returns a reference to an immutable PermEntry object with the requested privilege bits set. |
static PermEntry |
getPermEntry(byte index)
This static method returns a reference to an immutable PermEntry object with the requested privilege bits set. |
static PermEntry |
getPermEntry(java.io.DataInput in)
This static method reads a PermEntry object from the given DataInput stream and returns an immutable PermEntry with the appropriate bits set. |
java.lang.String |
getXMLCode()
|
byte |
indexNum()
This method returns a bit coded byte value representing the permission bits set in this PermEntry object. |
PermEntry |
intersection(PermEntry p)
This method returns an immutable PermEntry that allows all permissions allowed by the logical intersection of this PermEntry and p. |
boolean |
isCreatable()
This method returns true if the this entry in a PermMatrix is granted
creation privilege. |
boolean |
isDeletable()
This method returns true if the this entry in a PermMatrix is granted
deletion privilege. |
boolean |
isEditable()
This method returns true if the this entry in a PermMatrix is granted
editing privilege. |
boolean |
isVisible()
This method returns true if the this entry in a PermMatrix is granted
visibility privilege. |
static void |
main(java.lang.String[] argv)
|
(package private) void |
receive(java.io.DataInput in)
|
java.lang.String |
toString()
Diagnostic aid. |
PermEntry |
union(PermEntry p)
This method returns an immutable PermEntry that allows all permissions allowed by the logical union of this PermEntry and p. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait |
| Field Detail |
private static PermEntry[] permObs
public static final PermEntry fullPerms
public static final PermEntry noPerms
public static final PermEntry viewPerms
static final long serialVersionUID
private boolean visible
private boolean editable
private boolean create
private boolean delete
private transient byte index
private transient boolean indexSet
| Constructor Detail |
public PermEntry(boolean visible,
boolean editable,
boolean create,
boolean delete)
public PermEntry(java.io.DataInput in)
throws java.io.IOException
public PermEntry(PermEntry orig)
| Method Detail |
static void()
public static void main(java.lang.String[] argv)
public static PermEntry getPermEntry(boolean visible,
boolean editable,
boolean create,
boolean delete)
This static method returns a reference to an immutable PermEntry object with the requested privilege bits set.
public static PermEntry getPermEntry(byte index)
This static method returns a reference to an immutable PermEntry object with the requested privilege bits set.
public static PermEntry getPermEntry(java.io.DataInput in)
throws java.io.IOException
This static method reads a PermEntry object from the given DataInput stream and returns an immutable PermEntry with the appropriate bits set.
public boolean equals(java.lang.Object obj)
equals in class java.lang.Object
void emit(java.io.DataOutput out)
throws java.io.IOException
void receive(java.io.DataInput in)
throws java.io.IOException
public boolean isVisible()
PermMatrix is granted
visibility privilege.public boolean isEditable()
PermMatrix is granted
editing privilege.public boolean isCreatable()
PermMatrix is granted
creation privilege.public boolean isDeletable()
PermMatrix is granted
deletion privilege.public byte indexNum()
This method returns a bit coded byte value representing the permission bits set in this PermEntry object. This byte may be used to access a pre-allocated PermEntry object using the static getPermEntry() method.
public final PermEntry union(PermEntry p)
This method returns an immutable PermEntry that allows all permissions allowed by the logical union of this PermEntry and p.
public final PermEntry intersection(PermEntry p)
This method returns an immutable PermEntry that allows all permissions allowed by the logical intersection of this PermEntry and p.
public final java.lang.String difference(PermEntry p)
This method returns a textual description of the changes between this PermEntry and <p>
private void addString(java.lang.StringBuffer x,
java.lang.String y)
public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String getXMLCode()
private void calcIndex()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||