public interface AccessManager extends Serializable
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.
|
boolean isGranted(String path, long permissions)
path
- path for which permissions are checkedpermissions
- permission maskvoid setPermissionList(List<Permission> permissions)
List<Permission> getPermissionList()
long getPermissions(String path)
path
- for which permissions are requestedall possible permissions
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.