private String primGetName ( String key ) { String name = key ; final IPersonAttributes personAttributes = this . paDao . getPerson ( name ) ; if ( personAttributes != null ) { Object displayName = personAttributes . getAttributeValue ( "displayName" ) ; String displayNameStr = "" ; if ( displayName != null ) { displayNameStr = String . valueOf ( displayName ) ; if ( StringUtils . isNotEmpty ( displayNameStr ) ) { name = displayNameStr ; } } } return name ; }
Actually lookup a user name using the underlying IPersonAttributeDao .