|
||||||||||
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. |
Field Summary | |
---|---|
protected DataObjectService |
dataObjectService
|
protected DateTimeService |
dateTimeService
|
protected GroupService |
groupService
|
protected IdentityService |
identityService
|
protected KimTypeInfoService |
kimTypeInfoService
|
protected NamespaceService |
namespaceService
|
protected ResponsibilityInternalService |
responsibilityInternalService
|
protected RoleDao |
roleDao
|
Constructor Summary | |
---|---|
RoleInternalServiceImpl()
|
Method Summary | |
---|---|
protected Map<String,String> |
convertQualifierKeys(Map<String,String> qualification,
Map<String,String> validAttributeIds)
Converts the Qualifier Name/Value Role qualification set into Qualifier AttributeID/Value set |
protected RoleMember |
doAnyMemberRecordsMatch(List<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(RoleMemberBo roleMember,
String memberId,
String memberTypeCode,
Map<String,String> qualifier)
|
protected String |
getAppIdFromNamespace(String namespaceCode)
|
protected Collection<KimAttributeBo> |
getAttributeByName(String attributeName)
|
protected String |
getAttributeFromAppId(Collection<KimAttributeBo> attributes,
String appId)
|
protected String |
getAttributeFromKimType(KimType kimType,
String attributeName)
|
protected String |
getAttributeFromNamespace(KimType kimType,
String attributeName,
Collection<KimAttributeBo> attributes)
|
protected String |
getCorrectAttributeId(String kimTypeId,
String attributeName,
Collection<KimAttributeBo> attributeData)
|
DataObjectService |
getDataObjectService()
|
DateTimeService |
getDateTimeService()
|
protected DelegateMemberBo |
getDelegateMemberBo(String delegationMemberId)
Retrieves a DelegateMemberBo object by its ID. |
protected List<DelegateMemberBo> |
getDelegationMemberBoListByMemberAndDelegationId(String memberId,
String delegationId)
Retrieves a DelegateMemberBo List by (principal/group/role) member ID and delegation ID. |
protected DelegateTypeBo |
getDelegationOfType(String roleId,
DelegationType delegationType)
|
protected GroupService |
getGroupService()
|
protected IdentityService |
getIdentityService()
|
protected String |
getKimAttributeId(String kimTypeId,
String attributeName)
|
protected KimTypeInfoService |
getKimTypeInfoService()
|
protected Object |
getMember(String memberTypeCode,
String memberId)
|
protected String |
getMemberName(Object member)
|
protected NamespaceService |
getNamespaceService()
|
protected void |
getNestedRoleTypeMemberIds(String roleId,
Set<String> members)
|
protected DelegateTypeBo |
getPrimaryDelegation(String roleId,
List<DelegateTypeBo> roleDelegates)
|
protected ResponsibilityInternalService |
getResponsibilityInternalService()
|
protected RoleBo |
getRoleBo(String roleId)
|
protected RoleBo |
getRoleBoByName(String namespaceCode,
String roleName)
|
protected RoleBoLite |
getRoleBoLite(String roleId)
|
protected RoleBoLite |
getRoleBoLiteByName(String namespaceCode,
String roleName)
|
protected RoleDao |
getRoleDao()
|
List<RoleMemberBo> |
getRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds,
Collection<String> groupIds,
Map<String,String> qualification)
|
protected RoleMemberBo |
getRoleMemberBo(String roleMemberId)
Retrieves a RoleMemberBo object by its ID. |
protected List<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<RoleMemberBo> |
getRoleMembersByExactQualifierMatch(RoleEbo role,
String memberId,
RoleServiceBase.RoleDaoAction daoActionToTake,
Map<String,String> qualifier)
|
protected List<RoleMemberBo> |
getRoleMembersForGroupIds(String roleId,
List<String> groupIds)
|
protected List<RoleMemberBo> |
getRoleMembersForPrincipalId(Collection<String> roleIds,
String principalId)
|
protected List<RoleMemberBo> |
getRoleMembersForPrincipalId(Collection<String> roleIds,
String principalId,
Map<String,String> qualification)
|
protected List<RoleMemberBo> |
getRoleMembersForRoleIdsWithFilters(Collection<String> roleIds,
String principalId,
Collection<String> groupIds,
Map<String,String> qualification)
|
protected List<RoleMemberBo> |
getRoleMembershipsForMemberId(String memberType,
String memberId,
Map<String,String> qualification)
|
protected List<RoleMemberBo> |
getRoleMembershipsForPredicates(Collection<Predicate> criteria)
|
protected List<RoleMemberBo> |
getRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds,
Map<String,String> qualification)
|
protected Predicate |
getRoleQualificationPredicate(Map<String,String> qualification)
Attempts to add predicates to the query to filter based on subqueries against the role member attribute data table. |
protected 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,DelegateTypeBo> |
getStoredDelegationImplMapFromRoleIds(Collection<String> roleIds)
|
protected List<DelegateTypeBo> |
getStoredDelegationImplsForRoleIds(Collection<String> roleIds)
|
protected List<DelegateMemberBo> |
getStoredDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds,
String principalId)
Calls the KimRoleDao's "getDelegationPrincipalsForPrincipalIdAndDelegationIds" method and/or retrieves any corresponding members from the cache. |
protected List<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<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<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<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<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 RoleMemberBo |
matchingMemberRecord(List<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 |
setDataObjectService(DataObjectService dataObjectService)
|
void |
setDateTimeService(DateTimeService dateTimeService)
|
void |
setRoleDao(RoleDao roleDao)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected DataObjectService dataObjectService
protected IdentityService identityService
protected NamespaceService namespaceService
protected KimTypeInfoService kimTypeInfoService
protected GroupService groupService
protected ResponsibilityInternalService responsibilityInternalService
protected RoleDao roleDao
protected DateTimeService dateTimeService
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 Map<String,String> convertQualifierKeys(Map<String,String> qualification, Map<String,String> validAttributeIds)
qualification
- The original role qualification attribute setvalidAttributeIds
- The mapping of attribute names to their matching attribute ids
protected void getNestedRoleTypeMemberIds(String roleId, Set<String> members)
protected List<RoleMemberBo> getRoleMembersForPrincipalId(Collection<String> roleIds, String principalId)
protected List<RoleMemberBo> getRoleMembersForPrincipalId(Collection<String> roleIds, String principalId, Map<String,String> qualification)
protected List<RoleMemberBo> getRoleMembersForGroupIds(String roleId, List<String> groupIds)
protected List<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.public List<RoleMemberBo> getRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds, Collection<String> groupIds, Map<String,String> qualification)
protected List<RoleMemberBo> getRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds, Map<String,String> qualification)
protected List<RoleMemberBo> getRoleMembersForRoleIdsWithFilters(Collection<String> roleIds, String principalId, Collection<String> groupIds, Map<String,String> qualification)
protected List<RoleMemberBo> getRoleMembershipsForPredicates(Collection<Predicate> criteria)
protected Predicate getRoleQualificationPredicate(Map<String,String> qualification)
qualification
- An "and" predicate containing the exists predicates if at least one
qualification has a non-blank value. null if all values
are blank or the passed in qualification is null or empty.protected List<RoleMemberBo> getRoleMembershipsForMemberId(String memberType, String memberId, Map<String,String> qualification)
protected List<RoleMemberBo> getStoredRolePrincipalsForPrincipalIdAndRoleIds(Collection<String> roleIds, String principalId, Map<String,String> qualification)
protected List<RoleMemberBo> getStoredRoleGroupsForGroupIdsAndRoleIds(Collection<String> roleIds, Collection<String> groupIds, Map<String,String> qualification)
protected List<RoleMemberBo> getStoredRoleMembersForRoleIds(Collection<String> roleIds, String memberTypeCode, Map<String,String> qualification)
protected List<RoleMemberBo> getStoredRoleMembershipsForRoleIdsAsMembers(Collection<String> roleIds, Map<String,String> qualification)
protected List<RoleMemberBo> getStoredRoleMembersForRoleIdsWithFilters(Collection<String> roleIds, String principalId, List<String> groupIds, Map<String,String> qualification)
protected RoleMemberBo getRoleMemberBo(String roleMemberId)
protected RoleResponsibilityActionBo getRoleResponsibilityActionBo(String roleResponsibilityActionId)
protected Map<String,DelegateTypeBo> getStoredDelegationImplMapFromRoleIds(Collection<String> roleIds)
protected List<DelegateTypeBo> getStoredDelegationImplsForRoleIds(Collection<String> roleIds)
protected List<DelegateMemberBo> getStoredDelegationPrincipalsForPrincipalIdAndDelegationIds(Collection<String> delegationIds, String principalId)
protected DelegateMemberBo getDelegateMemberBo(String delegationMemberId)
protected List<DelegateMemberBo> getDelegationMemberBoListByMemberAndDelegationId(String memberId, String delegationId)
protected Object getMember(String memberTypeCode, String memberId)
protected String getMemberName(Object member)
protected RoleBo getRoleBo(String roleId)
protected RoleBoLite getRoleBoLite(String roleId)
protected DelegateTypeBo getDelegationOfType(String roleId, DelegationType delegationType)
protected DelegateTypeBo getPrimaryDelegation(String roleId, List<DelegateTypeBo> roleDelegates)
protected RoleMemberBo matchingMemberRecord(List<RoleMemberBo> roleMembers, String memberId, String memberTypeCode, Map<String,String> qualifier)
protected boolean isDelegationPrimary(DelegationType delegationType)
protected boolean isDelegationSecondary(DelegationType delegationType)
protected RoleBo getRoleBoByName(String namespaceCode, String roleName)
protected RoleBoLite getRoleBoLiteByName(String namespaceCode, String roleName)
protected List<RoleMember> doAnyMemberRecordsMatchByExactQualifier(RoleEbo role, String memberId, RoleServiceBase.RoleDaoAction daoActionToTake, Map<String,String> qualifier)
protected List<RoleMemberBo> getRoleMembersByExactQualifierMatch(RoleEbo role, String memberId, RoleServiceBase.RoleDaoAction daoActionToTake, Map<String,String> qualifier)
protected RoleMember doAnyMemberRecordsMatch(List<RoleMemberBo> roleMembers, String memberId, String memberTypeCode, Map<String,String> qualifier)
protected boolean doesMemberMatch(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 getRoleTypeServiceByName(String serviceName)
serviceName
- the name of the service to retrieve
protected 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<KimAttributeBo> getAttributeByName(String attributeName)
protected String getCorrectAttributeId(String kimTypeId, String attributeName, Collection<KimAttributeBo> attributeData)
protected String getAttributeFromKimType(KimType kimType, String attributeName)
protected String getAttributeFromNamespace(KimType kimType, String attributeName, Collection<KimAttributeBo> attributes)
protected String getAppIdFromNamespace(String namespaceCode)
protected String getAttributeFromAppId(Collection<KimAttributeBo> attributes, String appId)
protected KimTypeInfoService getKimTypeInfoService()
protected NamespaceService getNamespaceService()
protected IdentityService getIdentityService()
protected GroupService getGroupService()
protected ResponsibilityInternalService getResponsibilityInternalService()
protected RoleDao getRoleDao()
public void setRoleDao(RoleDao roleDao)
public DataObjectService getDataObjectService()
public void setDataObjectService(DataObjectService dataObjectService)
public DateTimeService getDateTimeService()
public void setDateTimeService(DateTimeService dateTimeService)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |