|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--net.javamud.data.Permission
A Permission consists of a Right and a User.
Permissions are immutable and therefor thread safe.
| Field Summary | |
protected Right |
right
Right associated with this Permission |
protected UserIdentity |
user
Identity of User associated with this Permission. |
| Constructor Summary | |
Permission(UserIdentity uid,
Right setRight)
Constructor for the Permission object |
|
Permission(UserIdentity uid,
String setRight)
Constructor for the Permission object |
|
| Method Summary | |
int |
compareTo(Object object)
Orders by user, the right. |
boolean |
equals(Object o)
Equality test. |
Collection |
getSISObjects()
See SISCapable.getSISObjects(). |
boolean |
implies(Permission perm)
Does this imply the Permission perm |
boolean |
implies(UserIdentity uid,
Right implied)
Does this imply the Right implied ? |
boolean |
implies(UserIdentity uid,
String implied)
Does this imply the Right implied ? |
int |
impliesQuality(Permission perm)
Returns a measure of quality of the implies match. |
int |
impliesQuality(UserIdentity uid,
Right implied)
Returns a measure of quality of the implies match. |
int |
impliesQuality(UserIdentity uid,
String implied)
Returns a measure of quality of the implies match. |
void |
updateSISObject(Object original,
Object replacement)
See SISCapable.updateSISObject(Object,Object). |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected Right right
protected UserIdentity user
| Constructor Detail |
public Permission(UserIdentity uid,
Right setRight)
setRight - Right for Permissionuid - User for Permission
public Permission(UserIdentity uid,
String setRight)
setRight - String representation of Right for Permissionuid - User for Permission| Method Detail |
public Collection getSISObjects()
SISCapable.getSISObjects().
getSISObjects in interface SISCapableSISCapable.getSISObjects().
public int compareTo(Object object)
throws ClassCastException
compareTo in interface Comparableobject - Permission to compare to.
ClassCastException - Description of the Exceptionpublic boolean equals(Object o)
equals in class Objecto - Other permission
public boolean implies(UserIdentity uid,
Right implied)
uid - User idimplied - Right to test
public boolean implies(UserIdentity uid,
String implied)
uid - User idimplied - Right to test
public boolean implies(Permission perm)
perm - The permission to test.
public int impliesQuality(UserIdentity uid,
Right implied)
uid - User to matchimplied - Right to match
Right.impliesQuality(Right)
public int impliesQuality(UserIdentity uid,
String implied)
uid - User to matchimplied - Right to match
Right.impliesQuality(Right)public int impliesQuality(Permission perm)
perm - Permision to match
Right.impliesQuality(Right)
public void updateSISObject(Object original,
Object replacement)
SISCapable.updateSISObject(Object,Object).
updateSISObject in interface SISCapableoriginal - See SISCapable.updateSISObject(Object,Object).replacement - See SISCapable.updateSISObject(Object,Object).SISCapable.updateSISObject(Object,Object)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||