org.kuali.rice.kim.service.impl
Class IdentityManagementServiceImpl
java.lang.Object
   org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl
org.kuali.rice.kim.service.impl.IdentityManagementServiceImpl
- All Implemented Interfaces: 
- IdentityManagementService
- public class IdentityManagementServiceImpl 
- extends Object- implements IdentityManagementService
 
| Method Summary | 
|  boolean | addGroupToGroup(String childId,
                               String parentId)
 | 
|  boolean | addPrincipalToGroup(String principalId,
                                       String groupId)
 | 
|  Group | createGroup(Group group)
 | 
|  EntityQueryResults | findEntities(QueryByCriteria queryByCriteria)
 | 
|  EntityDefaultQueryResults | findEntityDefaults(QueryByCriteria queryByCriteria)
 | 
|  void | flushAllCaches()
 | 
|  void | flushEntityPrincipalCaches()
 | 
|  void | flushGroupCaches()
 | 
|  void | flushPermissionCaches()
 | 
|  void | flushResponsibilityCaches()
 | 
|  CodedAttribute | getAddressType(String code)
 | 
|  EntityAffiliationType | getAffiliationType(String code)
 | 
|  List<Permission> | getAuthorizedPermissions(String principalId,
                                                 String namespaceCode,
                                                 String permissionName,
                                                 Map<String,String> permissionDetails,
                                                 Map<String,String> qualification)Returns the matching permission objects for a principal.
 | 
|  List<Permission> | getAuthorizedPermissionsByTemplateName(String principalId,
                                                                             String namespaceCode,
                                                                             String permissionTemplateName,
                                                                             Map<String,String> permissionDetails,
                                                                             Map<String,String> qualification)
 | 
|  CodedAttribute | getCitizenshipStatus(String code)
 | 
|  List<String> | getDirectGroupMemberPrincipalIds(String groupId)
 | 
|  List<String> | getDirectMemberGroupIds(String groupId)
 | 
|  List<String> | getDirectParentGroupIds(String groupId)
 | 
|  CodedAttribute | getEmailType(String code)
 | 
|  CodedAttribute | getEmploymentStatus(String code)
 | 
|  CodedAttribute | getEmploymentType(String code)
 | 
|  Entity | getEntity(String entityId)
 | 
|  Entity | getEntityByPrincipalId(String principalId)
 | 
|  Entity | getEntityByPrincipalName(String principalName)
 | 
|  EntityDefault | getEntityDefaultInfo(String entityId)
 | 
|  EntityDefault | getEntityDefaultInfoByPrincipalId(String principalId)
 | 
|  EntityDefault | getEntityDefaultInfoByPrincipalName(String principalName)
 | 
|  CodedAttribute | getEntityNameType(String code)
 | 
|  CodedAttribute | getEntityType(String code)
 | 
|  EntityExternalIdentifierType | getExternalIdentifierType(String code)
 | 
|  Group | getGroup(String groupId)
 | 
|  Group | getGroupByName(String namespaceCode,
                             String groupName)
 | 
|  List<String> | getGroupIdsForPrincipal(String principalId)
 | 
|  List<String> | getGroupIdsForPrincipal(String principalId,
                                               String namespaceCode)
 | 
|  List<String> | getGroupMemberPrincipalIds(String groupId)
 | 
|  GroupService | getGroupService()
 | 
|  List<Group> | getGroupsForPrincipal(String principalId)
 | 
|  List<Group> | getGroupsForPrincipal(String principalId,
                                           String namespaceCode)
 | 
|  IdentityService | getIdentityService()
 | 
|  List<String> | getMemberGroupIds(String groupId)
 | 
|  List<String> | getParentGroupIds(String groupId)
 | 
|  List<Assignee> | getPermissionAssignees(String namespaceCode,
                                             String permissionName,
                                             Map<String,String> permissionDetails,
                                             Map<String,String> qualification)
 | 
|  List<Assignee> | getPermissionAssigneesForTemplateName(String namespaceCode,
                                                                           String permissionTemplateName,
                                                                           Map<String,String> permissionDetails,
                                                                           Map<String,String> qualification)
 | 
|  PermissionService | getPermissionService()
 | 
|  CodedAttribute | getPhoneType(String code)
 | 
|  Principal | getPrincipal(String principalId)
 | 
|  Principal | getPrincipalByPrincipalName(String principalName)
 | 
|  Principal | getPrincipalByPrincipalNameAndPassword(String principalName,
                                                                             String password)
 | 
