|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.javamud.data.ACL
Access Control List. Provides a permissions structure for the JavaMud.
Be careful because ACLs Inherit separately from the MudObject hierarchy.
This allows permissions to remain consistent even as MudObjects are moved
and deleted during the running of the MUD.
I thought it would be a bad thing to change permissions on an item just
because it was picked up from it's room and so now is contained by a
player...
Field Summary | |
protected Set |
Add
Set of Permissions set on this ACL. |
protected boolean |
COWAdd
Copy On Write on Add . |
protected boolean |
COWExc
Copy On Write on Exclude . |
protected Set |
Exclude
Set of Permissions excluded (not inherited) on this ACL. |
protected ACL |
Inherited
Parent ACL from which permissions are inherited. |
Constructor Summary | |
ACL()
|
Method Summary | |
Object |
clone()
Sets Copy On Write flags then super .clone()s. |
boolean |
equals(Object object)
(this == object). |
Collection |
getSISObjects()
Gets the Objects that can be reviewed for SIS. |
boolean |
implies(Permission perm)
Returns true if this ACL implies Permission perm . |
boolean |
isInherited(Permission perm)
Get whether or not the Permission perm is inherited or not. |
void |
setParent(MudObject mo)
Change where this ACL Inherits permissions from. |
void |
updateSISObject(Object original,
Object replacement)
Called by a SIS Groveller to replace an object with a different object that equals() it. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected Set Add
protected boolean COWAdd
Add
.
protected boolean COWExc
Exclude
.
protected Set Exclude
protected ACL Inherited
Constructor Detail |
public ACL()
Method Detail |
public void setParent(MudObject mo)
mo
- The new ACL parent MudObject.public Collection getSISObjects()
Object
.equals() method.
getSISObjects
in interface SISCapable
public boolean isInherited(Permission perm)
perm
- Permission to test.
public Object clone()
super
.clone()s.
clone
in class Object
public boolean equals(Object object)
equals
in class Object
object
- Object to test for equality
SISCapable
,
SISGroveller
public boolean implies(Permission perm)
perm
- Permision to test
public void updateSISObject(Object original, Object replacement)
updateSISObject
in interface SISCapable
original
- Object to replace.replacement
- Object to replace original with.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |