org.kuali.rice.kim.service
Interface IdentityService

All Known Implementing Classes:
IdentityCurrentAndArchivedServiceImpl, IdentityServiceImpl

public interface IdentityService

This service provides operations to query for principal and entity data.

A principal represents an entity that can authenticate. In essence, a principal can be thought of as an "account" or as an entity's authentication credentials. A principal has an id which is used to uniquely identify it. It also has a name which represents the principal's username and is typically what is entered when authenticating. All principals are associated with one and only one entity.

An entity represents a person or system. Additionally, other "types" of entities can be defined in KIM. Information like name, phone number, etc. is associated with an entity. It is the representation of a concrete person or system. While an entity will typically have a single principal associated with it, it is possible for an entity to have more than one principal or even no principals at all (in the case where the entity does not actually authenticate).

This service also provides operations for querying various pieces of reference data, such as address types, affiliation types, phone types, etc.

This service provides read-only operations. For write operations, see IdentityUpdateService.

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

Method Summary
 AddressTypeInfo getAddressType(String code)
          Gets the address type for the given address type code.
 AffiliationTypeInfo getAffiliationType(String code)
          Gets the affiliation type for the given affiliation type code.
 CitizenshipStatusInfo getCitizenshipStatus(String code)
          Gets the citizenship status for the given citizenship status code.
 Map<String,KimEntityNameInfo> getDefaultNamesForEntityIds(List<String> entityIds)
          Gets the names for the entities with ids in the given list.
 Map<String,KimEntityNamePrincipalNameInfo> getDefaultNamesForPrincipalIds(List<String> principalIds)
          Gets the name for the principals with ids in the given List.
 EmailTypeInfo getEmailType(String code)
          Gets the email type for the given email type code.
 EmploymentStatusInfo getEmploymentStatus(String code)
          Gets the employment status for the given employment status code.
 EmploymentTypeInfo getEmploymentType(String code)
          Gets the employment type for the given employment type code.
 KimEntityDefaultInfo getEntityDefaultInfo(String entityId)
          Get the entity default info for the entity with the given id.
 KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(String principalId)
          Get the entity default info for the entity of the principal with the given principal id.
 KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(String principalName)
          Get the entity default info for the entity of the principal with the given principal name.
 KimEntityInfo getEntityInfo(String entityId)
          Get the entity info for the entity with the given id.
 KimEntityInfo getEntityInfoByPrincipalId(String principalId)
          Get the entity info for the entity of the principal with the given principal id.
 KimEntityInfo getEntityInfoByPrincipalName(String principalName)
          Get the entity info for the entity of the principal with the given principal name.
 EntityNameTypeInfo getEntityNameType(String code)
          Gets the entity name type for the given entity name type code.
 KimEntityPrivacyPreferencesInfo getEntityPrivacyPreferences(String entityId)
          Gets the privacy preferences for the entity with the given entity id.
 EntityTypeInfo getEntityType(String code)
          Gets the entity type for the given entity type code.
 ExternalIdentifierTypeInfo getExternalIdentifierType(String code)
          Gets the external identifier type for the given external identifier type code.
 int getMatchingEntityCount(Map<String,String> searchCriteria)
          Returns a count of the number of entities that match the given search criteria.
 PhoneTypeInfo getPhoneType(String code)
          Gets the phone type for the given phone type code.
 KimPrincipalInfo getPrincipal(String principalId)
          Get the principal with the given unique principal ID.
 KimPrincipalInfo getPrincipalByPrincipalName(String principalName)
          Get the principal with the given principalName.
 KimPrincipalInfo getPrincipalByPrincipalNameAndPassword(String principalName, String password)
          Get the principal with the given name and password.
 List<KimEntityDefaultInfo> lookupEntityDefaultInfo(Map<String,String> searchCriteria, boolean unbounded)
          Gets a List of entity default info for entities based on the given search criteria.
 List<KimEntityInfo> lookupEntityInfo(Map<String,String> searchCriteria, boolean unbounded)
           
 

Method Detail

getPrincipal

