|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectccc.domain.AccessPermission
public class AccessPermission
An access permission for a resource.
Constructor Summary | |
---|---|
protected |
AccessPermission()
Constructor. |
|
AccessPermission(boolean canRead,
boolean canWrite,
Principal principal)
Constructor. |
Method Summary | |
---|---|
boolean |
allowsRead(UserEntity user)
Check whether this permission allows the specified user to read. |
boolean |
allowsWrite(UserEntity user)
Check whether this permission allows the specified user to write. |
ACL.Entry |
createEntry()
Create a new permission entry. |
boolean |
equals(java.lang.Object obj)
|
Principal |
getPrincipal()
Accessor. |
int |
hashCode()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
protected AccessPermission()
public AccessPermission(boolean canRead, boolean canWrite, Principal principal)
canRead
- Can the principal perform a read.canWrite
- Can the principal perform a write.principal
- The principal this permission manages.Method Detail |
---|
public boolean allowsRead(UserEntity user)
user
- The user to test.
public boolean allowsWrite(UserEntity user)
user
- The user to test.
public Principal getPrincipal()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public ACL.Entry createEntry()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |