public interface RoleManager
Role
Modifier and Type | Method and Description |
---|---|
void |
addPermission(Role role,
String workspaceName,
String path,
long permission)
Add permission to the specified role, assuming current user has enough rights to perform such operation.
|
Role |
createRole(String name)
Creates a new role in the root folder without any security restrictions.
|
Role |
createRole(String path,
String name) |
Map<String,ACL> |
getACLs(String role)
Obtain list of ACLs defined for specified role.
|
Role |
getRole(String name)
Get the specific role.
|
String |
getRoleNameById(String string)
Retrieve role name by its identifier.
|
void |
removePermission(Role role,
String workspace,
String path,
long permission)
Remove permission from the specified role.
|
Role createRole(String name) throws UnsupportedOperationException, Exception
IllegalArgumentException
- if the name is not valid or if a group with this name already existsUnsupportedOperationException
- in case the role manager does not support this operationException
Role createRole(String path, String name) throws AccessDeniedException
AccessDeniedException
Role getRole(String name) throws UnsupportedOperationException
UnsupportedOperationException
- in case the role manager does not support this operationMap<String,ACL> getACLs(String role) throws UnsupportedOperationException
UnsupportedOperationException
- in case the role manager does not support this operationvoid addPermission(Role role, String workspaceName, String path, long permission)
void removePermission(Role role, String workspace, String path, long permission)
Copyright © 2003–2017 Magnolia International Ltd.. All rights reserved.