|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.cms.security.AccessManagerImpl
public class AccessManagerImpl
Default implementation for AccessManager
.
Constructor Summary | |
---|---|
AccessManagerImpl()
|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AccessManagerImpl()
Method Detail |
---|
public boolean isGranted(java.lang.String path, long permissions)
AccessManager
isGranted
in interface AccessManager
path
- path for which permissions are checkedpermissions
- permission mask
public void setPermissionList(java.util.List<Permission> permissions)
AccessManager
setPermissionList
in interface AccessManager
public java.util.List<Permission> getPermissionList()
AccessManager
getPermissionList
in interface AccessManager
public long getPermissions(java.lang.String path)
AccessManager
getPermissions
in interface AccessManager
path
- for which permissions are requested
all possible permissions
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |