Esempio n. 1
0
 private Map<String, Object> getLibraryMap(DatabaseFile df) {
   Map<String, Object> map = new HashMap<String, Object>();
   map.put("filename", df.getFilename());
   map.put("uploaded", df.getUploadDate());
   map.put("stages", getStagesMap(df));
   return map;
 }
Esempio n. 2
0
  public Map<String, Object> getLibraries() {
    Map<String, Object> map = new HashMap<String, Object>();

    for (DatabaseFile df : pipelineScanner.getLibraryFiles()) {
      map.put(df.getId().toString(), getLibraryMap(df));
    }

    return map;
  }