public class AccessManagerImpl extends Object implements AccessManager, Serializable
AccessManager
.Constructor and Description |
---|
AccessManagerImpl() |
Modifier and Type | Method and Description |
---|---|
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.
|
public boolean isGranted(String path, long permissions)
AccessManager
isGranted
in interface AccessManager
path
- path for which permissions are checkedpermissions
- permission maskpublic void setPermissionList(List<Permission> permissions)
AccessManager
setPermissionList
in interface AccessManager
public List<Permission> getPermissionList()
AccessManager
getPermissionList
in interface AccessManager
public long getPermissions(String path)
AccessManager
getPermissions
in interface AccessManager
path
- for which permissions are requestedall possible permissions
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.