|  Responsibility | getResponsibility(String responsibilityId)Get the responsibility object with the given ID.
 | 
|  List<ResponsibilityAction> | getResponsibilityActions(String namespaceCode,
                                                 String responsibilityName,
                                                 Map<String,String> qualification,
                                                 Map<String,String> responsibilityDetails)
 | 
|  List<ResponsibilityAction> | getResponsibilityActionsByTemplateName(String namespaceCode,
                                                                             String responsibilityTemplateName,
                                                                             Map<String,String> qualification,
                                                                             Map<String,String> responsibilityDetails)
 | 
|  Responsibility | getResponsibilityByName(String namespaceCode,
                                               String responsibilityName)Return the responsibility object for the given unique combination of namespace,
 component and responsibility name.
 | 
|  ResponsibilityService | getResponsibilityService()
 | 
|  boolean | hasPermission(String principalId,
                           String namespaceCode,
                           String permissionName,
                           Map<String,String> permissionDetails)
 | 
|  boolean | hasPermissionByTemplateName(String principalId,
                                                       String namespaceCode,
                                                       String permissionTemplateName,
                                                       Map<String,String> permissionDetails)
 | 
|  boolean | hasResponsibility(String principalId,
                                   String namespaceCode,
                                   String responsibilityName,
                                   Map<String,String> qualification,
                                   Map<String,String> responsibilityDetails)Check whether the principal has the given responsibility within the passed qualifier.
 | 
|  boolean | hasResponsibilityByTemplateName(String principalId,
                                                               String namespaceCode,
                                                               String responsibilityTemplateName,
                                                               Map<String,String> qualification,
                                                               Map<String,String> responsibilityDetails)Check whether the principal has the given responsibility within the passed qualifier.
 | 
|  boolean | isAuthorized(String principalId,
                         String namespaceCode,
                         String permissionName,
                         Map<String,String> permissionDetails,
                         Map<String,String> qualification)
 | 
|  boolean | isAuthorizedByTemplateName(String principalId,
                                                     String namespaceCode,
                                                     String permissionTemplateName,
                                                     Map<String,String> permissionDetails,
                                                     Map<String,String> 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,
                                                                     Map<String,String> permissionDetails)Returns true if there are any assigned permissions with the given template.
 | 
| protected  void | logAuthorizationCheck(String checkType,
                                           String principalId,
                                           String namespaceCode,
                                           String permissionName,
                                           Map<String,String> permissionDetails,
                                           Map<String,String> qualification)
 | 
| protected  void | logHasPermissionCheck(String checkType,
                                           String principalId,
                                           String namespaceCode,
                                           String permissionName,
                                           Map<String,String> permissionDetails)
 | 
|  void | removeAllMembers(String groupId)
 | 
|  boolean | removeGroupFromGroup(String childId,
                                         String parentId)
 | 
|  boolean | removePrincipalFromGroup(String principalId,
                                                 String groupId)
 | 
|  Group | updateGroup(String groupId,
                       Group group)
 | 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
IdentityManagementServiceImpl
public IdentityManagementServiceImpl()
flushAllCaches
public void flushAllCaches()
- 
- Specified by:
- flushAllCachesin interface- IdentityManagementService
 
- 
 
flushEntityPrincipalCaches
public void flushEntityPrincipalCaches()
- 
- Specified by:
- flushEntityPrincipalCachesin interface- IdentityManagementService
 
- 
 
flushGroupCaches
public void flushGroupCaches()
- 
- Specified by:
- flushGroupCachesin interface- IdentityManagementService
 
- 
 
flushPermissionCaches
public void flushPermissionCaches()
- 
- Specified by:
- flushPermissionCachesin interface- IdentityManagementService
 
- 
 
flushResponsibilityCaches
public void flushResponsibilityCaches()
- 
- Specified by:
- flushResponsibilityCachesin interface- IdentityManagementService
 
- 
 
hasPermission
public boolean hasPermission(String principalId,
                             String namespaceCode,
                             String permissionName,
                             Map<String,String> permissionDetails)
- 
- Specified by:
- hasPermissionin interface- IdentityManagementService
 
- 
 
isAuthorized
public boolean isAuthorized(String principalId,
                            String namespaceCode,
                            String permissionName,
                            Map<String,String> permissionDetails,
                            Map<String,String> qualification)
- 
- Specified by:
- isAuthorizedin interface- IdentityManagementService
 
- 
 
hasPermissionByTemplateName
public boolean hasPermissionByTemplateName(String principalId,
                                           String namespaceCode,
                                           String permissionTemplateName,
                                           Map<String,String> permissionDetails)
