1 package org.kuali.coeus.common.api.person; 2 3 4 public interface KcPersonRepositoryService { 5 6 /** 7 * Finds a KcPerson by user name. The user name cannot be blank. Will return null if not found. 8 * @param userName the user name. cannot be blank. 9 * @return the KcPerson or null 10 * @throws java.lang.IllegalArgumentException if the user name is blank. 11 */ 12 KcPersonContract findKcPersonByUserName(String userName); 13 14 /** 15 * Finds a KcPerson by person id. The person id cannot be blank. Will return null if not found. 16 * @param personId the person id. cannot be blank. 17 * @return the KcPerson or null 18 * @throws java.lang.IllegalArgumentException if the person id is blank. 19 */ 20 KcPersonContract findKcPersonByPersonId(String personId); 21 }