|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.cc.framework.security.Permission
Base class for all permissions
An implementation of a permission can be accessed with the factory method parse().
Field Summary | |
private java.lang.String |
message
Additional message text which can be assigned to the permission |
private static long |
serialVersionUID
Serial Version UID |
Constructor Summary | |
Permission()
Constructor for Permission |
|
Permission(java.lang.String message)
Constructor for Permission |
Method Summary | |
protected abstract java.lang.String |
getDefaultMessage()
If no message is assigned to the permission this method returns a default message. |
java.lang.String |
getMessage()
Returns the message assigned to the permission |
abstract boolean |
isGranted(Principal principal)
Checks if the permission is granted. |
abstract boolean |
isGranted(Principal principal,
java.util.List notGranted)
Checks if the permission is granted. |
void |
setMessage(java.lang.String string)
Sets the message |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
private static final long serialVersionUID
private java.lang.String message
Constructor Detail |
public Permission()
public Permission(java.lang.String message)
message
- A message assigned to the permissionMethod Detail |
public abstract boolean isGranted(Principal principal)
principal
- Principal
public abstract boolean isGranted(Principal principal, java.util.List notGranted)
principal
- PrincipalnotGranted
- List with Permission
protected abstract java.lang.String getDefaultMessage()
public java.lang.String getMessage()
public void setMessage(java.lang.String string)
string
- Message
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |