@ SuppressWarnings ( "unchecked" ) public String getDisplayName ( boolean setAttr ) throws Exception { String displayName = null ; String securityName = getSecurityName ( false ) ; displayName = getDisplayNameForEntity ( securityName ) ; if ( ! ( ( displayName == null ) || ( displayName . trim ( ) . length ( ) == 0 ) ) && setAttr ) ( ( List < String > ) entity . get ( URBridgeConstants . DISPLAY_NAME ) ) . add ( displayName ) ; return displayName ; }
Returns the displayName of a user or a group .