|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.impl.role.RoleInternalServiceImpl
public class RoleInternalServiceImpl
Nested Class Summary | |
---|---|
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. |
Constructor Summary | |
---|---|
RoleInternalServiceImpl()
|
Method Summary | |
---|---|
protected boolean |
doAnyMemberRecordsMatch(List<org.kuali.rice.kim.impl.role.RoleMemberBo> roleMembers,
String memberId,
String memberTypeCode,
Map<String,String> qualifier)
|
protected boolean |
doAnyMemberRecordsMatchByExactQualifier(org.kuali.rice.kim.impl.role.RoleBo 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 BusinessObjectService |
getBusinessObjectService()
|
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 attributeName)
|
protected LookupService |
getLookupService()
|
protected Object |
getMember(String memberTypeCode,
String memberId)
|
protected String |
getMemberName(Object member)
|
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 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(org.kuali.rice.kim.impl.role.RoleBo role,
String memberId,
RoleServiceBase.RoleDaoAction daoActionToTake,
Map<String,String> qualifier)
|
protected RoleTypeService |
getRoleTypeService(KimType typeInfo)
|
protected RoleTypeService |
getRoleTypeService(String roleId)
Retrieves the role type service associated with the given role ID |
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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RoleInternalServiceImpl()
Method Detail |
---|
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> 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 set
IllegalArgumentException
- 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 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 Object getMember(String memberTypeCode, String memberId)
protected String getMemberName(Object member)
protected org.kuali.rice.kim.impl.role.RoleBo getRoleBo(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 boolean doAnyMemberRecordsMatchByExactQualifier(org.kuali.rice.kim.impl.role.RoleBo role, String memberId, RoleServiceBase.RoleDaoAction daoActionToTake, Map<String,String> qualifier)
protected List<org.kuali.rice.kim.impl.role.RoleMemberBo> getRoleMembersByExactQualifierMatch(org.kuali.rice.kim.impl.role.RoleBo role, String memberId, RoleServiceBase.RoleDaoAction daoActionToTake, Map<String,String> qualifier)
protected boolean 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 for
protected RoleTypeService getRoleTypeService(KimType typeInfo)
protected Map<String,String> populateQualifiersForExactMatch(Map<String,String> defaultQualification, List<String> attributes)
protected String getKimAttributeId(String attributeName)
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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |