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; }
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; }