com.cc.framework.security.acl
Class AccessControlList

java.lang.Object
  extended bycom.cc.framework.security.Permission
      extended bycom.cc.framework.security.acl.AccessControlList
All Implemented Interfaces:
java.io.Serializable

public class AccessControlList
extends Permission

AccessControlList

Author:
P001002
See Also:
Serialized Form

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

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

expression

private Expression expression
The expression with required permissions for this access control list

Constructor Detail

AccessControlList

public AccessControlList(Expression expression)
Constructor

Parameters:
expression - Access control Expression
Method Detail

getDefaultMessage

protected java.lang.String getDefaultMessage()
Description copied from class: Permission
If no message is assigned to the permission this method returns a default message.

Specified by:
getDefaultMessage in class Permission
Returns:
String
See Also:
Permission.getDefaultMessage()

isGranted

public boolean isGranted(Principal principal,
                         java.util.List notGranted)
Description copied from class: Permission
Checks if the permission is granted. Not granted permission will be added to the specified list.

Specified by:
isGranted in class Permission
Parameters:
principal - Principal
notGranted - List with Permission
Returns:
boolean
See Also:
Permission.isGranted(com.cc.framework.security.Principal, java.util.List)

isGranted

public boolean isGranted(Principal principal)
Description copied from class: Permission
Checks if the permission is granted.

Specified by:
isGranted in class Permission
Parameters:
principal - Principal
Returns:
boolean
See Also:
Permission.isGranted(com.cc.framework.security.Principal)

parse

public static AccessControlList parse(java.lang.String permissionLiteral)
                               throws PermissionException
Creates for the argument an object of type Permission.

Legal values for an access protection:

Different permissions can be specified in a list separated by ";"

Parameters:
permissionLiteral - String to parse
Returns:
Permission
Throws:
PermissionException - if the argument is not matched

toString

public java.lang.String toString()
See Also:
Object.toString()


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