public interface PersonService
In general, the Person object flattens out the various related pieces of entity data into a denormalized view on that data. In many cases, that data will have a defined "default" value in the entity data model. This default data is what the Person object will be constructed with. For example, an entity can have more than one name, but one of those names is flagged as the default.
This service will do it's best to construct valid Person objects even for entities that don't have an entity type of "PERSON". In those cases not all of the attributes on the Person object will be populated.
Modifier and Type | Method and Description |
---|---|
List<Person> |
findPeople(Map<String,String> criteria)
Perform an unbounded search for person records.
|
List<Person> |
findPeople(Map<String,String> criteria,
boolean unbounded)
Perform a Person lookup.
|
Person |
getPerson(String principalId)
Retrieve a single Person object by Principal ID.
|
Person |
getPersonByEmployeeId(String employeeId)
Gets a single Person by their employee id.
|
List<Person> |
getPersonByExternalIdentifier(String externalIdentifierTypeCode,
String externalId)
Retrieve a person by an arbitrary external identifier.
|
Person |
getPersonByPrincipalName(String principalName)
Gets a single Person by their principal name (user ID).
|
Class<? extends Person> |
getPersonImplementationClass()
Get the class object which points to the class used by the underlying implementation.
|
Map<String,String> |
resolvePrincipalNamesToPrincipalIds(BusinessObject businessObject,
Map<String,String> fieldValues)
This method takes a map on its way to populate a business object and replaces all
user identifiers with their corresponding universal users
|
Person |
updatePersonIfNecessary(String sourcePrincipalId,
Person currentPerson)
Compares the Principal ID passed in with that in the Person object.
|
List<Person> getPersonByExternalIdentifier(String externalIdentifierTypeCode, String externalId)
externalIdentifierTypeCode
- Type of external identifier to search for.externalId
- The external identifier.Person getPersonByPrincipalName(String principalName)
Person getPersonByEmployeeId(String employeeId)
List<Person> findPeople(Map<String,String> criteria)
List<Person> findPeople(Map<String,String> criteria, boolean unbounded)
Class<? extends Person> getPersonImplementationClass()
Map<String,String> resolvePrincipalNamesToPrincipalIds(BusinessObject businessObject, Map<String,String> fieldValues)
Person updatePersonIfNecessary(String sourcePrincipalId, Person currentPerson)
Copyright © 2005–2015 The Kuali Foundation. All rights reserved.