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

java.lang.Object
  extended by org.kuali.rice.kim.service.impl.IdentityServiceImpl
All Implemented Interfaces:
org.kuali.rice.kim.service.IdentityService, org.kuali.rice.kim.service.IdentityUpdateService

public class IdentityServiceImpl
extends java.lang.Object
implements org.kuali.rice.kim.service.IdentityService, org.kuali.rice.kim.service.IdentityUpdateService

Base implementation of the identity (entity) service. This version assumes the KimEntity and related data is located within the KIM database.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Constructor Summary
IdentityServiceImpl()
           
 
Method Summary
protected  org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo convertEntityImplToDefaultInfo(KimEntityImpl entity)
           
protected  org.kuali.rice.kim.bo.entity.dto.KimEntityInfo convertEntityImplToInfo(KimEntityImpl entity)
           
 org.kuali.rice.kim.bo.reference.dto.AddressTypeInfo getAddressType(java.lang.String code)
           
 org.kuali.rice.kim.bo.reference.dto.AffiliationTypeInfo getAffiliationType(java.lang.String code)
           
protected  BusinessObjectService getBusinessObjectService()
           
 org.kuali.rice.kim.bo.reference.dto.CitizenshipStatusInfo getCitizenshipStatus(java.lang.String code)
           
 java.util.Map<java.lang.String,org.kuali.rice.kim.bo.entity.dto.KimEntityNameInfo> getDefaultNamesForEntityIds(java.util.List<java.lang.String> entityIds)
           
 java.util.Map<java.lang.String,org.kuali.rice.kim.bo.entity.dto.KimEntityNamePrincipalNameInfo> getDefaultNamesForPrincipalIds(java.util.List<java.lang.String> principalIds)
           
 org.kuali.rice.kim.bo.reference.dto.EmailTypeInfo getEmailType(java.lang.String code)
           
 org.kuali.rice.kim.bo.reference.dto.EmploymentStatusInfo getEmploymentStatus(java.lang.String code)
           
 org.kuali.rice.kim.bo.reference.dto.EmploymentTypeInfo getEmploymentType(java.lang.String code)
           
protected  KimEntityImpl getEntityByKeyValue(java.lang.String key, java.lang.String value)
          Generic helper method for performing a lookup through the business object service.
protected  KimEntityImpl getEntityByPrincipalId(java.lang.String principalId)
           
protected  KimEntityImpl getEntityByPrincipalName(java.lang.String principalName)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo getEntityDefaultInfo(java.lang.String entityId)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(java.lang.String principalId)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(java.lang.String principalName)
           
 java.lang.String getEntityIdByPrincipalId(java.lang.String principalId)
           
 java.lang.String getEntityIdByPrincipalName(java.lang.String principalName)
           
 KimEntityImpl getEntityImpl(java.lang.String entityId)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityInfo getEntityInfo(java.lang.String entityId)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityInfo getEntityInfoByPrincipalId(java.lang.String principalId)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityInfo getEntityInfoByPrincipalName(java.lang.String principalName)
           
 org.kuali.rice.kim.bo.reference.dto.EntityNameTypeInfo getEntityNameType(java.lang.String code)
           
 org.kuali.rice.kim.bo.entity.dto.KimEntityPrivacyPreferencesInfo getEntityPrivacyPreferences(java.lang.String entityId)
           
 org.kuali.rice.kim.bo.reference.dto.EntityTypeInfo getEntityType(java.lang.String code)
           
 org.kuali.rice.kim.bo.reference.dto.ExternalIdentifierTypeInfo getExternalIdentifierType(java.lang.String code)
           
 int getMatchingEntityCount(java.util.Map<java.lang.String,java.lang.String> searchCriteria)
           
 org.kuali.rice.kim.bo.reference.dto.PhoneTypeInfo getPhoneType(java.lang.String code)
           
 org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo getPrincipal(java.lang.String principalId)
           
 org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo getPrincipalByPrincipalName(java.lang.String principalName)
           
 org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo getPrincipalByPrincipalNameAndPassword(java.lang.String principalName, java.lang.String password)
           
 java.lang.String getPrincipalIdByPrincipalName(java.lang.String principalName)
           
 KimPrincipalImpl getPrincipalImpl(java.lang.String principalId)
           
 java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo> lookupEntityDefaultInfo(java.util.Map<java.lang.String,java.lang.String> searchCriteria, boolean unbounded)
           
 java.util.List<java.lang.String> lookupEntityIds(java.util.Map<java.lang.String,java.lang.String> searchCriteria)
           
protected  java.util.Collection lookupEntityImpls(java.util.Map<java.lang.String,java.lang.String> searchCriteria, boolean unbounded)
           
 java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityInfo> lookupEntityInfo(java.util.Map<java.lang.String,java.lang.String> searchCriteria, boolean unbounded)
           
