|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.security.Permission com.cc.framework.security.StaticPermission
This class represents a static permission (true or false)
Field Summary | |
static Permission |
DENIED
static permission: DENIED |
private boolean |
granted
the static permission |
static Permission |
GRANTED
static permission: GRANTED |
private static long |
serialVersionUID
Serial Version UID |
Fields inherited from class com.cc.framework.security.Permission |
|
Constructor Summary | |
private |
StaticPermission(boolean granted)
Constructor for StaticPermission |
Method Summary | |
boolean |
equals(java.lang.Object obj)
|
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 Permission |
parse(java.lang.String permissionLiteral)
Creates for the argument (role name) an Object of type Permission. |
java.lang.String |
toString()
Returns a String representation of the permission |
Methods inherited from class com.cc.framework.security.Permission |
getMessage, setMessage |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
public static final Permission DENIED
public static final Permission GRANTED
private boolean granted
Constructor Detail |
private StaticPermission(boolean granted)
granted
- the permissionMethod Detail |
public boolean isGranted(Principal principal)
Permission
isGranted
in class Permission
principal
- Principal
Permission.isGranted(Principal)
public boolean isGranted(Principal principal, java.util.List notGranted)
Permission
isGranted
in class Permission
principal
- PrincipalnotGranted
- List with Permission
Permission.isGranted(Principal, List)
protected java.lang.String getDefaultMessage()
Permission
getDefaultMessage
in class Permission
Permission.getDefaultMessage()
public static Permission parse(java.lang.String permissionLiteral) throws PermissionException
permissionLiteral
- String to parse
PermissionException
- if the argument is not matchedpublic boolean equals(java.lang.Object obj)
Object.equals(java.lang.Object)
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |