| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.kuali.rice.kim.service.impl.PersonServiceImpl
public class PersonServiceImpl
This is a description of what this class does - kellerj don't forget to fill this in.
| Constructor Summary | |
|---|---|
| PersonServiceImpl() | |
| Method Summary | |
|---|---|
| protected  void | addPersonImplToCache(PersonImpl person) | 
| protected  PersonImpl | convertEntityToPerson(KimEntityDefaultInfo entity,
                                           KimPrincipal principal) | 
|  Map<String,String> | convertPersonPropertiesToEntityProperties(Map<String,String> criteria) | 
|  List<PersonImpl> | findPeople(Map<String,String> criteria)Perform an unbounded search for person records. | 
|  List<PersonImpl> | findPeople(Map<String,String> criteria,
                     boolean unbounded)Perform a Person lookup. | 
| protected  List<PersonImpl> | findPeopleInternal(Map<String,String> criteria,
                                     boolean unbounded) | 
|  void | flushPersonCaches()Flush all of the role-related caches. | 
| protected  BusinessObjectMetaDataService | getBusinessObjectMetaDataService() | 
| protected  IdentityManagementService | getIdentityManagementService() | 
| protected  MaintenanceDocumentDictionaryService | getMaintenanceDocumentDictionaryService() | 
| private  Map<String,String> | getNonPersonSearchCriteria(BusinessObject bo,
                                                     Map<String,String> fieldValues)Builds a map containing entries from the passed in Map that do NOT represent properties on an embedded Person object. | 
| protected  List<PersonImpl> | getPeople(Collection<String> principalIds) | 
|  PersonImpl | getPerson(String principalId)Retrieve a single Person object by Principal ID. | 
|  PersonImpl | getPersonByEmployeeId(String employeeId)Gets a single Person by their employee id. | 
|  List<PersonImpl> | getPersonByExternalIdentifier(String externalIdentifierTypeCode,
                                                           String externalId)Retrieve a person by an arbitrary external identifier. | 
|  PersonImpl | 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  PersonImpl | getPersonImplFromEmployeeIdCache(String principalId) | 
| protected  PersonImpl | getPersonImplFromPrincipalIdCache(String principalId) | 
| protected  PersonImpl | getPersonImplFromPrincipalNameCache(String principalName) | 
| protected  RoleManagementService | getRoleManagementService() | 
|  boolean | hasPersonProperty(Class<? extends BusinessObject> 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. | 
| 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) | 
| private  boolean | isPersonProperty(BusinessObject bo,
                                 String propertyName) | 
| protected  boolean | isPhoneEntityCriteria(String propertyName) | 
| protected  List<String> | peopleToPrincipalIds(List<? extends 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 | setPersonCacheMaxAgeSeconds(int personCacheMaxAgeSeconds) | 
|  void | setPersonCacheMaxSize(int personCacheMaxSize) | 
|  void | setPersonEntityTypeCodes(List<String> personEntityTypeCodes) | 
|  Person | updatePersonIfNecessary(String sourcePrincipalId,
                                               Person currentPerson)Compares the Principal ID passed in with that in the Person object. | 
| Methods inherited from class java.lang.Object | 
|---|
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Field Detail | 
|---|
private static org.apache.log4j.Logger LOG
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
private IdentityManagementService identityManagementService
private RoleManagementService roleManagementService
private BusinessObjectMetaDataService businessObjectMetaDataService
private MaintenanceDocumentDictionaryService maintenanceDocumentDictionaryService
protected int personCacheMaxSize
protected int personCacheMaxAgeSeconds
protected Map<String,MaxAgeSoftReference<PersonImpl>> personCache
protected List<String> personEntityTypeCodes
private String personEntityTypeLookupCriteria
protected Map<String,String> baseLookupCriteria
protected Map<String,String> criteriaConversion
protected ArrayList<String> personCachePropertyNames
| Constructor Detail | 
|---|
public PersonServiceImpl()
| Method Detail | 
|---|
public PersonImpl getPerson(String principalId)
PersonService
getPerson in interface PersonService<PersonImpl>PersonService.getPerson(java.lang.String)
protected PersonImpl convertEntityToPerson(KimEntityDefaultInfo entity,
                                           KimPrincipal principal)
protected PersonImpl getPersonImplFromPrincipalNameCache(String principalName)
protected PersonImpl getPersonImplFromPrincipalIdCache(String principalId)
protected PersonImpl getPersonImplFromEmployeeIdCache(String principalId)
protected void addPersonImplToCache(PersonImpl person)
public void flushPersonCaches()
PersonService
flushPersonCaches in interface PersonService<PersonImpl>public PersonImpl getPersonByPrincipalName(String principalName)
PersonService
getPersonByPrincipalName in interface PersonService<PersonImpl>PersonService.getPersonByPrincipalName(java.lang.String)public PersonImpl getPersonByEmployeeId(String employeeId)
PersonService
getPersonByEmployeeId in interface PersonService<PersonImpl>public List<PersonImpl> findPeople(Map<String,String> criteria)
PersonService
findPeople in interface PersonService<PersonImpl>PersonService.findPeople(Map)
public List<PersonImpl> findPeople(Map<String,String> criteria,
                                   boolean unbounded)
PersonService
findPeople in interface PersonService<PersonImpl>PersonService.findPeople(java.util.Map, boolean)
protected List<PersonImpl> 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<PersonImpl> getPeople(Collection<String> principalIds)
protected List<String> peopleToPrincipalIds(List<? extends Person> people)
public List<PersonImpl> getPersonByExternalIdentifier(String externalIdentifierTypeCode,
                                                      String externalId)
PersonService
getPersonByExternalIdentifier in interface PersonService<PersonImpl>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<PersonImpl>PersonService.updatePersonIfNecessary(java.lang.String, org.kuali.rice.kim.bo.Person)
private Map<String,String> getNonPersonSearchCriteria(BusinessObject bo,
                                                      Map<String,String> fieldValues)
private boolean isPersonProperty(BusinessObject bo,
                                 String propertyName)
public boolean hasPersonProperty(Class<? extends BusinessObject> businessObjectClass,
                                 Map<String,String> fieldValues)
PersonService
hasPersonProperty in interface PersonService<PersonImpl>PersonService.hasPersonProperty(java.lang.Class, java.util.Map)
public Map<String,String> resolvePrincipalNamesToPrincipalIds(BusinessObject businessObject,
                                                              Map<String,String> fieldValues)
PersonService
resolvePrincipalNamesToPrincipalIds in interface PersonService<PersonImpl>PersonService.resolvePrincipalNamesToPrincipalIds(org.kuali.rice.kns.bo.BusinessObject, java.util.Map)protected IdentityManagementService getIdentityManagementService()
protected RoleManagementService getRoleManagementService()
public Class<? extends Person> getPersonImplementationClass()
PersonService
getPersonImplementationClass in interface PersonService<PersonImpl>protected BusinessObjectMetaDataService getBusinessObjectMetaDataService()
protected MaintenanceDocumentDictionaryService getMaintenanceDocumentDictionaryService()
public void setPersonCacheMaxSize(int personCacheMaxSize)
public void setPersonCacheMaxAgeSeconds(int personCacheMaxAgeSeconds)
| 
 | ||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||