public class RoleInternalServiceImpl extends Object implements RoleInternalService
Modifier and Type | Class and Description |
---|---|
protected static class |
RoleServiceBase.RoleDaoAction
A helper enumeration for indicating which KimRoleDao method to use when attempting to get role/delegation-related lists that are not in the cache.
|
Modifier and Type | Field and Description |
---|---|
protected CriteriaLookupService |
criteriaLookupService |
Constructor and Description |
---|
RoleInternalServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected RoleMember |
doAnyMemberRecordsMatch(List<org.kuali.rice.kim.impl.role.RoleMemberBo> roleMembers,
String memberId,
String memberTypeCode,
Map<String,String> qualifier) |
protected List<RoleMember> |
doAnyMemberRecordsMatchByExactQualifier(RoleEbo role,
String memberId,
RoleServiceBase.RoleDaoAction daoActionToTake,
Map<String,String> qualifier) |
protected boolean |
doesMemberMatch(org.kuali.rice.kim.impl.role.RoleMemberBo roleMember,
String memberId,
String memberTypeCode,
Map<String,String> qualifier) |
protected String |
getAppIdFromNamespace(String namespaceCode) |
protected Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> |
getAttributeByName(String attributeName) |
protected String |
getAttributeFromAppId(Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> attributes,
String appId) |
protected String |
getAttributeFromKimType(KimType kimType,
String attributeName) |
protected String |
getAttributeFromNamespace(KimType kimType,
String attributeName,
Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> attributes) |
protected BusinessObjectService |
getBusinessObjectService() |
protected String |
getCorrectAttributeId(String kimTypeId,
String attributeName,
Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> attributeData) |
CriteriaLookupService |
getCriteriaLookupService() |
protected org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo |
getDelegateMemberBo(String delegationMemberId)
Retrieves a DelegateMemberBo object by its ID.
|
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo> |
getDelegationMemberBoList(RoleServiceBase.RoleDaoAction daoActionToTake,
Collection<String> delegationIds,
String principalId,
List<String> groupIds)
Retrieves a List of delegation members from the KimRoleDao as appropriate.
|
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo> |
getDelegationMemberBoListByMemberAndDelegationId(String memberId,
String delegationId)
Retrieves a DelegateMemberBo List by (principal/group/role) member ID and delegation ID.
|
protected org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo |
getDelegationOfType(String roleId,
DelegationType delegationType) |
protected GroupService |
getGroupService() |
protected IdentityService |
getIdentityService() |
protected String |
getKimAttributeId(String kimTypeId,
String attributeName) |
protected KimTypeInfoService |
getKimTypeInfoService() |
protected LookupService |
getLookupService() |
protected Object |
getMember(String memberTypeCode,
String memberId) |
protected String |
getMemberName(Object member) |
protected NamespaceService |
getNamespaceService() |
protected void |
getNestedRoleTypeMemberIds(String roleId,
Set<String> members) |
protected org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo |
getPrimaryDelegation(String roleId,
List<org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo> roleDelegates) |
protected ResponsibilityInternalService |
getResponsibilityInternalService() |
protected org.kuali.rice.kim.impl.role.RoleBo |
getRoleBo(String roleId) |
protected org.kuali.rice.kim.impl.role.RoleBo |
getRoleBoByName(String namespaceCode,
String roleName) |
protected org.kuali.rice.kim.impl.role.RoleBoLite |
getRoleBoLite(String roleId) |
protected org.kuali.rice.kim.impl.role.RoleBoLite |
getRoleBoLiteByName(String namespaceCode,
String roleName) |
protected RoleDao |
getRoleDao() |
protected org.kuali.rice.kim.impl.role.RoleMemberBo |
getRoleMemberBo(String roleMemberId)
Retrieves a RoleMemberBo object by its ID.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getRoleMemberBoList(RoleServiceBase.RoleDaoAction daoActionToTake,
Collection<String> roleIds,
String principalId,
Collection<String> groupIds,
String memberTypeCode,
Map<String,String> qualification)
Retrieves a list of RoleMemberBo instances from the KimRoleDao.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getRoleMembersByExactQualifierMatch(RoleEbo role,
String memberId,
RoleServiceBase.RoleDaoAction daoActionToTake,
Map<String,String> qualifier) |
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getRoleMembersForGroupIds(String roleId,
List<String> groupIds) |
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getRoleMembersForPrincipalId(String roleId,
String principalId) |
protected org.kuali.rice.kim.impl.role.RoleResponsibilityActionBo |
getRoleResponsibilityActionBo(String roleResponsibilityActionId)
Retrieves a RoleResponsibilityActionBo object by its ID.
|
protected RoleTypeService |
getRoleTypeService(KimType typeInfo) |
protected RoleTypeService |
getRoleTypeService(String roleId)
Retrieves the role type service associated with the given role ID
|
protected RoleTypeService |
getRoleTypeServiceByName(String serviceName)
Retrieves the role type service for the given service name.
|
protected Map<String,org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo> |
getStoredDelegationImplMapFromRoleIds(Collection<String> roleIds)
Calls the KimRoleDao's "getDelegationImplMapFromRoleIds" method and/or retrieves any corresponding delegations from the cache.
|
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo> |
getStoredDelegationImplsForRoleIds(Collection<String> roleIds)
Calls the KimRoleDao's "getDelegationBosForRoleIds" method and/or retrieves any corresponding delegations from the cache.
|
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo> |
getStoredDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds,
String principalId)
Calls the KimRoleDao's "getDelegationPrincipalsForPrincipalIdAndDelegationIds" method and/or retrieves any corresponding members from the cache.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getStoredRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds,
Collection<String> groupIds,
Map<String,String> qualification)
Calls the KimRoleDao's "getRoleGroupsForGroupIdsAndRoleIds" method and/or retrieves any corresponding members from the cache.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getStoredRoleMembersForRoleIds(Collection<String> roleIds,
String memberTypeCode,
Map<String,String> qualification)
Calls the KimRoleDao's "getRoleMembersForRoleIds" method and/or retrieves any corresponding members from the cache.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getStoredRoleMembersForRoleIdsWithFilters(Collection<String> roleIds,
String principalId,
List<String> groupIds,
Map<String,String> qualification)
Calls the KimRoleDao's "getRoleMembersForRoleIdsWithFilters" method and/or retrieves any corresponding members from the cache.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getStoredRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds,
Map<String,String> qualification)
Calls the KimRoleDao's "getRoleMembershipsForRoleIdsAsMembers" method and/or retrieves any corresponding members from the cache.
|
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> |
getStoredRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds,
String principalId,
Map<String,String> qualification)
Calls the KimRoleDao's "getRolePrincipalsForPrincipalIdAndRoleIds" method and/or retrieves any corresponding members from the cache.
|
void |
groupInactivated(String groupId)
Notifies the role service that the group with the given id has been inactivated.
|
protected void |
inactivateApplicationRoleMemberships(String principalId,
Timestamp yesterday) |
protected void |
inactivateGroupRoleMemberships(List<String> groupIds,
Timestamp yesterday) |
protected void |
inactivatePrincipalDelegations(String principalId,
Timestamp yesterday) |
protected void |
inactivatePrincipalGroupMemberships(List<String> groupIds,
Timestamp yesterday) |
protected void |
inactivatePrincipalGroupMemberships(String principalId,
Timestamp yesterday) |
protected void |
inactivatePrincipalRoleMemberships(String principalId,
Timestamp yesterday) |
protected boolean |
isDelegationPrimary(DelegationType delegationType) |
protected boolean |
isDelegationSecondary(DelegationType delegationType) |
protected org.kuali.rice.kim.impl.role.RoleMemberBo |
matchingMemberRecord(List<org.kuali.rice.kim.impl.role.RoleMemberBo> roleMembers,
String memberId,
String memberTypeCode,
Map<String,String> qualifier) |
protected Map<String,String> |
populateQualifiersForExactMatch(Map<String,String> defaultQualification,
List<String> attributes) |
void |
principalInactivated(String principalId)
Notifies all of a principal's roles and role types that the principal has been inactivated.
|
void |
roleInactivated(String roleId)
Notifies the role service that the role with the given id has been inactivated.
|
void |
setCriteriaLookupService(CriteriaLookupService criteriaLookupService) |
void |
setRoleDao(RoleDao roleDao) |
protected CriteriaLookupService criteriaLookupService
public RoleInternalServiceImpl()
public void principalInactivated(String principalId)
RoleInternalService
principalInactivated
in interface RoleInternalService
public void roleInactivated(String roleId)
RoleInternalService
roleInactivated
in interface RoleInternalService
public void groupInactivated(String groupId)
RoleInternalService
groupInactivated
in interface RoleInternalService
protected void inactivateApplicationRoleMemberships(String principalId, Timestamp yesterday)
protected void inactivatePrincipalRoleMemberships(String principalId, Timestamp yesterday)
protected void inactivateGroupRoleMemberships(List<String> groupIds, Timestamp yesterday)
protected void inactivatePrincipalGroupMemberships(String principalId, Timestamp yesterday)
protected void inactivatePrincipalGroupMemberships(List<String> groupIds, Timestamp yesterday)
protected void inactivatePrincipalDelegations(String principalId, Timestamp yesterday)
protected void getNestedRoleTypeMemberIds(String roleId, Set<String> members)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getRoleMembersForPrincipalId(String roleId, String principalId)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getRoleMembersForGroupIds(String roleId, List<String> groupIds)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getRoleMemberBoList(RoleServiceBase.RoleDaoAction daoActionToTake, Collection<String> roleIds, String principalId, Collection<String> groupIds, String memberTypeCode, Map<String,String> qualification)
daoActionToTake
- An indicator for which KimRoleDao method should be used to get the results if the desired RoleMemberBos are not cached.roleIds
- The role IDs to filter by; may get used as the IDs for members that are also roles, depending on the daoActionToTake value.principalId
- The principal ID to filter by; may get ignored depending on the daoActionToTake value.groupIds
- The group IDs to filter by; may get ignored depending on the daoActionToTake value.memberTypeCode
- The member type code to filter by; may get overridden depending on the daoActionToTake value.qualification
- The original role qualification attribute setIllegalArgumentException
- if daoActionToTake refers to an enumeration constant that is not role-member-related.protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getStoredRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds, String principalId, Map<String,String> qualification)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getStoredRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds, Collection<String> groupIds, Map<String,String> qualification)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getStoredRoleMembersForRoleIds(Collection<String> roleIds, String memberTypeCode, Map<String,String> qualification)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getStoredRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds, Map<String,String> qualification)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getStoredRoleMembersForRoleIdsWithFilters(Collection<String> roleIds, String principalId, List<String> groupIds, Map<String,String> qualification)
protected org.kuali.rice.kim.impl.role.RoleMemberBo getRoleMemberBo(String roleMemberId)
protected org.kuali.rice.kim.impl.role.RoleResponsibilityActionBo getRoleResponsibilityActionBo(String roleResponsibilityActionId)
protected Map<String,org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo> getStoredDelegationImplMapFromRoleIds(Collection<String> roleIds)
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo> getStoredDelegationImplsForRoleIds(Collection<String> roleIds)
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo> getDelegationMemberBoList(RoleServiceBase.RoleDaoAction daoActionToTake, Collection<String> delegationIds, String principalId, List<String> groupIds)
daoActionToTake
- An indicator for which KimRoleDao method to use for retrieving results.delegationIds
- The IDs of the delegations that the members belong to.principalId
- The principal ID of the principal delegation members; may get ignored depending on the RoleDaoAction value.groupIds
- The group IDs of the group delegation members; may get ignored depending on the RoleDaoAction value.IllegalArgumentException
- if daoActionToTake does not represent a delegation-member-list-related enumeration value.protected List<org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo> getStoredDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds, String principalId)
protected org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo getDelegateMemberBo(String delegationMemberId)
protected List<org.kuali.rice.kim.impl.common.delegate.DelegateMemberBo> getDelegationMemberBoListByMemberAndDelegationId(String memberId, String delegationId)
protected String getMemberName(Object member)
protected org.kuali.rice.kim.impl.role.RoleBoLite getRoleBoLite(String roleId)
protected org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo getDelegationOfType(String roleId, DelegationType delegationType)
protected org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo getPrimaryDelegation(String roleId, List<org.kuali.rice.kim.impl.common.delegate.DelegateTypeBo> roleDelegates)
protected org.kuali.rice.kim.impl.role.RoleMemberBo matchingMemberRecord(List<org.kuali.rice.kim.impl.role.RoleMemberBo> roleMembers, String memberId, String memberTypeCode, Map<String,String> qualifier)
protected boolean isDelegationPrimary(DelegationType delegationType)
protected boolean isDelegationSecondary(DelegationType delegationType)
protected org.kuali.rice.kim.impl.role.RoleBo getRoleBoByName(String namespaceCode, String roleName)
protected org.kuali.rice.kim.impl.role.RoleBoLite getRoleBoLiteByName(String namespaceCode, String roleName)
protected List<RoleMember> doAnyMemberRecordsMatchByExactQualifier(RoleEbo role, String memberId, RoleServiceBase.RoleDaoAction daoActionToTake, Map<String,String> qualifier)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getRoleMembersByExactQualifierMatch(RoleEbo role, String memberId, RoleServiceBase.RoleDaoAction daoActionToTake, Map<String,String> qualifier)
protected RoleMember doAnyMemberRecordsMatch(List<org.kuali.rice.kim.impl.role.RoleMemberBo> roleMembers, String memberId, String memberTypeCode, Map<String,String> qualifier)
protected boolean doesMemberMatch(org.kuali.rice.kim.impl.role.RoleMemberBo roleMember, String memberId, String memberTypeCode, Map<String,String> qualifier)
protected RoleTypeService getRoleTypeService(String roleId)
roleId
- the role ID to get the role type service forprotected RoleTypeService getRoleTypeServiceByName(String serviceName)
serviceName
- the name of the service to retrieveprotected RoleTypeService getRoleTypeService(KimType typeInfo)
protected Map<String,String> populateQualifiersForExactMatch(Map<String,String> defaultQualification, List<String> attributes)
protected String getKimAttributeId(String kimTypeId, String attributeName)
protected Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> getAttributeByName(String attributeName)
protected String getCorrectAttributeId(String kimTypeId, String attributeName, Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> attributeData)
protected String getAttributeFromKimType(KimType kimType, String attributeName)
protected String getAttributeFromNamespace(KimType kimType, String attributeName, Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> attributes)
protected String getAppIdFromNamespace(String namespaceCode)
protected String getAttributeFromAppId(Collection<org.kuali.rice.kim.impl.common.attribute.KimAttributeBo> attributes, String appId)
protected KimTypeInfoService getKimTypeInfoService()
protected NamespaceService getNamespaceService()
protected BusinessObjectService getBusinessObjectService()
protected LookupService getLookupService()
protected IdentityService getIdentityService()
protected GroupService getGroupService()
protected ResponsibilityInternalService getResponsibilityInternalService()
protected RoleDao getRoleDao()
public void setRoleDao(RoleDao roleDao)
roleDao
- the roleDao to setpublic void setCriteriaLookupService(CriteriaLookupService criteriaLookupService)
public CriteriaLookupService getCriteriaLookupService()
Copyright © 2005–2016 The Kuali Foundation. All rights reserved.