KimPrincipalInfo getPrincipal(String principalId)
Get the principal with the given unique principal ID. Returns null if not found.


getPrincipalByPrincipalName

KimPrincipalInfo getPrincipalByPrincipalName(String principalName)
Get the principal with the given principalName.


getPrincipalByPrincipalNameAndPassword

KimPrincipalInfo getPrincipalByPrincipalNameAndPassword(String principalName,
                                                        String password)
Get the principal with the given name and password.


getEntityDefaultInfo

KimEntityDefaultInfo getEntityDefaultInfo(String entityId)
Get the entity default info for the entity with the given id.


getEntityDefaultInfoByPrincipalId

KimEntityDefaultInfo getEntityDefaultInfoByPrincipalId(String principalId)
Get the entity default info for the entity of the principal with the given principal id.


getEntityDefaultInfoByPrincipalName

KimEntityDefaultInfo getEntityDefaultInfoByPrincipalName(String principalName)
Get the entity default info for the entity of the principal with the given principal name.


getEntityInfo

KimEntityInfo getEntityInfo(String entityId)
Get the entity info for the entity with the given id.


getEntityInfoByPrincipalId

KimEntityInfo getEntityInfoByPrincipalId(String principalId)
Get the entity info for the entity of the principal with the given principal id.


getEntityInfoByPrincipalName

KimEntityInfo getEntityInfoByPrincipalName(String principalName)
Get the entity info for the entity of the principal with the given principal name.


lookupEntityDefaultInfo

List<KimEntityDefaultInfo> lookupEntityDefaultInfo(Map<String,String> searchCriteria,
                                                   boolean unbounded)
Gets a List of entity default info for entities based on the given search criteria.

If unbounded is set to false, then this method will return all results. If unbounded is set to true then the number of search results will be bounded based on default configuration for number of search results returned in a a bounded search.

The searchCriteria Map is a map of entity field names to search values.


lookupEntityInfo

List<KimEntityInfo> lookupEntityInfo(Map<String,String> searchCriteria,
                                     boolean unbounded)

getMatchingEntityCount

int getMatchingEntityCount(Map<String,String> searchCriteria)
Returns a count of the number of entities that match the given search criteria.


getEntityPrivacyPreferences

KimEntityPrivacyPreferencesInfo getEntityPrivacyPreferences(String entityId)
Gets the privacy preferences for the entity with the given entity id.


getDefaultNamesForPrincipalIds

Map<String,KimEntityNamePrincipalNameInfo> getDefaultNamesForPrincipalIds(List<String> principalIds)
Gets the name for the principals with ids in the given List.

The resulting Map contains the principalId as the key and the name information as the value. When fetching names by principal id, the resulting name info contains the entity's name info as well as the principal's name info.


getDefaultNamesForEntityIds

Map<String,KimEntityNameInfo> getDefaultNamesForEntityIds(List<String> entityIds)
Gets the names for the entities with ids in the given list.


getAddressType

AddressTypeInfo getAddressType(String code)
Gets the address type for the given address type code.


getAffiliationType

AffiliationTypeInfo getAffiliationType(String code)
Gets the affiliation type for the given affiliation type code.


getCitizenshipStatus

CitizenshipStatusInfo getCitizenshipStatus(String code)
Gets the citizenship status for the given citizenship status code.


getEmailType

EmailTypeInfo getEmailType(String code)
Gets the email type for the given email type code.


getEmploymentStatus

EmploymentStatusInfo getEmploymentStatus(String code)
Gets the employment status for the given employment status code.


getEmploymentType

EmploymentTypeInfo getEmploymentType(String code)
Gets the employment type for the given employment type code.


getEntityNameType

EntityNameTypeInfo getEntityNameType(String code)
Gets the entity name type for the given entity name type code.


getEntityType

EntityTypeInfo getEntityType(String code)
Gets the entity type for the given entity type code.


getExternalIdentifierType

ExternalIdentifierTypeInfo getExternalIdentifierType(String code)
Gets the external identifier type for the given external identifier type code.


getPhoneType

PhoneTypeInfo getPhoneType(String code)
Gets the phone type for the given phone type code.



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