- 
- Specified by:
- hasPermissionByTemplateNamein interface- IdentityManagementService
 
- 
 
isAuthorizedByTemplateName
public boolean isAuthorizedByTemplateName(String principalId,
                                          String namespaceCode,
                                          String permissionTemplateName,
                                          Map<String,String> permissionDetails,
                                          Map<String,String> qualification)
- 
- Specified by:
- isAuthorizedByTemplateNamein interface- IdentityManagementService
 
- 
 
getAuthorizedPermissions
public List<Permission> getAuthorizedPermissions(String principalId,
                                                 String namespaceCode,
                                                 String permissionName,
                                                 Map<String,String> permissionDetails,
                                                 Map<String,String> qualification)
- Description copied from interface: IdentityManagementService
- Returns the matching permission objects for a principal.
 
- 
- Specified by:
- getAuthorizedPermissionsin interface- IdentityManagementService
 
- 
 
getAuthorizedPermissionsByTemplateName
public List<Permission> getAuthorizedPermissionsByTemplateName(String principalId,
                                                               String namespaceCode,
                                                               String permissionTemplateName,
                                                               Map<String,String> permissionDetails,
                                                               Map<String,String> qualification)
- 
- Specified by:
- getAuthorizedPermissionsByTemplateNamein interface- IdentityManagementService
 
- 
 
isPermissionDefinedForTemplateName
public boolean isPermissionDefinedForTemplateName(String namespaceCode,
                                                  String permissionTemplateName,
                                                  Map<String,String> permissionDetails)
- Description copied from interface: IdentityManagementService
- Returns true if there are any assigned permissions with the given template.
 
- 
- Specified by:
- isPermissionDefinedForTemplateNamein interface- IdentityManagementService
 
- 
 
getPermissionAssignees
public List<Assignee> getPermissionAssignees(String namespaceCode,
                                             String permissionName,
                                             Map<String,String> permissionDetails,
                                             Map<String,String> qualification)
- 
- Specified by:
- getPermissionAssigneesin interface- IdentityManagementService
 
- 
 
getPermissionAssigneesForTemplateName
public List<Assignee> getPermissionAssigneesForTemplateName(String namespaceCode,
                                                            String permissionTemplateName,
                                                            Map<String,String> permissionDetails,
                                                            Map<String,String> qualification)
- 
- Specified by:
- getPermissionAssigneesForTemplateNamein interface- IdentityManagementService
 
- 
 
isMemberOfGroup
public boolean isMemberOfGroup(String principalId,
                               String groupId)
- 
- Specified by:
- isMemberOfGroupin interface- IdentityManagementService
 
- 
 
isMemberOfGroup
public boolean isMemberOfGroup(String principalId,
                               String namespaceCode,
                               String groupName)
- 
- Specified by:
- isMemberOfGroupin interface- IdentityManagementService
 
- 
 
isGroupMemberOfGroup
public boolean isGroupMemberOfGroup(String potentialMemberId,
                                    String potentialParentId)
- 
- Specified by:
- isGroupMemberOfGroupin interface- IdentityManagementService
 
- 
 
getGroupMemberPrincipalIds
public List<String> getGroupMemberPrincipalIds(String groupId)
- 
- Specified by:
- getGroupMemberPrincipalIdsin interface- IdentityManagementService
 
- 
 
getDirectGroupMemberPrincipalIds
public List<String> getDirectGroupMemberPrincipalIds(String groupId)
- 
- Specified by:
- getDirectGroupMemberPrincipalIdsin interface- IdentityManagementService
 
- 
 
getGroupIdsForPrincipal
public List<String> getGroupIdsForPrincipal(String principalId)
- 
- Specified by:
- getGroupIdsForPrincipalin interface- IdentityManagementService
 
- 
 
getGroupIdsForPrincipal
public List<String> getGroupIdsForPrincipal(String principalId,
                                            String namespaceCode)
- 
- Specified by:
- getGroupIdsForPrincipalin interface- IdentityManagementService
 
- 
 
getGroupsForPrincipal
public List<Group> getGroupsForPrincipal(String principalId)
- 
- Specified by:
- getGroupsForPrincipalin interface- IdentityManagementService
 
- 
 
getGroupsForPrincipal
public List<Group> getGroupsForPrincipal(String principalId,
                                         String namespaceCode)
- 
- Specified by:
- getGroupsForPrincipalin interface- IdentityManagementService
 
- 
 
