|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface RoleManager
Manages roles.
Method Summary | |
---|---|
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)
Create a role without any security restrictions. |
Map<String,ACL> |
getACLs(String role)
Obtain list of ACLs defined for specified role. |
Role |
getRole(String name)
Get the specific role without any security restrictions. |
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. |
Method Detail |
---|
Role createRole(String name) throws UnsupportedOperationException, Exception
UnsupportedOperationException
- in case the role manager does not support this operation
Exception
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)
String getRoleNameById(String string)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |