public class PersonServiceImpl extends Object implements PersonService
Modifier and Type | Field and Description |
---|---|
protected Map<String,String> |
baseLookupCriteria |
protected Map<String,String> |
criteriaConversion |
protected static String |
ENTITY_ADDRESS_PROPERTY_PREFIX |
protected static String |
ENTITY_AFFILIATION_PROPERTY_PREFIX |
protected static String |
ENTITY_EMAIL_PROPERTY_PREFIX |
protected static String |
ENTITY_EMPLOYEE_ID_PROPERTY_PREFIX |
protected static String |
ENTITY_EXT_ID_PROPERTY_PREFIX |
protected static String |
ENTITY_NAME_PROPERTY_PREFIX |
protected static String |
ENTITY_PHONE_PROPERTY_PREFIX |
protected static String |
ENTITY_TYPE_PROPERTY_PREFIX |
protected static String |
EXTENSION |
protected ArrayList<String> |
personCachePropertyNames |
protected List<String> |
personEntityTypeCodes |
protected static String |
PRINCIPAL_PROPERTY_PREFIX |
Constructor and Description |
---|
PersonServiceImpl() |
Modifier and Type | Method and Description |
---|---|
protected PersonImpl |
convertEntityToPerson(EntityDefault entity,
Principal principal) |
Map<String,String> |
convertPersonPropertiesToEntityProperties(Map<String,String> criteria) |
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.
|
protected List<Person> |
findPeopleInternal(Map<String,String> criteria,
boolean unbounded) |
protected BusinessObjectMetaDataService |
getBusinessObjectMetaDataService() |
protected IdentityService |
getIdentityService() |
protected MaintenanceDocumentDictionaryService |
getMaintenanceDocumentDictionaryService() |
protected List<Person> |
getPeople(Collection<String> principalIds) |
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).
|
List<String> |
getPersonEntityTypeCodes()
Get the entityTypeCode that can be associated with a Person.
|
Class<? extends Person> |
getPersonImplementationClass()
Get the class object which points to the class used by the underlying implementation.
|
protected RoleService |
getRoleService() |
protected boolean |
isAddressEntityCriteria(String propertyName) |
protected boolean |
isAffiliationEntityCriteria(String propertyName) |
protected boolean |
isEmailEntityCriteria(String propertyName) |
protected boolean |
isEmployeeIdEntityCriteria(String propertyName) |
protected boolean |
isExternalIdentifierEntityCriteria(String propertyName) |
protected boolean |
isNameEntityCriteria(String propertyName) |
protected boolean |
isPhoneEntityCriteria(String propertyName) |
protected List<String> |
peopleToPrincipalIds(List<Person> people) |
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
|
void |
setPersonEntityTypeCodes(List<String> personEntityTypeCodes) |
Person |
updatePersonIfNecessary(String sourcePrincipalId,
Person currentPerson)
Compares the Principal ID passed in with that in the Person object.
|
protected static final String ENTITY_EXT_ID_PROPERTY_PREFIX
protected static final String ENTITY_AFFILIATION_PROPERTY_PREFIX
protected static final String ENTITY_TYPE_PROPERTY_PREFIX
protected static final String ENTITY_EMAIL_PROPERTY_PREFIX
protected static final String ENTITY_PHONE_PROPERTY_PREFIX
protected static final String ENTITY_ADDRESS_PROPERTY_PREFIX
protected static final String ENTITY_NAME_PROPERTY_PREFIX
protected static final String PRINCIPAL_PROPERTY_PREFIX
protected static final String ENTITY_EMPLOYEE_ID_PROPERTY_PREFIX
protected static final String EXTENSION
protected List<String> personEntityTypeCodes
protected Map<String,String> baseLookupCriteria
protected Map<String,String> criteriaConversion
protected ArrayList<String> personCachePropertyNames
public PersonServiceImpl()
public Person getPerson(String principalId)
PersonService
getPerson
in interface PersonService
PersonService.getPerson(java.lang.String)
protected PersonImpl convertEntityToPerson(EntityDefault entity, Principal principal)
public Person getPersonByPrincipalName(String principalName)
PersonService
getPersonByPrincipalName
in interface PersonService
PersonService.getPersonByPrincipalName(java.lang.String)
public Person getPersonByEmployeeId(String employeeId)
PersonService
getPersonByEmployeeId
in interface PersonService
public List<Person> findPeople(Map<String,String> criteria)
PersonService
findPeople
in interface PersonService
PersonService.findPeople(Map)
public List<Person> findPeople(Map<String,String> criteria, boolean unbounded)
PersonService
findPeople
in interface PersonService
PersonService.findPeople(java.util.Map, boolean)
protected List<Person> findPeopleInternal(Map<String,String> criteria, boolean unbounded)
public Map<String,String> convertPersonPropertiesToEntityProperties(Map<String,String> criteria)
protected boolean isNameEntityCriteria(String propertyName)
protected boolean isAddressEntityCriteria(String propertyName)
protected boolean isPhoneEntityCriteria(String propertyName)
protected boolean isEmailEntityCriteria(String propertyName)
protected boolean isEmployeeIdEntityCriteria(String propertyName)
protected boolean isAffiliationEntityCriteria(String propertyName)
protected boolean isExternalIdentifierEntityCriteria(String propertyName)
public List<String> getPersonEntityTypeCodes()
public void setPersonEntityTypeCodes(List<String> personEntityTypeCodes)
protected List<Person> getPeople(Collection<String> principalIds)
protected List<String> peopleToPrincipalIds(List<Person> people)
public List<Person> getPersonByExternalIdentifier(String externalIdentifierTypeCode, String externalId)
PersonService
getPersonByExternalIdentifier
in interface PersonService
externalIdentifierTypeCode
- Type of external identifier to search for.externalId
- The external identifier.PersonService.getPersonByExternalIdentifier(java.lang.String, java.lang.String)
public Person updatePersonIfNecessary(String sourcePrincipalId, Person currentPerson)
PersonService
updatePersonIfNecessary
in interface PersonService
PersonService.updatePersonIfNecessary(java.lang.String, org.kuali.rice.kim.api.identity.Person)
public Map<String,String> resolvePrincipalNamesToPrincipalIds(BusinessObject businessObject, Map<String,String> fieldValues)
PersonService
resolvePrincipalNamesToPrincipalIds
in interface PersonService
PersonService.resolvePrincipalNamesToPrincipalIds(org.kuali.rice.krad.bo.BusinessObject, java.util.Map)
protected IdentityService getIdentityService()
protected RoleService getRoleService()
public Class<? extends Person> getPersonImplementationClass()
PersonService
getPersonImplementationClass
in interface PersonService
protected BusinessObjectMetaDataService getBusinessObjectMetaDataService()
protected MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
Copyright © 2005-2015 The Kuali Foundation. All Rights Reserved.