protected HtmlData getOspAdminNameInquiryUrl(Award award) {
   KcPerson ospAdministrator = award.getOspAdministrator();
   if (ospAdministrator != null) {
     final KcPerson inqBo =
         this.kcPersonService.getKcPersonByPersonId(ospAdministrator.getPersonId());
     return super.getInquiryUrl(inqBo, PERSON_ID);
   } else {
     return null;
   }
 }
 @SuppressWarnings("unchecked")
 @Override
 public Collection performLookup(LookupForm lookupForm, Collection resultTable, boolean bounded) {
   String userName = (String) lookupForm.getFieldsForLookup().get("person.userName");
   if (StringUtils.isNotEmpty(userName)) {
     KcPerson person = getKcPersonService().getKcPersonByUserName(userName);
     if (person != null) {
       lookupForm.getFieldsForLookup().put("personId", person.getPersonId());
     }
   }
   return super.performLookup(lookupForm, resultTable, bounded);
 }
Exemple #3
0
 /**
  * . This is the Setter Method for requisitionerUserName
  *
  * @param requisitionerUserName The requisitionerUserName to set.
  */
 public void setRequisitionerUserName(String requisitionerUserName) {
   if (requisitionerUserName != null) {
     KcPerson requisitioner =
         KraServiceLocator.getService(KcPersonService.class)
             .getKcPersonByUserName(requisitionerUserName);
     if (requisitioner != null) {
       requisitionerId = requisitioner.getPersonId();
     }
   } else {
     this.requisitionerName = null;
   }
   this.requisitionerUserName = requisitionerUserName;
 }