public class KraAuthorizationServiceImpl extends Object implements KraAuthorizationService
| Constructor and Description |
|---|
KraAuthorizationServiceImpl() |
| 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()
FIXME: Rice Hack - this method needs to be called because after we update kim data the cache handling is done
asynchronously and subsequent reads are likely to be reading from a dirty cache.
|
List<RolePersons> |
getAllRolePersons(Permissionable permissionable)
Get the list of all of the award roles and the persons in those
roles for a given Award.
|
org.kuali.rice.kim.api.identity.IdentityService |
getIdentityService() |
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.
|
org.kuali.rice.kim.api.role.RoleService |
getRoleService() |
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.
|
void |
setIdentityManagementService(org.kuali.rice.kim.api.identity.IdentityService identityManagementService) |
void |
setKcPersonService(KcPersonService personService)
Set the KRA Person Service.
|
void |
setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService) |
void |
setRoleManagementService(org.kuali.rice.kim.api.role.RoleService roleManagementService) |
void |
setUnitAuthorizationService(UnitAuthorizationService unitAuthorizationService)
Set the Unit Authorization Service.
|
public void setUnitAuthorizationService(UnitAuthorizationService unitAuthorizationService)
unitAuthorizationService - the Unit Authorization Servicepublic void setKcPersonService(KcPersonService personService)
personService - the KRA Person Servicepublic void setRoleManagementService(org.kuali.rice.kim.api.role.RoleService roleManagementService)
public void setIdentityManagementService(org.kuali.rice.kim.api.identity.IdentityService identityManagementService)
public void setPermissionService(org.kuali.rice.kim.api.permission.PermissionService permissionService)
public List<String> getUserNames(Permissionable permissionable, String roleName)
KraAuthorizationServicegetUserNames in interface KraAuthorizationServicepermissionable - the PermissionableroleName - the name of the Roleorg.kuali.kra.award.service.KraAuthorizationService#getUserNames(org.kuali.kra.common.permissions.Permissionable, java.lang.String)public void addRole(String userId, String roleName, Permissionable permissionable)
KraAuthorizationServiceaddRole in interface KraAuthorizationServiceroleName - the name of the Roleorg.kuali.kra.award.service.KraAuthorizationService#addRole(java.lang.String, java.lang.String, org.kuali.kra.common.permissions.Permissionable)public void removeRole(String userId, String roleName, Permissionable permissionable)
KraAuthorizationServiceremoveRole in interface KraAuthorizationServiceroleName - the name of the Roleorg.kuali.kra.award.service.KraAuthorizationService#removeRole(java.lang.String, java.lang.String, org.kuali.kra.common.permissions.Permissionable)public boolean hasPermission(String userId, Permissionable permissionable, String permissionName)
KraAuthorizationServicehasPermission in interface KraAuthorizationServicepermissionName - the name of the Permissionorg.kuali.kra.award.service.KraAuthorizationService#hasPermission(java.lang.String, org.kuali.kra.common.permissions.Permissionable, java.lang.String)public boolean hasPermission(String userId, Permissionable permissionable, String permissionNamespace, String permissionName)
KraAuthorizationServicehasPermission in interface KraAuthorizationServiceorg.kuali.kra.award.service.KraAuthorizationService#hasPermission(java.lang.String, org.kuali.kra.common.permissions.Permissionable, java.lang.String)public boolean hasRole(String userId, Permissionable permissionable, String roleName)
KraAuthorizationServicehasRole in interface KraAuthorizationServiceroleName - the name of the Roleorg.kuali.kra.award.service.KraAuthorizationService#hasRole(java.lang.String, org.kuali.kra.common.permissions.Permissionable, java.lang.String)public List<String> getRoles(String userId, Permissionable permissionable)
KraAuthorizationServicegetRoles in interface KraAuthorizationServiceorg.kuali.kra.award.service.KraAuthorizationService#getRoles(java.lang.String, org.kuali.kra.common.permissions.Permissionable)public List<KcPerson> getPersonsInRole(Permissionable permissionable, String roleName)
KraAuthorizationServicegetPersonsInRole in interface KraAuthorizationServiceroleName - the name of the roleorg.kuali.kra.award.service.KraAuthorizationService#getPersonsInRole(org.kuali.kra.common.permissions.Permissionable, java.lang.String)public List<RolePersons> getAllRolePersons(Permissionable permissionable)
KraAuthorizationServicegetAllRolePersons in interface KraAuthorizationServiceorg.kuali.kra.award.service.KraAuthorizationService#getAllRolePersons(org.kuali.kra.common.permissions.Permissionable)public boolean hasRole(String userId, String namespace, String roleName)
hasRole in interface KraAuthorizationServicepublic void forceFlushRoleCaches()
forceFlushRoleCaches in interface KraAuthorizationServicepublic org.kuali.rice.kim.api.role.RoleService getRoleService()
public org.kuali.rice.kim.api.identity.IdentityService getIdentityService()
Copyright © 2013 The Kuali Foundation. All Rights Reserved.