com.cc.framework.security.acl
Class AccessControlList.AccessControlEnvironment

java.lang.Object
  extended bycom.cc.framework.security.acl.AccessControlList.AccessControlEnvironment
All Implemented Interfaces:
ExecutionEnvironment
Enclosing class:
AccessControlList

private static class AccessControlList.AccessControlEnvironment
extends java.lang.Object
implements ExecutionEnvironment


Field Summary
private  java.util.List messages
          This list receives the messages from all not granted permissions
private  Principal principal
          The principal that controls all access
 
Constructor Summary
AccessControlList.AccessControlEnvironment(Principal principal, java.util.List messages)
           
 
Method Summary
 AccessToken getAccess(Permission permission)
          Checks if the current principal is granted the given permission
 boolean isGranted(AccessToken token)
          Wandelt das übergebene Objekt in einen Boolean Wert um
 AccessToken not(AccessToken token)
          Negiert den übergebenen Operanden
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

principal

private Principal principal
The principal that controls all access


messages

private java.util.List messages
This list receives the messages from all not granted permissions

Constructor Detail

AccessControlList.AccessControlEnvironment

public AccessControlList.AccessControlEnvironment(Principal principal,
                                                  java.util.List messages)
Parameters:
principal - List notGranted
messages - This list receives the messages from all not granted permissions
Method Detail

getAccess

public AccessToken getAccess(Permission permission)
                      throws ExecutionException
Description copied from interface: ExecutionEnvironment
Checks if the current principal is granted the given permission

Specified by:
getAccess in interface ExecutionEnvironment
Parameters:
permission - The permission to check
Returns:
AccessToken
Throws:
ExecutionException - Wird im Falle eines allgemeinen Fehlers geworfen
See Also:
ExecutionEnvironment.getAccess(com.cc.framework.security.Permission)

isGranted

public boolean isGranted(AccessToken token)
                  throws ExecutionException
Description copied from interface: ExecutionEnvironment
Wandelt das übergebene Objekt in einen Boolean Wert um

Specified by:
isGranted in interface ExecutionEnvironment
Parameters:
token - Das umzuwandelnde Objekt
Returns:
booleaschen Wert
Throws:
ExecutionException - Wird geworfen wenn eine Typkonvertierung nicht möglich ist
See Also:
ExecutionEnvironment.isGranted(com.cc.framework.security.acl.expr.AccessToken)

not

public AccessToken not(AccessToken token)
                throws ExecutionException
Description copied from interface: ExecutionEnvironment
Negiert den übergebenen Operanden

Specified by:
not in interface ExecutionEnvironment
Parameters:
token - Der Operand
Returns:
Ergebnis der Berechnung
Throws:
ExecutionException - Wird geworfen wenn die Berechnung Aufgrund des Typs nicht möglich ist
See Also:
ExecutionEnvironment.not(com.cc.framework.security.acl.expr.AccessToken)


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.