protected  java.util.List<KimEntityImpl> lookupEntitys(java.util.Map<java.lang.String,java.lang.String> searchCriteria)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdentityServiceImpl

public IdentityServiceImpl()
Method Detail

getEntityInfo

public org.kuali.rice.kim.bo.entity.dto.KimEntityInfo getEntityInfo(java.lang.String entityId)
Specified by:
getEntityInfo in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityInfo(java.lang.String)

getEntityInfoByPrincipalId

public org.kuali.rice.kim.bo.entity.dto.KimEntityInfo getEntityInfoByPrincipalId(java.lang.String principalId)
Specified by:
getEntityInfoByPrincipalId in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityInfoByPrincipalId(java.lang.String)

getEntityInfoByPrincipalName

public org.kuali.rice.kim.bo.entity.dto.KimEntityInfo getEntityInfoByPrincipalName(java.lang.String principalName)
Specified by:
getEntityInfoByPrincipalName in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityInfoByPrincipalName(java.lang.String)

getEntityDefaultInfo

public org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo getEntityDefaultInfo(java.lang.String entityId)
Specified by:
getEntityDefaultInfo in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityDefaultInfo(java.lang.String)

getEntityDefaultInfoByPrincipalId

public org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(java.lang.String principalId)
Specified by:
getEntityDefaultInfoByPrincipalId in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityDefaultInfoByPrincipalId(java.lang.String)

getEntityDefaultInfoByPrincipalName

public org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(java.lang.String principalName)
Specified by:
getEntityDefaultInfoByPrincipalName in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityDefaultInfoByPrincipalName(java.lang.String)

getPrincipalByPrincipalNameAndPassword

public org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo getPrincipalByPrincipalNameAndPassword(java.lang.String principalName,
                                                                                                java.lang.String password)
Specified by:
getPrincipalByPrincipalNameAndPassword in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getPrincipalByPrincipalNameAndPassword(java.lang.String, java.lang.String)

lookupEntityInfo

@Transactional(readOnly=true)
public java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityInfo> lookupEntityInfo(java.util.Map<java.lang.String,java.lang.String> searchCriteria,
                                                                                                     boolean unbounded)
Specified by:
lookupEntityInfo in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.lookupEntityInfo(Map, boolean)

lookupEntityDefaultInfo

@Transactional(readOnly=true)
public java.util.List<org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo> lookupEntityDefaultInfo(java.util.Map<java.lang.String,java.lang.String> searchCriteria,
                                                                                                                   boolean unbounded)
Specified by:
lookupEntityDefaultInfo in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.lookupEntityDefaultInfo(Map, boolean)

lookupEntityImpls

protected java.util.Collection lookupEntityImpls(java.util.Map<java.lang.String,java.lang.String> searchCriteria,
                                                 boolean unbounded)

getMatchingEntityCount

public int getMatchingEntityCount(java.util.Map<java.lang.String,java.lang.String> searchCriteria)
Specified by:
getMatchingEntityCount in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getMatchingEntityCount(java.util.Map)

convertEntityImplToInfo

protected org.kuali.rice.kim.bo.entity.dto.KimEntityInfo convertEntityImplToInfo(KimEntityImpl entity)

convertEntityImplToDefaultInfo

protected org.kuali.rice.kim.bo.entity.dto.KimEntityDefaultInfo convertEntityImplToDefaultInfo(KimEntityImpl entity)

getEntityPrivacyPreferences

public org.kuali.rice.kim.bo.entity.dto.KimEntityPrivacyPreferencesInfo getEntityPrivacyPreferences(java.lang.String entityId)
Specified by:
getEntityPrivacyPreferences in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getEntityPrivacyPreferences(java.lang.String)

getPrincipal

public org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo getPrincipal(java.lang.String principalId)
Specified by:
getPrincipal in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getPrincipal(java.lang.String)

getPrincipalImpl

public KimPrincipalImpl getPrincipalImpl(java.lang.String principalId)

getEntityImpl

public KimEntityImpl getEntityImpl(java.lang.String entityId)

lookupEntitys

protected java.util.List<KimEntityImpl> lookupEntitys(java.util.Map<java.lang.String,java.lang.String> searchCriteria)
See Also:
org.kuali.rice.kim.service.IdentityService#lookupEntitys(java.util.Map)

lookupEntityIds

public java.util.List<java.lang.String> lookupEntityIds(java.util.Map<java.lang.String,java.lang.String> searchCriteria)
See Also:
org.kuali.rice.kim.service.IdentityService#lookupEntityIds(java.util.Map)

getPrincipalByPrincipalName

