|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PersonService
This service acts as a facade on the entity information that is provided through the IdentityService and provides a "person-centric" view of that entity data.
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.
Method Summary | |
---|---|
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. |
boolean |
hasPersonProperty(Class<? extends Person> businessObjectClass,
Map<String,String> fieldValues)
Checks whether the given set of search criteria contain any non-blank properties which need to be applied against a related Person object. |
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. |
Method Detail |
---|
Person getPerson(String principalId)
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)
boolean hasPersonProperty(Class<? extends Person> businessObjectClass, Map<String,String> fieldValues)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |