info.magnolia.cms.security
Class AccessManagerImpl

java.lang.Object
  extended by info.magnolia.cms.security.AccessManagerImpl
All Implemented Interfaces:
AccessManager, Serializable

public class AccessManagerImpl
extends Object
implements AccessManager, Serializable

Default implementation for AccessManager.

Version:
$Id: AccessManagerImpl.java 41137 2011-01-06 18:19:25Z gjoseph $
See Also:
Serialized Form

Constructor Summary
AccessManagerImpl()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccessManagerImpl

public AccessManagerImpl()
Method Detail

isGranted

public boolean isGranted(String path,
                         long permissions)
Description copied from interface: AccessManager
Determines wether the specified permissions are granted to the given path.

Specified by:
isGranted in interface AccessManager
Parameters:
path - path for which permissions are checked
permissions - permission mask
Returns:
true if this accessmanager has permissions to the specified path

setPermissionList

public void setPermissionList(List<Permission> permissions)
Description copied from interface: AccessManager
Sets the list of permissions this manager will use to determine access, implementation is free to define the structure of this list.

Specified by:
setPermissionList in interface AccessManager

getPermissionList

public List<Permission> getPermissionList()
Description copied from interface: AccessManager
Get permission list assigned to this access manager.

Specified by:
getPermissionList in interface AccessManager

getPermissions

public long getPermissions(String path)
Description copied from interface: AccessManager
Get permissions assigned to the given path.

Specified by:
getPermissions in interface AccessManager
Parameters:
path - for which permissions are requested
Returns:
permission mask
See Also:
all possible permissions


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