getMemberGroupIds
public List<String> getMemberGroupIds(String groupId)
- 
- Specified by:
- getMemberGroupIdsin interface- IdentityManagementService
 
- 
 
getDirectMemberGroupIds
public List<String> getDirectMemberGroupIds(String groupId)
- 
- Specified by:
- getDirectMemberGroupIdsin interface- IdentityManagementService
 
- 
 
getGroup
public Group getGroup(String groupId)
- 
- Specified by:
- getGroupin interface- IdentityManagementService
 
- 
 
getGroupByName
public Group getGroupByName(String namespaceCode,
                            String groupName)
- 
- Specified by:
- getGroupByNamein interface- IdentityManagementService
 
- 
 
getParentGroupIds
public List<String> getParentGroupIds(String groupId)
- 
- Specified by:
- getParentGroupIdsin interface- IdentityManagementService
 
- 
 
getDirectParentGroupIds
public List<String> getDirectParentGroupIds(String groupId)
- 
- Specified by:
- getDirectParentGroupIdsin interface- IdentityManagementService
 
- 
 
addGroupToGroup
public boolean addGroupToGroup(String childId,
                               String parentId)
- 
- Specified by:
- addGroupToGroupin interface- IdentityManagementService
 
- 
 
addPrincipalToGroup
public boolean addPrincipalToGroup(String principalId,
                                   String groupId)
- 
- Specified by:
- addPrincipalToGroupin interface- IdentityManagementService
 
- 
 
removeGroupFromGroup
public boolean removeGroupFromGroup(String childId,
                                    String parentId)
- 
- Specified by:
- removeGroupFromGroupin interface- IdentityManagementService
 
- 
 
removePrincipalFromGroup
public boolean removePrincipalFromGroup(String principalId,
                                        String groupId)
- 
- Specified by:
- removePrincipalFromGroupin interface- IdentityManagementService
 
- 
 
createGroup
public Group createGroup(Group group)
- 
- Specified by:
- createGroupin interface- IdentityManagementService
 
- 
 
removeAllMembers
public void removeAllMembers(String groupId)
- 
- Specified by:
- removeAllMembersin interface- IdentityManagementService
 
- 
 
updateGroup
public Group updateGroup(String groupId,
                         Group group)
- 
- Specified by:
- updateGroupin interface- IdentityManagementService
 
- 
 
getPrincipal
public Principal getPrincipal(String principalId)
- 
- Specified by:
- getPrincipalin interface- IdentityManagementService
 
- 
 
getPrincipalByPrincipalName
public Principal getPrincipalByPrincipalName(String principalName)
- 
- Specified by:
- getPrincipalByPrincipalNamein interface- IdentityManagementService
 
- 
 
getPrincipalByPrincipalNameAndPassword
public Principal getPrincipalByPrincipalNameAndPassword(String principalName,
                                                        String password)
- 
- Specified by:
- getPrincipalByPrincipalNameAndPasswordin interface- IdentityManagementService
 
- 
 
getEntityDefaultInfo
public EntityDefault getEntityDefaultInfo(String entityId)
- 
- Specified by:
- getEntityDefaultInfoin interface- IdentityManagementService
 
- 
 
getEntityDefaultInfoByPrincipalId
public EntityDefault getEntityDefaultInfoByPrincipalId(String principalId)
- 
- Specified by:
- getEntityDefaultInfoByPrincipalIdin interface- IdentityManagementService
 
- 
 
getEntityDefaultInfoByPrincipalName
public EntityDefault getEntityDefaultInfoByPrincipalName(String principalName)
- 
- Specified by:
- getEntityDefaultInfoByPrincipalNamein interface- IdentityManagementService
 
- 
 
findEntityDefaults
public EntityDefaultQueryResults findEntityDefaults(QueryByCriteria queryByCriteria)
- 
- Specified by:
- findEntityDefaultsin interface- IdentityManagementService
 
- 
 
getEntity
public Entity getEntity(String entityId)
- 
- Specified by:
- getEntityin interface- IdentityManagementService
 
- 
 
getEntityByPrincipalId
public Entity getEntityByPrincipalId(String principalId)
- 
- Specified by:
- getEntityByPrincipalIdin interface- IdentityManagementService
 
- 
 
getEntityByPrincipalName
public Entity getEntityByPrincipalName(String principalName)
- 
- Specified by:
- getEntityByPrincipalNamein interface- IdentityManagementService
 
- 
 
findEntities
public EntityQueryResults findEntities(QueryByCriteria queryByCriteria)
- 
- Specified by:
- findEntitiesin interface- IdentityManagementService
 
- 
 
