Пример #1
0
  public String exportCsv(JwList<T> v) {
    JwCsvBuffer b = new JwCsvBuffer();

    emitHeader(b);
    emitCriteria(b);
    emitGrid(b, v);

    return b.toString();
  }
Пример #2
0
  public String getCsvExportFor(String airportCode, String roleOrRoleGroup) {
    JwSqlSelect st = getUserAirportAndRolesAndRoleGroupsSelect(airportCode, roleOrRoleGroup);

    JwCsvBuffer buffer = new JwCsvBuffer();
    buffer.addField("Login");
    buffer.addField("First Name");
    buffer.addField("Last Name");
    buffer.addField("Roles");
    buffer.addField("Role Groups");
    buffer.addField("Airports");
    buffer.endRecord();

    JwSqlResultSetProcessorIF p = getUserAirportAndRolesAndRoleGroupsResultSetProcessor(buffer);
    processResults(st, p);
    return buffer.toString();
  }