|
WPI GDC CMS 0.0.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.wpi.gdc.cms.main.ACLEntry | +--org.wpi.gdc.cms.main.ACLUserEntry
An Access Control List entry. This class is abstract as there are two types of ACL Entries: group entries and user entries.
Field Summary | |
protected User |
myUser
|
Fields inherited from class org.wpi.gdc.cms.main.ACLEntry |
permissions |
Constructor Summary | |
ACLUserEntry(User user)
|
Method Summary | |
boolean |
checkUser(User user)
Determines if the User object passed has permissions that come from this ACL. |
boolean |
hasPermission(int flags)
Checks to see if all permissions passed (from the ACL class's
permission constants) are present on this ACLEntry. |
Methods inherited from class org.wpi.gdc.cms.main.ACLEntry |
getPermissions |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected User myUser
Constructor Detail |
public ACLUserEntry(User user)
Method Detail |
public boolean checkUser(User user)
checkUser
in class ACLEntry
user
- the user being checked as gaining permissions from this entry.public boolean hasPermission(int flags)
ACL
class's
permission constants) are present on this ACLEntry.hasPermission
in class ACLEntry
flags
- the permissions to check if are present.
|
WPI GDC CMS 0.0.1 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |