org.kuali.rice.kim.service.impl
Class IdentityManagementServiceImpl

java.lang.Object
  extended by org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl
All Implemented Interfaces:
IdentityManagementService, org.springframework.beans.factory.InitializingBean

public class IdentityManagementServiceImpl
extends Object
implements IdentityManagementService, org.springframework.beans.factory.InitializingBean


Field Summary
private  AuthenticationService authenticationService
           
protected  Map<String,MaxAgeSoftReference<KimEntity>> entityCache
           
protected  Map<String,MaxAgeSoftReference<KimEntityDefaultInfo>> entityDefaultInfoCache
           
protected  Map<String,MaxAgeSoftReference<KimEntityInfo>> entityInfoCache
           
protected  int entityPrincipalCacheMaxAgeSeconds
           
protected  int entityPrincipalCacheMaxSize
           
protected  Map<String,MaxAgeSoftReference<Group>> groupByIdCache
           
protected  Map<String,MaxAgeSoftReference<Group>> groupByNameCache
           
protected  int groupCacheMaxAgeSeconds
           
protected  int groupCacheMaxSize
           
protected  Map<String,MaxAgeSoftReference<List<String>>> groupIdsForPrincipalCache
           
protected  Map<String,MaxAgeSoftReference<List<String>>> groupMemberPrincipalIdsCache
           
private  GroupService groupService
           
protected  Map<String,MaxAgeSoftReference<List<? extends Group>>> groupsForPrincipalCache
           
private  GroupUpdateService groupUpdateService
           
protected  Map<String,MaxAgeSoftReference<Boolean>> hasPermissionByTemplateCache
           
protected  Map<String,MaxAgeSoftReference<Boolean>> hasPermissionCache
           
private  IdentityService identityService
           
private  IdentityUpdateService identityUpdateService
           
protected  Map<String,MaxAgeSoftReference<Boolean>> isAuthorizedByTemplateNameCache
           
protected  Map<String,MaxAgeSoftReference<Boolean>> isAuthorizedCache
           
protected  Map<String,MaxAgeSoftReference<Boolean>> isGroupMemberOfGroupCache
           
protected  Map<String,MaxAgeSoftReference<Boolean>> isMemberOfGroupCache
           
protected  Map<String,MaxAgeSoftReference<Boolean>> isPermissionDefinedForTemplateNameCache
           
protected  HashMap<String,KimCodeInfoBase> kimReferenceTypeCache
           
protected  HashMap<String,TypeContract> kimReferenceTypeCacheMap
           
private static org.apache.log4j.Logger LOG
           
protected  int permissionCacheMaxAgeSeconds
           
protected  int permissionCacheMaxSize
           
private  PermissionService permissionService
           
protected  Map<String,MaxAgeSoftReference<Principal>> principalByIdCache
           
protected  Map<String,MaxAgeSoftReference<Principal>> principalByNameCache
           
protected  int responsibilityCacheMaxAgeSeconds
           
protected  int responsibilityCacheMaxSize
           
private  ResponsibilityService responsibilityService
           
 
Constructor Summary
IdentityManagementServiceImpl()
           
 
Method Summary
private  void addAttributeSetToKey(AttributeSet attributes, StringBuffer key)
           
protected  void addEntityDefaultInfoToCache(KimEntityDefaultInfo entity)
           
protected  void addEntityInfoToCache(KimEntityInfo entity)
           
protected  void addEntityToCache(KimEntity entity)
           
protected  void addGroupIdsForPrincipalToCache(String principalId, List<String> ids)
           
protected  void addGroupMemberPrincipalIdsToCache(String groupId, List<String> ids)
           
protected  void addGroupsForPrincipalToCache(String principalId, List<? extends Group> groups)
           
protected  void addGroupToCache(Group group)
           
 boolean addGroupToGroup(String childId, String parentId)
           
protected  void addHasPermissionByTemplateToCache(String key, boolean hasPerm)
           
protected  void addHasPermissionToCache(String key, boolean hasPerm)
           
protected  void addIsAuthorizedByTemplateNameToCache(String key, boolean authorized)
           
protected  void addIsAuthorizedToCache(String key, boolean authorized)
           
protected  void addIsGroupMemberOfGroupToCache(String potentialMemberId, String potentialParentId, boolean member)
           
protected  void addIsMemberOfGroupToCache(String principalId, String groupId, boolean member)
           
protected  void addPrincipalToCache(Principal principal)
           
 boolean addPrincipalToGroup(String principalId, String groupId)
           
 void afterPropertiesSet()
           
protected  void clearGroupCachesForPrincipalAndGroup(String principalId, String groupId)
           
 Group createGroup(Group group)
          This delegate method ...
 void flushAllCaches()
           
 void flushEntityPrincipalCaches()
           
 void flushGroupCaches()
           
 void flushPermissionCaches()
           
 void flushResponsibilityCaches()
           
 Type getAddressType(String code)
           
 AffiliationTypeInfo getAffiliationType(String code)
           
 List<? extends KimPermissionInfo> getAuthorizedPermissions(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
          Returns the matching permission objects for a principal.
 List<? extends KimPermissionInfo> getAuthorizedPermissionsByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
           
 Type getCitizenshipStatus(String code)
           
 List<String> getDirectGroupMemberPrincipalIds(String groupId)
           
 List<String> getDirectMemberGroupIds(String groupId)
           
 List<String> getDirectParentGroupIds(String groupId)
           
 Type getEmailType(String code)
           
 EmploymentStatusInfo getEmploymentStatus(String code)
           
 EmploymentTypeInfo getEmploymentType(String code)
           
 KimEntityDefaultInfo getEntityDefaultInfo(String entityId)
          This overridden method ...
 KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(String principalId)
          This overridden method ...
 KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(String principalName)
          This overridden method ...
protected  KimEntityDefaultInfo getEntityDefaultInfoFromCache(String entityId)
           
protected  KimEntityDefaultInfo getEntityDefaultInfoFromCacheByPrincipalId(String principalId)
           
protected  KimEntityDefaultInfo getEntityDefaultInfoFromCacheByPrincipalName(String principalName)
           
protected  KimEntity getEntityFromCache(String entityId)
           
protected  KimEntity getEntityFromCacheByPrincipalId(String principalId)
           
protected  KimEntity getEntityFromCacheByPrincipalName(String principalName)
           
 KimEntityInfo getEntityInfo(String entityId)
           
 KimEntityInfo getEntityInfoByPrincipalId(String principalId)
           
 KimEntityInfo getEntityInfoByPrincipalName(String principalName)
          This overridden method ...
protected  KimEntityInfo getEntityInfoFromCache(String entityId)
           
protected  KimEntityInfo getEntityInfoFromCacheByPrincipalId(String principalId)
           
protected  KimEntityInfo getEntityInfoFromCacheByPrincipalName(String principalName)
           
 EntityNameTypeInfo getEntityNameType(String code)
           
 Type getEntityType(String code)
           
 ExternalIdentifierTypeInfo getExternalIdentifierType(String code)
           
 Group getGroup(String groupId)
           
protected  Group getGroupByIdCache(String groupId)
           
 Group getGroupByName(String namespaceCode, String groupName)
           
protected  Group getGroupByNameCache(String groupName)
           
 List<String> getGroupIdsForPrincipal(String principalId)
           
 List<String> getGroupIdsForPrincipal(String principalId, String namespaceCode)
           
protected  List<String> getGroupIdsForPrincipalCache(String principalId)
           
 List<String> getGroupMemberPrincipalIds(String groupId)
           
protected  List<String> getGroupMemberPrincipalIdsCache(String groupId)
           
 GroupService getGroupService()
           
 List<? extends Group> getGroupsForPrincipal(String principalId)
           
 List<? extends Group> getGroupsForPrincipal(String principalId, String namespaceCode)
           
protected  List<? extends Group> getGroupsForPrincipalCache(String principalId)
           
 GroupUpdateService getGroupUpdateService()
           
protected  Boolean getHasPermissionByTemplateCache(String key)
           
protected  Boolean getHasPermissionCache(String key)
           
 IdentityService getIdentityService()
           
 IdentityUpdateService getIdentityUpdateService()
           
protected  Boolean getIsAuthorizedByTemplateNameFromCache(String key)
           
protected  Boolean getIsAuthorizedFromCache(String key)
           
protected  Boolean getIsGroupMemberOfGroupCache(String potentialMemberId, String potentialParentId)
           
protected  Boolean getIsMemberOfGroupCache(String principalId, String groupId)
           
 int getMatchingEntityCount(Map<String,String> searchCriteria)
           
 List<String> getMemberGroupIds(String groupId)
           
 List<String> getParentGroupIds(String groupId)
           
 List<PermissionAssigneeInfo> getPermissionAssignees(String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
           
 List<PermissionAssigneeInfo> getPermissionAssigneesForTemplateName(String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
           
 PermissionService getPermissionService()
           
 Type getPhoneType(String code)
           
 Principal getPrincipal(String principalId)
           
protected  Principal getPrincipalByIdCache(String principalId)
           
protected  Principal getPrincipalByNameCache(String principalName)
           
 Principal getPrincipalByPrincipalName(String principalName)
           
 Principal getPrincipalByPrincipalNameAndPassword(String principalName, String password)
           
 List<Responsibility> getResponsibilitiesByName(String namespaceCode, String responsibilityName)
          Return the responsibility object for the given unique combination of namespace, component and responsibility name.
 Responsibility getResponsibility(String responsibilityId)
          Get the responsibility object with the given ID.
 List<ResponsibilityAction> getResponsibilityActions(String namespaceCode, String responsibilityName, AttributeSet qualification, AttributeSet responsibilityDetails)
           
 List<ResponsibilityAction> getResponsibilityActionsByTemplateName(String namespaceCode, String responsibilityTemplateName, AttributeSet qualification, AttributeSet responsibilityDetails)
          This overridden method ...
 ResponsibilityService getResponsibilityService()
           
 boolean hasPermission(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails)
           
 boolean hasPermissionByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails)
           
 boolean hasResponsibility(String principalId, String namespaceCode, String responsibilityName, AttributeSet qualification, AttributeSet responsibilityDetails)
          Check whether the principal has the given responsibility within the passed qualifier.
 boolean hasResponsibilityByTemplateName(String principalId, String namespaceCode, String responsibilityTemplateName, AttributeSet qualification, AttributeSet responsibilityDetails)
          This overridden method ...
 boolean isAuthorized(String principalId, String namespaceCode, String permissionName, AttributeSet permissionDetails, AttributeSet qualification)
           
 boolean isAuthorizedByTemplateName(String principalId, String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails, AttributeSet qualification)
           
 boolean isGroupMemberOfGroup(String potentialMemberId, String potentialParentId)
           
 boolean isMemberOfGroup(String principalId, String groupId)
           
 boolean isMemberOfGroup(String principalId, String namespaceCode, String groupName)
           
 boolean isPermissionDefinedForTemplateName(String namespaceCode, String permissionTemplateName, AttributeSet permissionDetails)
          Returns true if there are any assigned permissions with the given template.
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)
           
 List<? extends KimEntityDefaultInfo> lookupEntityDefaultInfo(Map<String,String> searchCriteria, boolean unbounded)
          This overridden method ...
 List<KimEntityInfo> lookupEntityInfo(Map<String,String> searchCriteria, boolean unbounded)
           
 void removeAllMembers(String groupId)
          This delegate method ...
 boolean removeGroupFromGroup(String childId, String parentId)
           
 boolean removePrincipalFromGroup(String principalId, String groupId)
           
 void setEntityPrincipalCacheMaxAgeSeconds(int entityPrincipalCacheMaxAge)
           
 void setEntityPrincipalCacheMaxSize(int entityPrincipalCacheMaxSize)
           
 void setGroupCacheMaxAgeSeconds(int groupCacheMaxAge)
           
 void setGroupCacheMaxSize(int groupCacheMaxSize)
           
 void setPermissionCacheMaxAgeSeconds(int permissionCacheMaxAge)
           
 void setPermissionCacheMaxSize(int permissionCacheMaxSize)
           
 void setResponsibilityCacheMaxAgeSeconds(int responsibilityCacheMaxAge)
           
 void setResponsibilityCacheMaxSize(int responsibilityCacheMaxSize)
           
 Group updateGroup(String groupId, Group group)
          This delegate method ...
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LOG

private static final org.apache.log4j.Logger LOG

authenticationService

private AuthenticationService authenticationService

permissionService

private PermissionService permissionService

responsibilityService

private ResponsibilityService responsibilityService

identityService

private IdentityService identityService

groupService

private GroupService groupService

groupUpdateService

private GroupUpdateService groupUpdateService

identityUpdateService

private IdentityUpdateService identityUpdateService

entityPrincipalCacheMaxSize

protected int entityPrincipalCacheMaxSize

entityPrincipalCacheMaxAgeSeconds

protected int entityPrincipalCacheMaxAgeSeconds

groupCacheMaxSize

protected int groupCacheMaxSize

groupCacheMaxAgeSeconds

protected int groupCacheMaxAgeSeconds

permissionCacheMaxSize

protected int permissionCacheMaxSize

permissionCacheMaxAgeSeconds

protected int permissionCacheMaxAgeSeconds

responsibilityCacheMaxSize

protected int responsibilityCacheMaxSize

responsibilityCacheMaxAgeSeconds

protected int responsibilityCacheMaxAgeSeconds

entityDefaultInfoCache

protected Map<String,MaxAgeSoftReference<KimEntityDefaultInfo>> entityDefaultInfoCache

entityCache

protected Map<String,MaxAgeSoftReference<KimEntity>> entityCache

entityInfoCache

protected Map<String,MaxAgeSoftReference<KimEntityInfo>> entityInfoCache

principalByIdCache

protected Map<String,MaxAgeSoftReference<Principal>> principalByIdCache

principalByNameCache

protected Map<String,MaxAgeSoftReference<Principal>> principalByNameCache

groupByIdCache

protected Map<String,MaxAgeSoftReference<Group>> groupByIdCache

groupByNameCache

protected Map<String,MaxAgeSoftReference<Group>> groupByNameCache

groupIdsForPrincipalCache

protected Map<String,MaxAgeSoftReference<List<String>>> groupIdsForPrincipalCache

groupsForPrincipalCache

protected Map<String,MaxAgeSoftReference<List<? extends Group>>> groupsForPrincipalCache

isMemberOfGroupCache

protected Map<String,MaxAgeSoftReference<Boolean>> isMemberOfGroupCache

isGroupMemberOfGroupCache

protected Map<String,MaxAgeSoftReference<Boolean>> isGroupMemberOfGroupCache

groupMemberPrincipalIdsCache

protected Map<String,MaxAgeSoftReference<List<String>>> groupMemberPrincipalIdsCache

hasPermissionCache

protected Map<String,MaxAgeSoftReference<Boolean>> hasPermissionCache

hasPermissionByTemplateCache

protected Map<String,MaxAgeSoftReference<Boolean>> hasPermissionByTemplateCache

isAuthorizedCache

protected Map<String,MaxAgeSoftReference<Boolean>> isAuthorizedCache

isAuthorizedByTemplateNameCache

protected Map<String,MaxAgeSoftReference<Boolean>> isAuthorizedByTemplateNameCache

isPermissionDefinedForTemplateNameCache

protected Map<String,MaxAgeSoftReference<Boolean>> isPermissionDefinedForTemplateNameCache

kimReferenceTypeCache

protected HashMap<String,KimCodeInfoBase> kimReferenceTypeCache

kimReferenceTypeCacheMap

protected HashMap<String,TypeContract> kimReferenceTypeCacheMap
Constructor Detail

IdentityManagementServiceImpl

public IdentityManagementServiceImpl()
Method Detail

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

flushAllCaches

public void flushAllCaches()
Specified by:
flushAllCaches in interface IdentityManagementService

flushEntityPrincipalCaches

public void flushEntityPrincipalCaches()
Specified by:
flushEntityPrincipalCaches in interface IdentityManagementService

flushGroupCaches

public void flushGroupCaches()
Specified by:
flushGroupCaches in interface IdentityManagementService

flushPermissionCaches

public void flushPermissionCaches()
Specified by:
flushPermissionCaches in interface IdentityManagementService

flushResponsibilityCaches

public void flushResponsibilityCaches()
Specified by:
flushResponsibilityCaches in interface IdentityManagementService

getEntityDefaultInfoFromCache

protected KimEntityDefaultInfo getEntityDefaultInfoFromCache(String entityId)

getEntityDefaultInfoFromCacheByPrincipalId

protected KimEntityDefaultInfo getEntityDefaultInfoFromCacheByPrincipalId(String principalId)

getEntityDefaultInfoFromCacheByPrincipalName

protected KimEntityDefaultInfo getEntityDefaultInfoFromCacheByPrincipalName(String principalName)

getEntityInfoFromCache

protected KimEntityInfo getEntityInfoFromCache(String entityId)

getEntityInfoFromCacheByPrincipalId

protected KimEntityInfo getEntityInfoFromCacheByPrincipalId(String principalId)

getEntityInfoFromCacheByPrincipalName

protected KimEntityInfo getEntityInfoFromCacheByPrincipalName(String principalName)

getEntityFromCache

protected KimEntity getEntityFromCache(String entityId)

getEntityFromCacheByPrincipalId

protected KimEntity getEntityFromCacheByPrincipalId(String principalId)

getEntityFromCacheByPrincipalName

protected KimEntity getEntityFromCacheByPrincipalName(String principalName)

getPrincipalByIdCache

protected Principal getPrincipalByIdCache(String principalId)

getPrincipalByNameCache

protected Principal getPrincipalByNameCache(String principalName)

getGroupByIdCache

protected Group getGroupByIdCache(String groupId)

getGroupByNameCache

protected Group getGroupByNameCache(String groupName)

getGroupIdsForPrincipalCache

protected List<String> getGroupIdsForPrincipalCache(String principalId)

getGroupsForPrincipalCache

protected List<? extends Group> getGroupsForPrincipalCache(String principalId)

getIsMemberOfGroupCache

protected Boolean getIsMemberOfGroupCache(String principalId,
                                          String groupId)

getIsGroupMemberOfGroupCache

protected Boolean getIsGroupMemberOfGroupCache(String potentialMemberId,
                                               String potentialParentId)

getGroupMemberPrincipalIdsCache

protected List<String> getGroupMemberPrincipalIdsCache(String groupId)

getHasPermissionCache

protected Boolean getHasPermissionCache(String key)

getHasPermissionByTemplateCache

protected Boolean getHasPermissionByTemplateCache(String key)

getIsAuthorizedByTemplateNameFromCache

protected Boolean getIsAuthorizedByTemplateNameFromCache(String key)

getIsAuthorizedFromCache

protected Boolean getIsAuthorizedFromCache(String key)

addEntityToCache

protected void addEntityToCache(KimEntity entity)

addEntityDefaultInfoToCache

protected void addEntityDefaultInfoToCache(KimEntityDefaultInfo entity)

addEntityInfoToCache

protected void addEntityInfoToCache(KimEntityInfo entity)

addPrincipalToCache

protected void addPrincipalToCache(Principal principal)

addGroupToCache

protected void addGroupToCache(Group group)

addGroupIdsForPrincipalToCache

protected void addGroupIdsForPrincipalToCache(String principalId,
                                              List<String> ids)

addGroupsForPrincipalToCache

protected void addGroupsForPrincipalToCache(String principalId,
                                            List<? extends Group> groups)

addIsMemberOfGroupToCache

protected void addIsMemberOfGroupToCache(String principalId,
                                         String groupId,
                                         boolean member)

addIsGroupMemberOfGroupToCache

protected void addIsGroupMemberOfGroupToCache(String potentialMemberId,
                                              String potentialParentId,
                                              boolean member)

addGroupMemberPrincipalIdsToCache

protected void addGroupMemberPrincipalIdsToCache(String groupId,
                                                 List<String> ids)

addHasPermissionToCache

protected void addHasPermissionToCache(String key,
                                       boolean hasPerm)

addHasPermissionByTemplateToCache

protected void addHasPermissionByTemplateToCache(String key,
                                                 boolean hasPerm)

addIsAuthorizedByTemplateNameToCache

protected void addIsAuthorizedByTemplateNameToCache(String key,
                                                    boolean authorized)

addIsAuthorizedToCache

protected void addIsAuthorizedToCache(String key,
                                      boolean authorized)

hasPermission

public boolean hasPermission(String principalId,
                             String namespaceCode,
                             String permissionName,
                             AttributeSet permissionDetails)
Specified by:
hasPermission in interface IdentityManagementService

isAuthorized

public boolean isAuthorized(String principalId,
                            String namespaceCode,
                            String permissionName,
                            AttributeSet permissionDetails,
                            AttributeSet qualification)
Specified by:
isAuthorized in interface IdentityManagementService

hasPermissionByTemplateName

public boolean hasPermissionByTemplateName(String principalId,
                                           String namespaceCode,
                                           String permissionTemplateName,
                                           AttributeSet permissionDetails)
Specified by:
hasPermissionByTemplateName in interface IdentityManagementService

isAuthorizedByTemplateName

public boolean isAuthorizedByTemplateName(String principalId,
                                          String namespaceCode,
                                          String permissionTemplateName,
                                          AttributeSet permissionDetails,
                                          AttributeSet qualification)
Specified by:
isAuthorizedByTemplateName in interface IdentityManagementService

addAttributeSetToKey

private void addAttributeSetToKey(AttributeSet attributes,
                                  StringBuffer key)

getAuthorizedPermissions

public List<? extends KimPermissionInfo> getAuthorizedPermissions(String principalId,
                                                                  String namespaceCode,
                                                                  String permissionName,
                                                                  AttributeSet permissionDetails,
                                                                  AttributeSet qualification)
Description copied from interface: IdentityManagementService
Returns the matching permission objects for a principal.

Specified by:
getAuthorizedPermissions in interface IdentityManagementService
See Also:
IdentityManagementService.getAuthorizedPermissions(java.lang.String, String, java.lang.String, org.kuali.rice.core.util.AttributeSet, org.kuali.rice.core.util.AttributeSet)

getAuthorizedPermissionsByTemplateName

public List<? extends KimPermissionInfo> getAuthorizedPermissionsByTemplateName(String principalId,
                                                                                String namespaceCode,
                                                                                String permissionTemplateName,
                                                                                AttributeSet permissionDetails,
                                                                                AttributeSet qualification)
Specified by:
getAuthorizedPermissionsByTemplateName in interface IdentityManagementService

isPermissionDefinedForTemplateName

public boolean isPermissionDefinedForTemplateName(String namespaceCode,
                                                  String permissionTemplateName,
                                                  AttributeSet permissionDetails)
Description copied from interface: IdentityManagementService
Returns true if there are any assigned permissions with the given template.

Specified by:
isPermissionDefinedForTemplateName in interface IdentityManagementService

getPermissionAssignees

public List<PermissionAssigneeInfo> getPermissionAssignees(String namespaceCode,
                                                           String permissionName,
                                                           AttributeSet permissionDetails,
                                                           AttributeSet qualification)
Specified by:
getPermissionAssignees in interface IdentityManagementService

getPermissionAssigneesForTemplateName

public List<PermissionAssigneeInfo> getPermissionAssigneesForTemplateName(String namespaceCode,
                                                                          String permissionTemplateName,
                                                                          AttributeSet permissionDetails,
                                                                          AttributeSet qualification)
Specified by:
getPermissionAssigneesForTemplateName in interface IdentityManagementService

isMemberOfGroup

public boolean isMemberOfGroup(String principalId,
                               String groupId)
Specified by:
isMemberOfGroup in interface IdentityManagementService

isMemberOfGroup

public boolean isMemberOfGroup(String principalId,
                               String namespaceCode,
                               String groupName)
Specified by:
isMemberOfGroup in interface IdentityManagementService

isGroupMemberOfGroup

public boolean isGroupMemberOfGroup(String potentialMemberId,
                                    String potentialParentId)
Specified by:
isGroupMemberOfGroup in interface IdentityManagementService

getGroupMemberPrincipalIds

public List<String> getGroupMemberPrincipalIds(String groupId)
Specified by:
getGroupMemberPrincipalIds in interface IdentityManagementService

getDirectGroupMemberPrincipalIds

public List<String> getDirectGroupMemberPrincipalIds(String groupId)
Specified by:
getDirectGroupMemberPrincipalIds in interface IdentityManagementService

getGroupIdsForPrincipal

public List<String> getGroupIdsForPrincipal(String principalId)
Specified by:
getGroupIdsForPrincipal in interface IdentityManagementService

getGroupIdsForPrincipal

public List<String> getGroupIdsForPrincipal(String principalId,
                                            String namespaceCode)
Specified by:
getGroupIdsForPrincipal in interface IdentityManagementService

getGroupsForPrincipal

public List<? extends Group> getGroupsForPrincipal(String principalId)
Specified by:
getGroupsForPrincipal in interface IdentityManagementService

getGroupsForPrincipal

public List<? extends Group> getGroupsForPrincipal(String principalId,
                                                   String namespaceCode)
Specified by:
getGroupsForPrincipal in interface IdentityManagementService

getMemberGroupIds

public List<String> getMemberGroupIds(String groupId)
Specified by:
getMemberGroupIds in interface IdentityManagementService

getDirectMemberGroupIds

public List<String> getDirectMemberGroupIds(String groupId)
Specified by:
getDirectMemberGroupIds in interface IdentityManagementService

getGroup

public Group getGroup(String groupId)
Specified by:
getGroup in interface IdentityManagementService

getGroupByName

public Group getGroupByName(String namespaceCode,
                            String groupName)
Specified by:
getGroupByName in interface IdentityManagementService

getParentGroupIds

public List<String> getParentGroupIds(String groupId)
Specified by:
getParentGroupIds in interface IdentityManagementService

getDirectParentGroupIds

public List<String> getDirectParentGroupIds(String groupId)
Specified by:
getDirectParentGroupIds in interface IdentityManagementService

clearGroupCachesForPrincipalAndGroup

protected void clearGroupCachesForPrincipalAndGroup(String principalId,
                                                    String groupId)

addGroupToGroup

public boolean addGroupToGroup(String childId,
                               String parentId)
Specified by:
addGroupToGroup in interface IdentityManagementService

addPrincipalToGroup

public boolean addPrincipalToGroup(String principalId,
                                   String groupId)
Specified by:
addPrincipalToGroup in interface IdentityManagementService

removeGroupFromGroup

public boolean removeGroupFromGroup(String childId,
                                    String parentId)
Specified by:
removeGroupFromGroup in interface IdentityManagementService

removePrincipalFromGroup

public boolean removePrincipalFromGroup(String principalId,
                                        String groupId)
Specified by:
removePrincipalFromGroup in interface IdentityManagementService

createGroup

public Group createGroup(Group group)
This delegate method ...

Specified by:
createGroup in interface IdentityManagementService
Parameters:
groupInfo -
Returns:
See Also:
org.kuali.rice.kim.service.GroupUpdateService#createGroup(org.kuali.rice.kim.bo.group.dto.GroupInfo)

removeAllMembers

public void removeAllMembers(String groupId)
This delegate method ...

Specified by:
removeAllMembers in interface IdentityManagementService
Parameters:
groupId -
See Also:
GroupUpdateService.removeAllMembers(java.lang.String)

updateGroup

public Group updateGroup(String groupId,
                         Group group)
This delegate method ...

Specified by:
updateGroup in interface IdentityManagementService
Parameters:
groupId -
group -
Returns:
See Also:
GroupUpdateService.updateGroup(java.lang.String, org.kuali.rice.kim.api.group.Group)

getPrincipal

public Principal getPrincipal(String principalId)
Specified by:
getPrincipal in interface IdentityManagementService

getPrincipalByPrincipalName

public Principal getPrincipalByPrincipalName(String principalName)
Specified by:
getPrincipalByPrincipalName in interface IdentityManagementService

getPrincipalByPrincipalNameAndPassword

public Principal getPrincipalByPrincipalNameAndPassword(String principalName,
                                                        String password)
Specified by:
getPrincipalByPrincipalNameAndPassword in interface IdentityManagementService
See Also:
IdentityManagementService.getPrincipalByPrincipalNameAndPassword(java.lang.String, java.lang.String)

getEntityDefaultInfo

public KimEntityDefaultInfo getEntityDefaultInfo(String entityId)
This overridden method ...

Specified by:
getEntityDefaultInfo in interface IdentityManagementService
See Also:
IdentityManagementService.getEntityDefaultInfo(java.lang.String)

getEntityDefaultInfoByPrincipalId

public KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(String principalId)
This overridden method ...

Specified by:
getEntityDefaultInfoByPrincipalId in interface IdentityManagementService
See Also:
IdentityManagementService.getEntityDefaultInfoByPrincipalId(java.lang.String)

getEntityDefaultInfoByPrincipalName

public KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(String principalName)
This overridden method ...

Specified by:
getEntityDefaultInfoByPrincipalName in interface IdentityManagementService
See Also:
IdentityManagementService.getEntityDefaultInfoByPrincipalName(java.lang.String)

lookupEntityDefaultInfo

public List<? extends KimEntityDefaultInfo> lookupEntityDefaultInfo(Map<String,String> searchCriteria,
                                                                    boolean unbounded)
This overridden method ...

Specified by:
lookupEntityDefaultInfo in interface IdentityManagementService
See Also:
IdentityManagementService.lookupEntityDefaultInfo(Map, boolean)

getEntityInfo

public KimEntityInfo getEntityInfo(String entityId)
Specified by:
getEntityInfo in interface IdentityManagementService
See Also:
IdentityManagementService.getEntityInfo(java.lang.String)

getEntityInfoByPrincipalId

public KimEntityInfo getEntityInfoByPrincipalId(String principalId)
Specified by:
getEntityInfoByPrincipalId in interface IdentityManagementService
See Also:
IdentityManagementService.getEntityInfoByPrincipalId(java.lang.String)

getEntityInfoByPrincipalName

public KimEntityInfo getEntityInfoByPrincipalName(String principalName)
This overridden method ...

Specified by:
getEntityInfoByPrincipalName in interface IdentityManagementService
See Also:
IdentityManagementService.getEntityInfoByPrincipalName(java.lang.String)

lookupEntityInfo

public List<KimEntityInfo> lookupEntityInfo(Map<String,String> searchCriteria,
                                            boolean unbounded)
Specified by:
lookupEntityInfo in interface IdentityManagementService
See Also:
IdentityManagementService.lookupEntityInfo(java.util.Map, boolean)

getMatchingEntityCount

public int getMatchingEntityCount(Map<String,String> searchCriteria)
Specified by:
getMatchingEntityCount in interface IdentityManagementService
See Also:
IdentityManagementService.getMatchingEntityCount(java.util.Map)

getAddressType

public Type getAddressType(String code)
Specified by:
getAddressType in interface IdentityManagementService

getEmailType

public Type getEmailType(String code)
Specified by:
getEmailType in interface IdentityManagementService

getAffiliationType

public AffiliationTypeInfo getAffiliationType(String code)
Specified by:
getAffiliationType in interface IdentityManagementService

getCitizenshipStatus

public Type getCitizenshipStatus(String code)
Specified by:
getCitizenshipStatus in interface IdentityManagementService

getEmploymentStatus

public EmploymentStatusInfo getEmploymentStatus(String code)
Specified by:
getEmploymentStatus in interface IdentityManagementService

getEmploymentType

public EmploymentTypeInfo getEmploymentType(String code)
Specified by:
getEmploymentType in interface IdentityManagementService

getEntityNameType

public EntityNameTypeInfo getEntityNameType(String code)
Specified by:
getEntityNameType in interface IdentityManagementService

getEntityType

public Type getEntityType(String code)
Specified by:
getEntityType in interface IdentityManagementService

getExternalIdentifierType

public ExternalIdentifierTypeInfo getExternalIdentifierType(String code)
Specified by:
getExternalIdentifierType in interface IdentityManagementService

getPhoneType

public Type getPhoneType(String code)
Specified by:
getPhoneType in interface IdentityManagementService

getIdentityService

public IdentityService getIdentityService()

getGroupService

public GroupService getGroupService()

getPermissionService

public PermissionService getPermissionService()

getResponsibilityService

public ResponsibilityService getResponsibilityService()

getResponsibility

public Responsibility getResponsibility(String responsibilityId)
Description copied from interface: IdentityManagementService
Get the responsibility object with the given ID.

Specified by:
getResponsibility in interface IdentityManagementService
See Also:
IdentityManagementService.getResponsibility(java.lang.String)

hasResponsibility

public boolean hasResponsibility(String principalId,
                                 String namespaceCode,
                                 String responsibilityName,
                                 AttributeSet qualification,
                                 AttributeSet responsibilityDetails)
Description copied from interface: IdentityManagementService
Check whether the principal has the given responsibility within the passed qualifier.

Specified by:
hasResponsibility in interface IdentityManagementService
See Also:
IdentityManagementService.hasResponsibility(java.lang.String, String, java.lang.String, AttributeSet, AttributeSet)

getResponsibilitiesByName

public List<Responsibility> getResponsibilitiesByName(String namespaceCode,
                                                      String responsibilityName)
Description copied from interface: IdentityManagementService
Return the responsibility object for the given unique combination of namespace, component and responsibility name.

Specified by:
getResponsibilitiesByName in interface IdentityManagementService

getResponsibilityActions

public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode,
                                                           String responsibilityName,
                                                           AttributeSet qualification,
                                                           AttributeSet responsibilityDetails)
