|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.cc.framework.security.Permission
com.cc.framework.security.acl.AccessControlList
AccessControlList
| Nested Class Summary | |
private static class |
AccessControlList.AccessControlEnvironment
|
| Field Summary | |
private Expression |
expression
The expression with required permissions for this access control list |
private static long |
serialVersionUID
Serial Version UID |
| Fields inherited from class com.cc.framework.security.Permission |
|
| Constructor Summary | |
AccessControlList(Expression expression)
Constructor |
|
| Method Summary | |
protected java.lang.String |
getDefaultMessage()
If no message is assigned to the permission this method returns a default message. |
boolean |
isGranted(Principal principal)
Checks if the permission is granted. |
boolean |
isGranted(Principal principal,
java.util.List notGranted)
Checks if the permission is granted. |
static AccessControlList |
parse(java.lang.String permissionLiteral)
Creates for the argument an object of type Permission. |
java.lang.String |
toString()
|
| Methods inherited from class com.cc.framework.security.Permission |
getMessage, setMessage |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
private static final long serialVersionUID
private Expression expression
| Constructor Detail |
public AccessControlList(Expression expression)
expression - Access control Expression| Method Detail |
protected java.lang.String getDefaultMessage()
Permission
getDefaultMessage in class PermissionPermission.getDefaultMessage()
public boolean isGranted(Principal principal,
java.util.List notGranted)
Permission
isGranted in class Permissionprincipal - PrincipalnotGranted - List with Permission
Permission.isGranted(com.cc.framework.security.Principal, java.util.List)public boolean isGranted(Principal principal)
Permission
isGranted in class Permissionprincipal - Principal
Permission.isGranted(com.cc.framework.security.Principal)
public static AccessControlList parse(java.lang.String permissionLiteral)
throws PermissionException
Legal values for an access protection:
permissionLiteral - String to parse
PermissionException - if the argument is not matchedpublic java.lang.String toString()
Object.toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||