public class KPMERoleServiceImpl extends Object implements KPMERoleService
Constructor and Description |
---|
KPMERoleServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected Map<String,String> |
addCustomDerivedQualifications(Map<String,String> qualificiation,
org.joda.time.DateTime asOfDate,
boolean activeOnly) |
DepartmentService |
getDepartmentService() |
List<String> |
getDepartmentsForPrincipalInRole(String principalId,
String namespaceCode,
String roleName,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the departments for the given
principalId in the role roleName . |
List<String> |
getDepartmentsForPrincipalInRoles(String principalId,
List<String> roleIds,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the departments for the given
principalId in the roles roleIds . |
protected String |
getDerivedRoleServiceName(String kimTypeId)
Gets the derived role service name for
kimTypeId . |
org.kuali.rice.kim.api.group.GroupService |
getGroupService() |
org.kuali.rice.kim.api.type.KimTypeInfoService |
getKimTypeInfoService() |
List<String> |
getLocationsForPrincipalInRole(String principalId,
String namespaceCode,
String roleName,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the locations for the given
principalId in the role roleName . |
List<String> |
getLocationsForPrincipalInRoles(String principalId,
List<String> roleIds,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the locations for the given
principalId in the roles roleIds . |
protected List<org.kuali.rice.kim.api.role.RoleMember> |
getPrimaryRoleMembers(org.kuali.rice.kim.api.role.Role role,
Map<String,String> qualification,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly) |
List<org.kuali.rice.kim.api.role.RoleMember> |
getPrimaryRoleMembersInWorkArea(String namespaceCode,
String roleName,
Long workArea,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the primary (first-level) members of the role
roleName for the given work area. |
List<org.kuali.rice.kim.api.role.RoleMember> |
getRoleMembers(String namespaceCode,
String roleName,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the members of the role
roleName . |
List<org.kuali.rice.kim.api.role.RoleMember> |
getRoleMembers(String namespaceCode,
String roleName,
Map<String,String> qualification,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the members of the role
roleName for the given role qualifiers. |
List<org.kuali.rice.kim.api.role.RoleMember> |
getRoleMembersInDepartment(String namespaceCode,
String roleName,
String department,
String groupKeyCode,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the members of the role
roleName for the given department. |
List<org.kuali.rice.kim.api.role.RoleMember> |
getRoleMembersInLocation(String namespaceCode,
String roleName,
String location,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the members of the role
roleName for the given location. |
List<org.kuali.rice.kim.api.role.RoleMember> |
getRoleMembersInWorkArea(String namespaceCode,
String roleName,
Long workArea,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the members of the role
roleName for the given work area. |
org.kuali.rice.kim.api.role.RoleService |
getRoleService() |
KPMERoleServiceHelper |
getRoleServiceHelper() |
protected org.kuali.rice.kim.framework.role.RoleTypeService |
getRoleTypeService(org.kuali.rice.kim.api.role.Role role)
Gets the derived role service for
role . |
WorkAreaService |
getWorkAreaService() |
List<Long> |
getWorkAreasForPrincipalInRole(String principalId,
String namespaceCode,
String roleName,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the work areas for the given
principalId in the role roleName . |
List<Long> |
getWorkAreasForPrincipalInRoles(String principalId,
List<String> roleIds,
org.joda.time.DateTime asOfDate,
boolean isActiveOnly)
Gets the work areas for the given
principalId in the role roleName . |
protected <T> List<T> |
intersect(Collection<? extends T> a,
Collection<? extends T> b) |
boolean |
principalHasRole(String principalId,
String namespaceCode,
String roleName,
org.joda.time.DateTime asOfDate)
Checks whether the given
principalId has the role roleName . |
boolean |
principalHasRole(String principalId,
String namespaceCode,
String roleName,
Map<String,String> qualification,
org.joda.time.DateTime asOfDate)
Checks whether the given
principalId has the role roleName depending on the given role qualifications. |
boolean |
principalHasRoleInDepartment(String principalId,
String namespaceCode,
String roleName,
String department,
String groupKeyCode,
org.joda.time.DateTime asOfDate)
Checks whether the given
principalId has the role roleName depending on the given department. |
boolean |
principalHasRoleInLocation(String principalId,
String namespaceCode,
String roleName,
String location,
org.joda.time.DateTime asOfDate)
Checks whether the given
principalId has the role roleName depending on the given location. |
boolean |
principalHasRoleInWorkArea(String principalId,
String namespaceCode,
String roleName,
Long workArea,
org.joda.time.DateTime asOfDate)
Checks whether the given
principalId has the role roleName depending on the given work area. |
void |
setDepartmentService(DepartmentService departmentService) |
void |
setGroupService(org.kuali.rice.kim.api.group.GroupService groupService) |
void |
setKimTypeInfoService(org.kuali.rice.kim.api.type.KimTypeInfoService kimTypeInfoService) |
void |
setRoleService(org.kuali.rice.kim.api.role.RoleService roleService) |
void |
setRoleServiceHelper(KPMERoleServiceHelper roleServiceHelper) |
void |
setWorkAreaService(WorkAreaService workAreaService) |
public KPMERoleServiceImpl()
public boolean principalHasRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate)
KPMERoleService
principalId
has the role roleName
.principalHasRole
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleprincipalId
has the role roleName
, false otherwise.public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode, String roleName, Map<String,String> qualification, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
roleName
for the given role qualifiers.getRoleMembers
in interface KPMERoleService
namespaceCode
- The namespace of the roleroleName
- The name of the rolequalification
- The map of role qualifiersasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersroleName
.public boolean principalHasRole(String principalId, String namespaceCode, String roleName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
KPMERoleService
principalId
has the role roleName
depending on the given role qualifications.principalHasRole
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the rolequalification
- The map of role qualifiers for the personasOfDate
- The effective date of the roleprincipalId
has the role roleName
, false otherwise.public boolean principalHasRoleInWorkArea(String principalId, String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate)
KPMERoleService
principalId
has the role roleName
depending on the given work area.principalHasRoleInWorkArea
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roleworkArea
- The work area qualifierasOfDate
- The effective date of the roleprincipalId
has the role roleName
for the given work area, false otherwise.public boolean principalHasRoleInDepartment(String principalId, String namespaceCode, String roleName, String department, String groupKeyCode, org.joda.time.DateTime asOfDate)
KPMERoleService
principalId
has the role roleName
depending on the given department.principalHasRoleInDepartment
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roledepartment
- The department qualifiergroupKeyCode
- The group key code qualifierasOfDate
- The effective date of the roleprincipalId
has the role roleName
for the given department, false otherwise.public boolean principalHasRoleInLocation(String principalId, String namespaceCode, String roleName, String location, org.joda.time.DateTime asOfDate)
KPMERoleService
principalId
has the role roleName
depending on the given location.principalHasRoleInLocation
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the rolelocation
- The location qualifierasOfDate
- The effective date of the roleprincipalId
has the role roleName
for the given location, false otherwise.public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
roleName
.getRoleMembers
in interface KPMERoleService
namespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersroleName
.protected List<org.kuali.rice.kim.api.role.RoleMember> getPrimaryRoleMembers(org.kuali.rice.kim.api.role.Role role, Map<String,String> qualification, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
protected <T> List<T> intersect(Collection<? extends T> a, Collection<? extends T> b)
public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInWorkArea(String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
roleName
for the given work area.getRoleMembersInWorkArea
in interface KPMERoleService
namespaceCode
- The namespace of the roleroleName
- The name of the roleworkArea
- The work area qualifierasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersroleName
for the given work area.public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInDepartment(String namespaceCode, String roleName, String department, String groupKeyCode, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
roleName
for the given department.getRoleMembersInDepartment
in interface KPMERoleService
namespaceCode
- The namespace of the roleroleName
- The name of the roledepartment
- The department qualifiergroupKeyCode
- The group key code qualifierasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersroleName
for the given department.public List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInLocation(String namespaceCode, String roleName, String location, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
roleName
for the given location.getRoleMembersInLocation
in interface KPMERoleService
namespaceCode
- The namespace of the roleroleName
- The name of the rolelocation
- The location qualifierasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersroleName
for the given location.public List<Long> getWorkAreasForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
principalId
in the role roleName
.getWorkAreasForPrincipalInRoles
in interface KPMERoleService
principalId
- The person to check the role forroleIds
- The list of roleIdsasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersprincipalId
in the role roleName
.public List<Long> getWorkAreasForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
principalId
in the role roleName
.getWorkAreasForPrincipalInRole
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersprincipalId
in the role roleName
.public List<String> getDepartmentsForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
principalId
in the roles roleIds
.getDepartmentsForPrincipalInRoles
in interface KPMERoleService
principalId
- The person to check the role forroleIds
- The list of roleIdsasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersprincipalId
in the roles roleIds
.public List<String> getDepartmentsForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
principalId
in the role roleName
.getDepartmentsForPrincipalInRole
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersprincipalId
in the role roleName
.public List<String> getLocationsForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
principalId
in the roles roleIds
.getLocationsForPrincipalInRoles
in interface KPMERoleService
principalId
- The person to check the role forroleIds
- The list of roleIdsasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersprincipalId
in the roles roleIds
.public List<String> getLocationsForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
principalId
in the role roleName
.getLocationsForPrincipalInRole
in interface KPMERoleService
principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersprincipalId
in the role roleName
.public List<org.kuali.rice.kim.api.role.RoleMember> getPrimaryRoleMembersInWorkArea(String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
KPMERoleService
roleName
for the given work area.getPrimaryRoleMembersInWorkArea
in interface KPMERoleService
namespaceCode
- The namespace of the roleroleName
- The name of the roleworkArea
- The work area qualifierasOfDate
- The effective date of the roleisActiveOnly
- Whether or not to get only active role membersroleName
for the given work area.protected org.kuali.rice.kim.framework.role.RoleTypeService getRoleTypeService(org.kuali.rice.kim.api.role.Role role)
role
.role
- the rolerole
.protected String getDerivedRoleServiceName(String kimTypeId)
kimTypeId
.kimTypeId
- the KIM type idkimTypeId
.public DepartmentService getDepartmentService()
public void setDepartmentService(DepartmentService departmentService)
public org.kuali.rice.kim.api.group.GroupService getGroupService()
public void setGroupService(org.kuali.rice.kim.api.group.GroupService groupService)
public org.kuali.rice.kim.api.type.KimTypeInfoService getKimTypeInfoService()
public void setKimTypeInfoService(org.kuali.rice.kim.api.type.KimTypeInfoService kimTypeInfoService)
public org.kuali.rice.kim.api.role.RoleService getRoleService()
public void setRoleService(org.kuali.rice.kim.api.role.RoleService roleService)
public WorkAreaService getWorkAreaService()
public void setWorkAreaService(WorkAreaService workAreaService)
public KPMERoleServiceHelper getRoleServiceHelper()
public void setRoleServiceHelper(KPMERoleServiceHelper roleServiceHelper)
Copyright © 2004–2014 The Kuali Foundation. All rights reserved.