public interface KraAuthorizationService
| Modifier and Type | Method and Description |
|---|---|
void |
addRole(String userId,
String roleName,
Permissionable permissionable)
Add a user to a role within an Award.
|
void |
forceFlushRoleCaches() |
List<RolePersons> |
getAllRolePersons(Permissionable permissionable)
Get the list of all of the award roles and the persons in those
roles for a given Award.
|
List<KcPerson> |
getPersonsInRole(Permissionable permissionable,
String roleName)
Get the list of persons in a specific role for a given award.
|
List<String> |
getRoles(String userId,
Permissionable permissionable)
Get the roles for this user in the Award.
|
List<String> |
getUserNames(Permissionable permissionable,
String roleName)
Get the list of usernames of people who have the given role with respect to
the given Permissionable.
|
boolean |
hasPermission(String userId,
Permissionable permissionable,
String permissionName)
Does the user have the given permission for the given Award?
|
boolean |
hasPermission(String userId,
Permissionable permissionable,
String permissionNamespace,
String permissionName)
Does the user have the given permission in the given namespace?
|
boolean |
hasRole(String userId,
Permissionable permissionable,
String roleName)
Does the user have the given role for the given Award?
|
boolean |
hasRole(String userId,
String namespace,
String roleName) |
void |
removeRole(String userId,
String roleName,
Permissionable permissionable)
Remove a user from a role within a Award.
|
List<String> getUserNames(Permissionable permissionable, String roleName)
permissionable - the PermissionableroleName - the name of the Rolevoid addRole(String userId, String roleName, Permissionable permissionable)
username - the user's usernameroleName - the name of the Roleaward - the Awardvoid removeRole(String userId, String roleName, Permissionable permissionable)
username - the user's usernameroleName - the name of the Roleaward - the Awardboolean hasPermission(String userId, Permissionable permissionable, String permissionName)
username - the user's usernameaward - the AwardpermissionName - the name of the Permissionboolean hasPermission(String userId, Permissionable permissionable, String permissionNamespace, String permissionName)
userId - permissionable - permissionNamespace - permissionName - boolean hasRole(String userId, Permissionable permissionable, String roleName)
username - the user's usernamedoc - the AwardroleName - the name of the RoleList<String> getRoles(String userId, Permissionable permissionable)
username - the user's usernameaward - the AwardList<KcPerson> getPersonsInRole(Permissionable permissionable, String roleName)
award - the AwardroleName - the name of the roleList<RolePersons> getAllRolePersons(Permissionable permissionable)
award - the Awardvoid forceFlushRoleCaches()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.