protected String findDisplayNameFromLocalAccountPerson ( ILocalAccountPerson person ) { Object name = person . getAttributeValue ( ILocalAccountPerson . ATTR_DISPLAY_NAME ) ; if ( ( name instanceof String ) && ! StringUtils . isEmpty ( ( String ) name ) ) { return ( String ) name ; } // if display name is not set, just return username. return person . getName ( ) ; }
Determine the name to use in the password reset email that identifies the users whose password has been reset .