|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl
public class IdentityManagementServiceImpl
Constructor Summary | |
---|---|
IdentityManagementServiceImpl()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final Logger LOG
private AuthenticationService authenticationService
private PermissionService permissionService
private ResponsibilityService responsibilityService
private IdentityService identityService
private GroupService groupService
private GroupUpdateService groupUpdateService
private IdentityUpdateService identityUpdateService
protected int entityPrincipalCacheMaxSize
protected int entityPrincipalCacheMaxAgeSeconds
protected int groupCacheMaxSize
protected int groupCacheMaxAgeSeconds
protected int permissionCacheMaxSize
protected int permissionCacheMaxAgeSeconds
protected int responsibilityCacheMaxSize
protected int responsibilityCacheMaxAgeSeconds
protected Map<String,MaxAgeSoftReference<KimEntityDefaultInfo>> entityDefaultInfoCache
protected Map<String,MaxAgeSoftReference<KimEntity>> entityCache
protected Map<String,MaxAgeSoftReference<KimEntityInfo>> entityInfoCache
protected Map<String,MaxAgeSoftReference<KimPrincipalInfo>> principalByIdCache
protected Map<String,MaxAgeSoftReference<KimPrincipalInfo>> principalByNameCache
protected Map<String,MaxAgeSoftReference<GroupInfo>> groupByIdCache
protected Map<String,MaxAgeSoftReference<GroupInfo>> groupByNameCache
protected Map<String,MaxAgeSoftReference<List<String>>> groupIdsForPrincipalCache
protected Map<String,MaxAgeSoftReference<List<? extends GroupInfo>>> groupsForPrincipalCache
protected Map<String,MaxAgeSoftReference<Boolean>> isMemberOfGroupCache
protected Map<String,MaxAgeSoftReference<Boolean>> isGroupMemberOfGroupCache
protected Map<String,MaxAgeSoftReference<List<String>>> groupMemberPrincipalIdsCache
protected Map<String,MaxAgeSoftReference<Boolean>> hasPermissionCache
protected Map<String,MaxAgeSoftReference<Boolean>> hasPermissionByTemplateCache
protected Map<String,MaxAgeSoftReference<Boolean>> isAuthorizedCache
protected Map<String,MaxAgeSoftReference<Boolean>> isAuthorizedByTemplateNameCache
protected Map<String,MaxAgeSoftReference<Boolean>> isPermissionDefinedForTemplateNameCache
protected HashMap<String,KimCodeInfoBase> kimReferenceTypeCache
Constructor Detail |
---|
public IdentityManagementServiceImpl()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public void flushAllCaches()
flushAllCaches
in interface IdentityManagementService
public void flushEntityPrincipalCaches()
flushEntityPrincipalCaches
in interface IdentityManagementService
public void flushGroupCaches()
flushGroupCaches
in interface IdentityManagementService
public void flushPermissionCaches()
flushPermissionCaches
in interface IdentityManagementService
public void flushResponsibilityCaches()
flushResponsibilityCaches
in interface IdentityManagementService
protected KimEntityDefaultInfo getEntityDefaultInfoFromCache(String entityId)
protected KimEntityDefaultInfo getEntityDefaultInfoFromCacheByPrincipalId(String principalId)
protected KimEntityDefaultInfo getEntityDefaultInfoFromCacheByPrincipalName(String principalName)
protected KimEntityInfo getEntityInfoFromCache(String entityId)
protected KimEntityInfo getEntityInfoFromCacheByPrincipalId(String principalId)
protected KimEntityInfo getEntityInfoFromCacheByPrincipalName(String principalName)
protected KimEntity getEntityFromCache(String entityId)
protected KimEntity getEntityFromCacheByPrincipalId(String principalId)
protected KimEntity getEntityFromCacheByPrincipalName(String principalName)
protected KimPrincipalInfo getPrincipalByIdCache(String principalId)
protected KimPrincipalInfo getPrincipalByNameCache(String principalName)
protected GroupInfo getGroupByIdCache(String groupId)
protected GroupInfo getGroupByNameCache(String groupName)
protected List<String> getGroupIdsForPrincipalCache(String principalId)
protected List<? extends GroupInfo> getGroupsForPrincipalCache(String principalId)
protected Boolean getIsMemberOfGroupCache(String principalId, String groupId)
protected Boolean getIsGroupMemberOfGroupCache(String potentialMemberId, String potentialParentId)
protected List<String> getGroupMemberPrincipalIdsCache(String groupId)
protected Boolean getHasPermissionCache(String key)
protected Boolean getHasPermissionByTemplateCache(String key)
protected Boolean getIsAuthorizedByTemplateNameFromCache(String key)
protected Boolean getIsAuthorizedFromCache(String key)
protected void addEntityToCache(KimEntity entity)
protected void addEntityDefaultInfoToCache(KimEntityDefaultInfo entity)
protected void addEntityInfoToCache(KimEntityInfo entity)
protected void addPrincipalToCache(KimPrincipalInfo principal)
protected void addGroupToCache(GroupInfo group)
protected void addGroupIdsForPrincipalToCache(String principalId, List<String> ids)
protected void addGroupsForPrincipalToCache(String principalId, List<? extends GroupInfo> groups)
protected void addIsMemberOfGroupToCache(String principalId, String groupId, boolean member)
protected void addIsGroupMemberOfGroupToCache(String potentialMemberId, String potentialParentId, boolean member)
protected void addGroupMemberPrincipalIdsToCache(String groupId, List<String> ids)
protected void addHasPermissionToCache(String key, boolean hasPerm)
protected void addHasPermissionByTemplateToCache(String key, boolean hasPerm)
protected void addIsAuthorizedByTemplateNameToCache(String key, boolean authorized)
protected void addIsAuthorizedToCache(String key, boolean authorized)
public String getAuthenticatedPrincipalName(HttpServletRequest request)
getAuthenticatedPrincipalName
in interface IdentityManagementService
@Transactional(readOnly=true) public boolean hasPermission(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails)
hasPermission
in interface IdentityManagementService
@Transactional(readOnly=true) public boolean isAuthorized(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
isAuthorized
in interface IdentityManagementService
@Transactional(readOnly=true) public boolean hasPermissionByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails)
hasPermissionByTemplateName
in interface IdentityManagementService
@Transactional(readOnly=true) public boolean isAuthorizedByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
isAuthorizedByTemplateName
in interface IdentityManagementService
private void addAttributeSetToKey(AttributeSet attributes, StringBuffer key)
public List<? extends KimPermissionInfo> getAuthorizedPermissions(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
IdentityManagementService
getAuthorizedPermissions
in interface IdentityManagementService
IdentityManagementService.getAuthorizedPermissions(java.lang.String, String, java.lang.String, org.kuali.rice.kim.bo.types.dto.AttributeSet, org.kuali.rice.kim.bo.types.dto.AttributeSet)
@Transactional(readOnly=true) public List<? extends KimPermissionInfo> getAuthorizedPermissionsByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
getAuthorizedPermissionsByTemplateName
in interface IdentityManagementService
@Transactional(readOnly=true) public boolean isPermissionDefinedForTemplateName(String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails)
IdentityManagementService
isPermissionDefinedForTemplateName
in interface IdentityManagementService
public List<PermissionAssigneeInfo> getPermissionAssignees(String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
getPermissionAssignees
in interface IdentityManagementService
public List<PermissionAssigneeInfo> getPermissionAssigneesForTemplateName(String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
getPermissionAssigneesForTemplateName
in interface IdentityManagementService
public boolean isMemberOfGroup(String principalId, String groupId)
isMemberOfGroup
in interface IdentityManagementService
public boolean isMemberOfGroup(String principalId, String namespaceCode, String groupName)
isMemberOfGroup
in interface IdentityManagementService
public boolean isGroupMemberOfGroup(String potentialMemberId, String potentialParentId)
isGroupMemberOfGroup
in interface IdentityManagementService
public List<String> getGroupMemberPrincipalIds(String groupId)
getGroupMemberPrincipalIds
in interface IdentityManagementService
public List<String> getDirectGroupMemberPrincipalIds(String groupId)
getDirectGroupMemberPrincipalIds
in interface IdentityManagementService
public List<String> getGroupIdsForPrincipal(String principalId)
getGroupIdsForPrincipal
in interface IdentityManagementService
public List<String> getGroupIdsForPrincipal(String principalId, String namespaceCode)
getGroupIdsForPrincipal
in interface IdentityManagementService
public List<? extends GroupInfo> getGroupsForPrincipal(String principalId)
getGroupsForPrincipal
in interface IdentityManagementService
public List<? extends GroupInfo> getGroupsForPrincipal(String principalId, String namespaceCode)
getGroupsForPrincipal
in interface IdentityManagementService
public List<String> getMemberGroupIds(String groupId)
getMemberGroupIds
in interface IdentityManagementService
public List<String> getDirectMemberGroupIds(String groupId)
getDirectMemberGroupIds
in interface IdentityManagementService
public GroupInfo getGroup(String groupId)
getGroup
in interface IdentityManagementService
public GroupInfo getGroupByName(String namespaceCode, String groupName)
getGroupByName
in interface IdentityManagementService
public List<String> getParentGroupIds(String groupId)
getParentGroupIds
in interface IdentityManagementService
public List<String> getDirectParentGroupIds(String groupId)
getDirectParentGroupIds
in interface IdentityManagementService
protected void clearGroupCachesForPrincipalAndGroup(String principalId, String groupId)
public boolean addGroupToGroup(String childId, String parentId)
addGroupToGroup
in interface IdentityManagementService
public boolean addPrincipalToGroup(String principalId, String groupId)
addPrincipalToGroup
in interface IdentityManagementService
public boolean removeGroupFromGroup(String childId, String parentId)
removeGroupFromGroup
in interface IdentityManagementService
public boolean removePrincipalFromGroup(String principalId, String groupId)
removePrincipalFromGroup
in interface IdentityManagementService
public GroupInfo createGroup(GroupInfo groupInfo)
createGroup
in interface IdentityManagementService
groupInfo
-
GroupUpdateService.createGroup(org.kuali.rice.kim.bo.group.dto.GroupInfo)
public void removeAllGroupMembers(String groupId)
removeAllGroupMembers
in interface IdentityManagementService
groupId
- GroupUpdateService.removeAllGroupMembers(java.lang.String)
public GroupInfo updateGroup(String groupId, GroupInfo groupInfo)
updateGroup
in interface IdentityManagementService
groupId
- groupInfo
-
GroupUpdateService.updateGroup(java.lang.String, org.kuali.rice.kim.bo.group.dto.GroupInfo)
public KimPrincipalInfo getPrincipal(String principalId)
getPrincipal
in interface IdentityManagementService
@Transactional(readOnly=true) public KimPrincipalInfo getPrincipalByPrincipalName(String principalName)
getPrincipalByPrincipalName
in interface IdentityManagementService
public KimPrincipalInfo getPrincipalByPrincipalNameAndPassword(String principalName, String password)
getPrincipalByPrincipalNameAndPassword
in interface IdentityManagementService
IdentityManagementService.getPrincipalByPrincipalNameAndPassword(java.lang.String, java.lang.String)
public KimEntityDefaultInfo getEntityDefaultInfo(String entityId)
getEntityDefaultInfo
in interface IdentityManagementService
IdentityManagementService.getEntityDefaultInfo(java.lang.String)
@Transactional(readOnly=true) public KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(String principalId)
getEntityDefaultInfoByPrincipalId
in interface IdentityManagementService
IdentityManagementService.getEntityDefaultInfoByPrincipalId(java.lang.String)
public KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(String principalName)
getEntityDefaultInfoByPrincipalName
in interface IdentityManagementService
IdentityManagementService.getEntityDefaultInfoByPrincipalName(java.lang.String)
@Transactional(readOnly=true) public List<? extends KimEntityDefaultInfo> lookupEntityDefaultInfo(Map<String,String> searchCriteria, boolean unbounded)
lookupEntityDefaultInfo
in interface IdentityManagementService
IdentityManagementService.lookupEntityDefaultInfo(Map, boolean)
public KimEntityInfo getEntityInfo(String entityId)
getEntityInfo
in interface IdentityManagementService
IdentityManagementService.getEntityInfo(java.lang.String)
@Transactional(readOnly=true) public KimEntityInfo getEntityInfoByPrincipalId(String principalId)
getEntityInfoByPrincipalId
in interface IdentityManagementService
IdentityManagementService.getEntityInfoByPrincipalId(java.lang.String)
public KimEntityInfo getEntityInfoByPrincipalName(String principalName)
getEntityInfoByPrincipalName
in interface IdentityManagementService
IdentityManagementService.getEntityInfoByPrincipalName(java.lang.String)
@Transactional(readOnly=true) public List<KimEntityInfo> lookupEntityInfo(Map<String,String> searchCriteria, boolean unbounded)
lookupEntityInfo
in interface IdentityManagementService
IdentityManagementService.lookupEntityInfo(java.util.Map, boolean)
public int getMatchingEntityCount(Map<String,String> searchCriteria)
getMatchingEntityCount
in interface IdentityManagementService
IdentityManagementService.getMatchingEntityCount(java.util.Map)
public AddressTypeInfo getAddressType(String code)
getAddressType
in interface IdentityManagementService
public AffiliationTypeInfo getAffiliationType(String code)
getAffiliationType
in interface IdentityManagementService
public CitizenshipStatusInfo getCitizenshipStatus(String code)
getCitizenshipStatus
in interface IdentityManagementService
public EmailTypeInfo getEmailType(String code)
getEmailType
in interface IdentityManagementService
public EmploymentStatusInfo getEmploymentStatus(String code)
getEmploymentStatus
in interface IdentityManagementService
public EmploymentTypeInfo getEmploymentType(String code)
getEmploymentType
in interface IdentityManagementService
public EntityNameTypeInfo getEntityNameType(String code)
getEntityNameType
in interface IdentityManagementService
public EntityTypeInfo getEntityType(String code)
getEntityType
in interface IdentityManagementService
public ExternalIdentifierTypeInfo getExternalIdentifierType(String code)
getExternalIdentifierType
in interface IdentityManagementService
public PhoneTypeInfo getPhoneType(String code)
getPhoneType
in interface IdentityManagementService
public AuthenticationService getAuthenticationService()
public IdentityService getIdentityService()
public GroupService getGroupService()
public PermissionService getPermissionService()
public ResponsibilityService getResponsibilityService()
public KimResponsibilityInfo getResponsibility(String responsibilityId)
IdentityManagementService
getResponsibility
in interface IdentityManagementService
IdentityManagementService.getResponsibility(java.lang.String)
@Transactional(readOnly=true) public boolean hasResponsibility(String principalId, String namespaceCode, String responsibilityName, AttributeSet qualification, AttributeSet responsibilityDetails)
IdentityManagementService
hasResponsibility
in interface IdentityManagementService
IdentityManagementService.hasResponsibility(java.lang.String, String, java.lang.String, AttributeSet, AttributeSet)
public List<? extends KimResponsibilityInfo> getResponsibilitiesByName(String namespaceCode, String responsibilityName)
IdentityManagementService
getResponsibilitiesByName
in interface IdentityManagementService
public List<ResponsibilityActionInfo> getResponsibilityActions(String namespaceCode, String responsibilityName, AttributeSet qualification, AttributeSet responsibilityDetails)
getResponsibilityActions
in interface IdentityManagementService
public List<ResponsibilityActionInfo> getResponsibilityActionsByTemplateName(String namespaceCode, String responsibilityTemplateName, AttributeSet qualification, AttributeSet responsibilityDetails)
getResponsibilityActionsByTemplateName
in interface IdentityManagementService
IdentityManagementService.getResponsibilityActionsByTemplateName(java.lang.String, java.lang.String, org.kuali.rice.kim.bo.types.dto.AttributeSet, org.kuali.rice.kim.bo.types.dto.AttributeSet)
@Transactional(readOnly=true) public boolean hasResponsibilityByTemplateName(String principalId, String namespaceCode, String responsibilityTemplateName, AttributeSet qualification, AttributeSet responsibilityDetails)
hasResponsibilityByTemplateName
in interface IdentityManagementService
IdentityManagementService.hasResponsibilityByTemplateName(java.lang.String, java.lang.String, java.lang.String, org.kuali.rice.kim.bo.types.dto.AttributeSet, org.kuali.rice.kim.bo.types.dto.AttributeSet)
public void setEntityPrincipalCacheMaxSize(int entityPrincipalCacheMaxSize)
public void setEntityPrincipalCacheMaxAgeSeconds(int entityPrincipalCacheMaxAge)
public void setGroupCacheMaxSize(int groupCacheMaxSize)
public void setGroupCacheMaxAgeSeconds(int groupCacheMaxAge)
public void setPermissionCacheMaxSize(int permissionCacheMaxSize)
public void setPermissionCacheMaxAgeSeconds(int permissionCacheMaxAge)
public void setResponsibilityCacheMaxSize(int responsibilityCacheMaxSize)
public void setResponsibilityCacheMaxAgeSeconds(int responsibilityCacheMaxAge)
protected void logAuthorizationCheck(String checkType, String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
protected void logHasPermissionCheck(String checkType, String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails)
public GroupUpdateService getGroupUpdateService()
public IdentityUpdateService getIdentityUpdateService()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |