public interface KPMERoleService
Modifier and Type | Method and Description |
---|---|
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 activeOnly)
Gets the departments for the given
principalId in the roles roleIds . |
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 activeOnly)
Gets the locations for the given
principalId in the roles roleIds . |
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 activeOnly)
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 activeOnly)
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 activeOnly)
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 activeOnly)
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 activeOnly)
Gets the members of the role
roleName for the given work area. |
List<Long> |
getWorkAreasForPrincipalInRole(String principalId,
String namespaceCode,
String roleName,
org.joda.time.DateTime asOfDate,
boolean activeOnly)
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 activeOnly)
Gets the work areas for the given
principalId in the role roleName . |
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. |
@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{principalHasRole}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'asOfDate=\' + #p3") boolean principalHasRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate)
principalId
has the role roleName
.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.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{principalHasRole}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'qualification=\' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).mapKey(#p3) + \'|\' + \'asOfDate=\' + #p4") boolean principalHasRole(String principalId, String namespaceCode, String roleName, Map<String,String> qualification, org.joda.time.DateTime asOfDate)
principalId
has the role roleName
depending on the given role qualifications.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.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{principalHasRoleInWorkArea}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'workArea=\' + #p3 + \'|\' + \'asOfDate=\' + #p4") boolean principalHasRoleInWorkArea(String principalId, String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate)
principalId
has the role roleName
depending on the given work area.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.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{principalHasRoleInDepartment}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'department=\' + #p3 + \'|\' + \'groupKeyCode=\' + #p4 + \'|\' +\'asOfDate=\' + #p5") boolean principalHasRoleInDepartment(String principalId, String namespaceCode, String roleName, String department, String groupKeyCode, org.joda.time.DateTime asOfDate)
principalId
has the role roleName
depending on the given department.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.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{principalHasRoleInLocation}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'location=\' + #p3 + \'|\' + \'asOfDate=\' + #p4") boolean principalHasRoleInLocation(String principalId, String namespaceCode, String roleName, String location, org.joda.time.DateTime asOfDate)
principalId
has the role roleName
depending on the given location.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.List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean activeOnly)
roleName
.namespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersroleName
.List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembers(String namespaceCode, String roleName, Map<String,String> qualification, org.joda.time.DateTime asOfDate, boolean activeOnly)
roleName
for the given role qualifiers.namespaceCode
- The namespace of the roleroleName
- The name of the rolequalification
- The map of role qualifiersasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersroleName
.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getRoleMembersInWorkArea}\' + \'namespaceCode=\' + #p0 + \'|\' + \'roleName=\' + #p1 + \'|\' + \'workArea=\' + #p2 + \'|\' + \'asOfDate=\' + T(org.kuali.kpme.core.api.cache.KpmeCacheKeyUtils).dateTimeAtStartOfDate(#p3) + \'|\' + \'activeOnly=\' + #p4") List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInWorkArea(String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate, boolean activeOnly)
roleName
for the given work area.namespaceCode
- The namespace of the roleroleName
- The name of the roleworkArea
- The work area qualifierasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersroleName
for the given work area.List<org.kuali.rice.kim.api.role.RoleMember> getRoleMembersInDepartment(String namespaceCode, String roleName, String department, String groupKeyCode, org.joda.time.DateTime asOfDate, boolean activeOnly)
roleName
for the given department.namespaceCode
- The namespace of the roleroleName
- The name of the roledepartment
- The department qualifiergroupKeyCode
- The group key code qualifierasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersroleName
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 activeOnly)
roleName
for the given location.namespaceCode
- The namespace of the roleroleName
- The name of the rolelocation
- The location qualifierasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersroleName
for the given location.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getWorkAreasForPrincipalInRole}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'asOfDate=\' + #p3 + \'|\' + \'activeOnly=\' + #p4") List<Long> getWorkAreasForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean activeOnly)
principalId
in the role roleName
.principalId
- The person to check the role fornamespaceCode
- The namespace of the roleroleName
- The name of the roleasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersprincipalId
in the role roleName
.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getWorkAreasForPrincipalInRoles}\' + \'principal=\' + #p0 + \'|\' + \'roleIds=\' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p1) + \'|\' + \'asOfDate=\' + #p3 + \'|\' + \'activeOnly=\' + #p4") List<Long> getWorkAreasForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean activeOnly)
principalId
in the role roleName
.principalId
- The person to check the role forroleIds
- The list of roleIdsasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersprincipalId
in the role roleName
.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getDepartmentsForPrincipalInRoles}\' + \'principal=\' + #p0 + \'|\' + \'roleIds=\' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p1) + \'|\' + \'asOfDate=\' + #p3 + \'|\' + \'activeOnly=\' + #p4") List<String> getDepartmentsForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean activeOnly)
principalId
in the roles roleIds
.principalId
- The person to check the role forroleIds
- The list of roleIdsasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersprincipalId
in the roles roleIds
.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getLocationsForPrincipalInRoles}\' + \'principal=\' + #p0 + \'|\' + \'roleIds=\' + T(org.kuali.rice.core.api.cache.CacheKeyUtils).key(#p1) + \'|\' + \'asOfDate=\' + #p3 + \'|\' + \'activeOnly=\' + #p4") List<String> getLocationsForPrincipalInRoles(String principalId, List<String> roleIds, org.joda.time.DateTime asOfDate, boolean activeOnly)
principalId
in the roles roleIds
.principalId
- The person to check the role forroleIds
- The list of roleIdsasOfDate
- The effective date of the roleactiveOnly
- Whether or not to get only active role membersprincipalId
in the roles roleIds
.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getDepartmentsForPrincipalInRole}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'asOfDate=\' + #p3 + \'|\' + \'isActiveOnly=\' + #p4") List<String> getDepartmentsForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
principalId
in the role roleName
.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
.@Cacheable(value="http://rice.kuali.org/kim/v2_0/RoleMemberType", key="\'{getLocationsForPrincipalInRole}\' + \'principal=\' + #p0 + \'|\' + \'namespace=\' + #p1 + \'|\' + \'roleName=\' + #p2 + \'|\' + \'asOfDate=\' + #p3 + \'|\' + \'isActiveOnly=\' + #p4") List<String> getLocationsForPrincipalInRole(String principalId, String namespaceCode, String roleName, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
principalId
in the role roleName
.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
.List<org.kuali.rice.kim.api.role.RoleMember> getPrimaryRoleMembersInWorkArea(String namespaceCode, String roleName, Long workArea, org.joda.time.DateTime asOfDate, boolean isActiveOnly)
roleName
for the given work area.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.Copyright © 2004–2015 The Kuali Foundation. All rights reserved.