public org.kuali.rice.kim.bo.entity.dto.KimPrincipalInfo getPrincipalByPrincipalName(java.lang.String principalName)
Specified by:
getPrincipalByPrincipalName in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getPrincipalByPrincipalName(java.lang.String)

getEntityByPrincipalName

protected KimEntityImpl getEntityByPrincipalName(java.lang.String principalName)
See Also:
org.kuali.rice.kim.service.IdentityService#getEntityByPrincipalName(java.lang.String)

getEntityByPrincipalId

protected KimEntityImpl getEntityByPrincipalId(java.lang.String principalId)
See Also:
org.kuali.rice.kim.service.IdentityService#getEntityByPrincipalId(java.lang.String)

getEntityIdByPrincipalId

public java.lang.String getEntityIdByPrincipalId(java.lang.String principalId)
See Also:
org.kuali.rice.kim.service.IdentityService#getEntityIdByPrincipalId(java.lang.String)

getEntityIdByPrincipalName

public java.lang.String getEntityIdByPrincipalName(java.lang.String principalName)
See Also:
org.kuali.rice.kim.service.IdentityService#getEntityIdByPrincipalName(java.lang.String)

getPrincipalIdByPrincipalName

public java.lang.String getPrincipalIdByPrincipalName(java.lang.String principalName)
See Also:
org.kuali.rice.kim.service.IdentityService#getPrincipalIdByPrincipalName(java.lang.String)

getDefaultNamesForEntityIds

public java.util.Map<java.lang.String,org.kuali.rice.kim.bo.entity.dto.KimEntityNameInfo> getDefaultNamesForEntityIds(java.util.List<java.lang.String> entityIds)
Specified by:
getDefaultNamesForEntityIds in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getDefaultNamesForEntityIds(java.util.List)

getDefaultNamesForPrincipalIds

public java.util.Map<java.lang.String,org.kuali.rice.kim.bo.entity.dto.KimEntityNamePrincipalNameInfo> getDefaultNamesForPrincipalIds(java.util.List<java.lang.String> principalIds)
Specified by:
getDefaultNamesForPrincipalIds in interface org.kuali.rice.kim.service.IdentityService
See Also:
IdentityService.getDefaultNamesForPrincipalIds(java.util.List)

getEntityByKeyValue

protected KimEntityImpl getEntityByKeyValue(java.lang.String key,
                                            java.lang.String value)
Generic helper method for performing a lookup through the business object service.


getBusinessObjectService

protected BusinessObjectService getBusinessObjectService()

getAddressType

public org.kuali.rice.kim.bo.reference.dto.AddressTypeInfo getAddressType(java.lang.String code)
Specified by:
getAddressType in interface org.kuali.rice.kim.service.IdentityService

getAffiliationType

public org.kuali.rice.kim.bo.reference.dto.AffiliationTypeInfo getAffiliationType(java.lang.String code)
Specified by:
getAffiliationType in interface org.kuali.rice.kim.service.IdentityService

getCitizenshipStatus

public org.kuali.rice.kim.bo.reference.dto.CitizenshipStatusInfo getCitizenshipStatus(java.lang.String code)
Specified by:
getCitizenshipStatus in interface org.kuali.rice.kim.service.IdentityService

getEmailType

public org.kuali.rice.kim.bo.reference.dto.EmailTypeInfo getEmailType(java.lang.String code)
Specified by:
getEmailType in interface org.kuali.rice.kim.service.IdentityService

getEmploymentStatus

public org.kuali.rice.kim.bo.reference.dto.EmploymentStatusInfo getEmploymentStatus(java.lang.String code)
Specified by:
getEmploymentStatus in interface org.kuali.rice.kim.service.IdentityService

getEmploymentType

public org.kuali.rice.kim.bo.reference.dto.EmploymentTypeInfo getEmploymentType(java.lang.String code)
Specified by:
getEmploymentType in interface org.kuali.rice.kim.service.IdentityService

getEntityNameType

public org.kuali.rice.kim.bo.reference.dto.EntityNameTypeInfo getEntityNameType(java.lang.String code)
Specified by:
getEntityNameType in interface org.kuali.rice.kim.service.IdentityService

getEntityType

public org.kuali.rice.kim.bo.reference.dto.EntityTypeInfo getEntityType(java.lang.String code)
Specified by:
getEntityType in interface org.kuali.rice.kim.service.IdentityService

getExternalIdentifierType

public org.kuali.rice.kim.bo.reference.dto.ExternalIdentifierTypeInfo getExternalIdentifierType(java.lang.String code)
Specified by:
getExternalIdentifierType in interface org.kuali.rice.kim.service.IdentityService

getPhoneType

public org.kuali.rice.kim.bo.reference.dto.PhoneTypeInfo getPhoneType(java.lang.String code)
Specified by:
getPhoneType in interface org.kuali.rice.kim.service.IdentityService


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