org.kuali.rice.kim.service.impl
Class IdentityManagementServiceImpl
java.lang.Object
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> |
getAuthorizedPermissionsByTemplate(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> |
getPermissionAssigneesForTemplate(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> |
getResponsibilityActionsByTemplate(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 |
hasPermissionByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
|
boolean |
hasResponsibility(String principalId,
String namespaceCode,
String responsibilityName,
Map<String,String> qualification)
Check whether the principal has the given responsibility within the passed qualifier. |
boolean |
hasResponsibilityByTemplate(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 |
isAuthorizedByTemplate(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 |
isPermissionDefinedForTemplate(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:
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
hasPermission
public boolean hasPermission(String principalId,
String namespaceCode,
String permissionName,
Map<String,String> permissionDetails)
- Specified by:
hasPermission
in interface IdentityManagementService
isAuthorized
public boolean isAuthorized(String principalId,
String namespaceCode,
String permissionName,
Map<String,String> permissionDetails,
Map<String,String> qualification)
- Specified by:
isAuthorized
in interface IdentityManagementService
hasPermissionByTemplate
public boolean hasPermissionByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails)
- Specified by:
hasPermissionByTemplate
in interface IdentityManagementService
isAuthorizedByTemplate
public boolean isAuthorizedByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails,
Map<String,String> qualification)
- Specified by:
isAuthorizedByTemplate
in 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:
getAuthorizedPermissions
in interface IdentityManagementService
getAuthorizedPermissionsByTemplate
public List<Permission> getAuthorizedPermissionsByTemplate(String principalId,
String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails,
Map<String,String> qualification)
- Specified by:
getAuthorizedPermissionsByTemplate
in interface IdentityManagementService
isPermissionDefinedForTemplate
public boolean isPermissionDefinedForTemplate(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:
isPermissionDefinedForTemplate
in interface IdentityManagementService
getPermissionAssignees
public List<Assignee> getPermissionAssignees(String namespaceCode,
String permissionName,
Map<String,String> permissionDetails,
Map<String,String> qualification)
- Specified by:
getPermissionAssignees
in interface IdentityManagementService
getPermissionAssigneesForTemplate
public List<Assignee> getPermissionAssigneesForTemplate(String namespaceCode,
String permissionTemplateName,
Map<String,String> permissionDetails,
Map<String,String> qualification)
- Specified by:
getPermissionAssigneesForTemplate
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<Group> getGroupsForPrincipal(String principalId)
- Specified by:
getGroupsForPrincipal
in interface IdentityManagementService
getGroupsForPrincipal
public List<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
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)
- Specified by:
createGroup
in interface IdentityManagementService
removeAllMembers
public void removeAllMembers(String groupId)
- Specified by:
removeAllMembers
in interface IdentityManagementService
updateGroup
public Group updateGroup(String groupId,
Group group)
- Specified by:
updateGroup
in interface IdentityManagementService
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
getEntityDefaultInfo
public EntityDefault getEntityDefaultInfo(String entityId)
- Specified by:
getEntityDefaultInfo
in interface IdentityManagementService
getEntityDefaultInfoByPrincipalId
public EntityDefault getEntityDefaultInfoByPrincipalId(String principalId)
- Specified by:
getEntityDefaultInfoByPrincipalId
in interface IdentityManagementService
getEntityDefaultInfoByPrincipalName
public EntityDefault getEntityDefaultInfoByPrincipalName(String principalName)
- Specified by:
getEntityDefaultInfoByPrincipalName
in interface IdentityManagementService
findEntityDefaults
public EntityDefaultQueryResults findEntityDefaults(QueryByCriteria queryByCriteria)
- Specified by:
findEntityDefaults
in interface IdentityManagementService
getEntity
public Entity getEntity(String entityId)
- Specified by:
getEntity
in interface IdentityManagementService
getEntityByPrincipalId
public Entity getEntityByPrincipalId(String principalId)
- Specified by:
getEntityByPrincipalId
in interface IdentityManagementService
getEntityByPrincipalName
public Entity getEntityByPrincipalName(String principalName)
- Specified by:
getEntityByPrincipalName
in interface IdentityManagementService
findEntities
public EntityQueryResults findEntities(QueryByCriteria queryByCriteria)
- Specified by:
findEntities
in interface IdentityManagementService
getAddressType
public CodedAttribute getAddressType(String code)
- Specified by:
getAddressType
in interface IdentityManagementService
getEmailType
public CodedAttribute getEmailType(String code)
- Specified by:
getEmailType
in interface IdentityManagementService
getAffiliationType
public EntityAffiliationType getAffiliationType(String code)
- Specified by:
getAffiliationType
in interface IdentityManagementService
getCitizenshipStatus
public CodedAttribute getCitizenshipStatus(String code)
- Specified by:
getCitizenshipStatus
in interface IdentityManagementService
getEmploymentStatus
public CodedAttribute getEmploymentStatus(String code)
- Specified by:
getEmploymentStatus
in interface IdentityManagementService
getEmploymentType
public CodedAttribute getEmploymentType(String code)
- Specified by:
getEmploymentType
in interface IdentityManagementService
getEntityNameType
public CodedAttribute getEntityNameType(String code)
- Specified by:
getEntityNameType
in interface IdentityManagementService
getEntityType
public CodedAttribute getEntityType(String code)
- Specified by:
getEntityType
in interface IdentityManagementService
getExternalIdentifierType
public EntityExternalIdentifierType getExternalIdentifierType(String code)
- Specified by:
getExternalIdentifierType
in interface IdentityManagementService
getPhoneType
public CodedAttribute getPhoneType(String code)
- Specified by:
getPhoneType
in interface IdentityManagementService
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
hasResponsibility
public boolean hasResponsibility(String principalId,
String namespaceCode,
String responsibilityName,
Map<String,String> qualification)
- Description copied from interface:
IdentityManagementService
- Check whether the principal has the given responsibility within the passed qualifier.
- Specified by:
hasResponsibility
in 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:
getResponsibilityByName
in interface IdentityManagementService
getResponsibilityActions
public List<ResponsibilityAction> getResponsibilityActions(String namespaceCode,
String responsibilityName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
- Specified by:
getResponsibilityActions
in interface IdentityManagementService
getResponsibilityActionsByTemplate
public List<ResponsibilityAction> getResponsibilityActionsByTemplate(String namespaceCode,
String responsibilityTemplateName,
Map<String,String> qualification,
Map<String,String> responsibilityDetails)
- Specified by:
getResponsibilityActionsByTemplate
in interface IdentityManagementService
hasResponsibilityByTemplate
public boolean hasResponsibilityByTemplate(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:
hasResponsibilityByTemplate
in 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.