Specified by:
getResponsibilityActions in interface IdentityManagementService

getResponsibilityActionsByTemplateName

public List<ResponsibilityAction> getResponsibilityActionsByTemplateName(String namespaceCode,
                                                                         String responsibilityTemplateName,
                                                                         AttributeSet qualification,
                                                                         AttributeSet responsibilityDetails)
This overridden method ...

Specified by:
getResponsibilityActionsByTemplateName in interface IdentityManagementService
See Also:
IdentityManagementService.getResponsibilityActionsByTemplateName(java.lang.String, java.lang.String, org.kuali.rice.core.util.AttributeSet, org.kuali.rice.core.util.AttributeSet)

hasResponsibilityByTemplateName

public boolean hasResponsibilityByTemplateName(String principalId,
                                               String namespaceCode,
                                               String responsibilityTemplateName,
                                               AttributeSet qualification,
                                               AttributeSet responsibilityDetails)
This overridden method ...

Specified by:
hasResponsibilityByTemplateName in interface IdentityManagementService
See Also:
IdentityManagementService.hasResponsibilityByTemplateName(java.lang.String, java.lang.String, java.lang.String, org.kuali.rice.core.util.AttributeSet, org.kuali.rice.core.util.AttributeSet)

setEntityPrincipalCacheMaxSize

