|
||||||||||
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 org.apache.log4j.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<Principal>> principalByIdCache
protected Map<String,MaxAgeSoftReference<Principal>> principalByNameCache
protected Map<String,MaxAgeSoftReference<Group>> groupByIdCache
protected Map<String,MaxAgeSoftReference<Group>> groupByNameCache
protected Map<String,MaxAgeSoftReference<List<String>>> groupIdsForPrincipalCache
protected Map<String,MaxAgeSoftReference<List<? extends Group>>> 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
protected HashMap<String,TypeContract> kimReferenceTypeCacheMap
Constructor Detail |
---|
public IdentityManagementServiceImpl()
Method Detail |
---|
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.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 Principal getPrincipalByIdCache(String principalId)
protected Principal getPrincipalByNameCache(String principalName)
protected Group getGroupByIdCache(String groupId)
protected Group getGroupByNameCache(String groupName)
protected List<String> getGroupIdsForPrincipalCache(String principalId)
protected List<? extends Group> 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(Principal principal)
protected void addGroupToCache(Group group)
protected void addGroupIdsForPrincipalToCache(String principalId, List<String> ids)
protected void addGroupsForPrincipalToCache(String principalId, List<? extends Group> 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 boolean hasPermission(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails)
hasPermission
in interface IdentityManagementService
public boolean isAuthorized(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
isAuthorized
in interface IdentityManagementService
public boolean hasPermissionByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails)
hasPermissionByTemplateName
in interface IdentityManagementService
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.core.util.AttributeSet, org.kuali.rice.core.util.AttributeSet)
public List<? extends KimPermissionInfo> getAuthorizedPermissionsByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
getAuthorizedPermissionsByTemplateName
in interface IdentityManagementService
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 Group> getGroupsForPrincipal(String principalId)
getGroupsForPrincipal
in interface IdentityManagementService
public List<? extends Group> 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 Group getGroup(String groupId)
getGroup
in interface IdentityManagementService
public Group 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 Group createGroup(Group group)
createGroup
in interface IdentityManagementService
groupInfo
-
org.kuali.rice.kim.service.GroupUpdateService#createGroup(org.kuali.rice.kim.bo.group.dto.GroupInfo)
public void removeAllMembers(String groupId)
removeAllMembers
in interface IdentityManagementService
groupId
- GroupUpdateService.removeAllMembers(java.lang.String)
public Group updateGroup(String groupId, Group group)
updateGroup
in interface IdentityManagementService
groupId
- group
-
GroupUpdateService.updateGroup(java.lang.String, org.kuali.rice.kim.api.group.Group)
public Principal getPrincipal(String principalId)
getPrincipal
in interface IdentityManagementService
public Principal getPrincipalByPrincipalName(String principalName)
getPrincipalByPrincipalName
in interface IdentityManagementService
public Principal 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)
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)
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)
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)
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 Type getAddressType(String code)
getAddressType
in interface IdentityManagementService
public Type getEmailType(String code)
getEmailType
in interface IdentityManagementService
public AffiliationTypeInfo getAffiliationType(String code)
getAffiliationType
in interface IdentityManagementService
public Type getCitizenshipStatus(String code)
getCitizenshipStatus
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 Type getEntityType(String code)
getEntityType
in interface IdentityManagementService
public ExternalIdentifierTypeInfo getExternalIdentifierType(String code)
getExternalIdentifierType
in interface IdentityManagementService
public Type getPhoneType(String code)
getPhoneType
in interface IdentityManagementService
public IdentityService getIdentityService()
public GroupService getGroupService()
public PermissionService getPermissionService()
public ResponsibilityService getResponsibilityService()
public Responsibility getResponsibility(String responsibilityId)
IdentityManagementService
getResponsibility
in interface IdentityManagementService
IdentityManagementService.getResponsibility(java.lang.String)
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<Responsibility> getResponsibilitiesByName(String namespaceCode, String responsibilityName)
IdentityManagementService
getResponsibilitiesByName
in interface IdentityManagementService
public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode, String responsibilityName, AttributeSet qualification, AttributeSet responsibilityDetails)
getResponsibilityActions
in interface IdentityManagementService
public List<ResponsibilityAction> getResponsibilityActionsByTemplateName(String namespaceCode, String responsibilityTemplateName, AttributeSet qualification, AttributeSet responsibilityDetails)
getResponsibilityActionsByTemplateName
in interface IdentityManagementService
IdentityManagementService.getResponsibilityActionsByTemplateName(java.lang.String, java.lang.String, org.kuali.rice.core.util.AttributeSet, org.kuali.rice.core.util.AttributeSet)
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.core.util.AttributeSet, org.kuali.rice.core.util.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 |