getAddressType
public CodedAttribute getAddressType(String code)
- 
- Specified by:
- getAddressTypein interface- IdentityManagementService
 
- 
 
getEmailType
public CodedAttribute getEmailType(String code)
- 
- Specified by:
- getEmailTypein interface- IdentityManagementService
 
- 
 
getAffiliationType
public EntityAffiliationType getAffiliationType(String code)
- 
- Specified by:
- getAffiliationTypein interface- IdentityManagementService
 
- 
 
getCitizenshipStatus
public CodedAttribute getCitizenshipStatus(String code)
- 
- Specified by:
- getCitizenshipStatusin interface- IdentityManagementService
 
- 
 
getEmploymentStatus
public CodedAttribute getEmploymentStatus(String code)
- 
- Specified by:
- getEmploymentStatusin interface- IdentityManagementService
 
- 
 
getEmploymentType
public CodedAttribute getEmploymentType(String code)
- 
- Specified by:
- getEmploymentTypein interface- IdentityManagementService
 
- 
 
getEntityNameType
public CodedAttribute getEntityNameType(String code)
- 
- Specified by:
- getEntityNameTypein interface- IdentityManagementService
 
- 
 
getEntityType
public CodedAttribute getEntityType(String code)
- 
- Specified by:
- getEntityTypein interface- IdentityManagementService
 
- 
 
getExternalIdentifierType
public EntityExternalIdentifierType getExternalIdentifierType(String code)
- 
- Specified by:
- getExternalIdentifierTypein interface- IdentityManagementService
 
- 
 
getPhoneType
public CodedAttribute getPhoneType(String code)
- 
- Specified by:
- getPhoneTypein interface- IdentityManagementService
 
- 
 
getResponsibility
public Responsibility getResponsibility(String responsibilityId)
- Description copied from interface: IdentityManagementService
- Get the responsibility object with the given ID.
 
- 
- Specified by:
- getResponsibilityin interface- IdentityManagementService
 
- 
 
hasResponsibility
public boolean hasResponsibility(String principalId,
                                 String namespaceCode,
                                 String responsibilityName,
                                 Map<String,String> qualification,
                                 Map<String,String> responsibilityDetails)
- Description copied from interface: IdentityManagementService
- Check whether the principal has the given responsibility within the passed qualifier.
 
- 
- Specified by:
- hasResponsibilityin interface- IdentityManagementService
 
- 
 
getResponsibilityByName
public Responsibility getResponsibilityByName(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:
- getResponsibilityByNamein interface- IdentityManagementService
 
- 
 
getResponsibilityActions
public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode,
                                                           String responsibilityName,
                                                           Map<String,String> qualification,
                                                           Map<String,String> responsibilityDetails)
- 
- Specified by:
- getResponsibilityActionsin interface- IdentityManagementService
 
- 
 
getResponsibilityActionsByTemplateName
public List<ResponsibilityAction> getResponsibilityActionsByTemplateName(String namespaceCode,
                                                                         String responsibilityTemplateName,
                                                                         Map<String,String> qualification,
                                                                         Map<String,String> responsibilityDetails)
- 
- Specified by:
- getResponsibilityActionsByTemplateNamein interface- IdentityManagementService
 
- 
 
hasResponsibilityByTemplateName
public boolean hasResponsibilityByTemplateName(String principalId,
                                               String namespaceCode,
                                               String responsibilityTemplateName,
                                               Map<String,String> qualification,
                                               Map<String,String> responsibilityDetails)
- Description copied from interface: IdentityManagementService
- Check whether the principal has the given responsibility within the passed qualifier.
 
- 
- Specified by:
- hasResponsibilityByTemplateNamein interface- IdentityManagementService
 
- 
 
logAuthorizationCheck
protected void logAuthorizationCheck(String checkType,
                                     String principalId,
                                     String namespaceCode,
                                     String permissionName,
                                     Map<String,String> permissionDetails,
                                     Map<String,String> qualification)
- 
 
- 
 
logHasPermissionCheck
protected void logHasPermissionCheck(String checkType,
                                     String principalId,
                                     String namespaceCode,
                                     String permissionName,
                                     Map<String,String> permissionDetails)
- 
 
- 
 
getIdentityService
public IdentityService getIdentityService()
- 
 
- 
 
getGroupService
public GroupService getGroupService()
- 
 
- 
 
getPermissionService
public PermissionService getPermissionService()
- 
 
- 
 
getResponsibilityService
public ResponsibilityService getResponsibilityService()
- 
 
- 
 
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.