public void setEntityPrincipalCacheMaxSize(int entityPrincipalCacheMaxSize)

setEntityPrincipalCacheMaxAgeSeconds

public void setEntityPrincipalCacheMaxAgeSeconds(int entityPrincipalCacheMaxAge)

setGroupCacheMaxSize

public void setGroupCacheMaxSize(int groupCacheMaxSize)

setGroupCacheMaxAgeSeconds

public void setGroupCacheMaxAgeSeconds(int groupCacheMaxAge)

setPermissionCacheMaxSize

public void setPermissionCacheMaxSize(int permissionCacheMaxSize)

setPermissionCacheMaxAgeSeconds

public void setPermissionCacheMaxAgeSeconds(int permissionCacheMaxAge)

setResponsibilityCacheMaxSize

public void setResponsibilityCacheMaxSize(int responsibilityCacheMaxSize)

setResponsibilityCacheMaxAgeSeconds

public void setResponsibilityCacheMaxAgeSeconds(int responsibilityCacheMaxAge)

logAuthorizationCheck

protected void logAuthorizationCheck(String checkType,
                                     String principalId,
                                     String namespaceCode,
                                     String permissionName,
                                     AttributeSet permissionDetails,
                                     AttributeSet qualification)

logHasPermissionCheck

protected void logHasPermissionCheck(String checkType,
                                     String principalId,
                                     String namespaceCode,
                                     String permissionName,
                                     AttributeSet permissionDetails)

getGroupUpdateService

public GroupUpdateService getGroupUpdateService()

getIdentityUpdateService

public IdentityUpdateService getIdentityUpdateService()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.