private static String getReplierExportStrategyValue ( ReplierExportStrategy replierExportStrategy , QueryReply queryReply ) { if ( queryReply != null ) { User user = queryReply . getUser ( ) ; if ( user != null ) { switch ( replierExportStrategy ) { case NONE : break ; case HASH : return RequestUtils . md5EncodeString ( String . valueOf ( user . getId ( ) ) ) ; case NAME : return user . getFullName ( true , false ) ; case EMAIL : return user . getDefaultEmailAsString ( ) ; } } } return "-" ; }
Returns user identifier for given replier export strategy