info.magnolia.cms.security
Interface AccessManager

All Superinterfaces:
Serializable
All Known Implementing Classes:
AccessManagerImpl

public interface AccessManager
extends Serializable

Handles ACL checks and knows the users permissions.

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

Method Summary
 List<Permission> getPermissionList()
          Get permission list assigned to this access manager.
 long getPermissions(String path)
          Get permissions assigned to the given path.
 boolean isGranted(String path, long permissions)
          Determines wether the specified permissions are granted to the given path.
 void setPermissionList(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(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(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

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


getPermissions

long getPermissions(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-2013 Magnolia International Ltd.. All Rights Reserved.