info.magnolia.cms.security
Interface AccessManager

All Superinterfaces:
java.io.Serializable
All Known Implementing Classes:
AccessManagerImpl

public interface AccessManager
extends java.io.Serializable

Handles ACL checks and knows the users permissions.

Version:
$Revision:2558 $ ($Author:scharles $)
Author:
Sameer Charles

Method Summary
 java.util.List<Permission> getPermissionList()
          Get permission list assigned to this access manager.
 long getPermissions(java.lang.String path)
          Get permissions assigned to the given path.
 boolean isGranted(java.lang.String path, long permissions)
          Determines wether the specified permissions are granted to the given path.
 void setPermissionList(java.util.List<Permission> permissions)
          Sets the list of permissions this manager will use to determine access, implementation is free to define the structure of this list.
 

Method Detail

isGranted

boolean isGranted(java.lang.String path,
                  long permissions)
Determines wether the specified permissions are granted to the given path.

Parameters:
path - path for which permissions are checked
permissions - permission mask
Returns:
true if this accessmanager has permissions to the specified path

setPermissionList

void setPermissionList(java.util.List<Permission> permissions)
Sets the list of permissions this manager will use to determine access, implementation is free to define the structure of this list.

Parameters:
permissions -

getPermissionList

java.util.List<Permission> getPermissionList()
Get permission list assigned to this access manager.


getPermissions

long getPermissions(java.lang.String path)
Get permissions assigned to the given path.

Parameters:
path - for which permissions are requested
Returns:
permission mask
See Also:
all possible permissions


Copyright © 2003-2011 Magnolia International Ltd.. All Rights Reserved.