From 1a4901f2019cffce48249c452cf1ab93166de086 Mon Sep 17 00:00:00 2001 From: dert1129 Date: Fri, 8 Nov 2024 14:41:44 -0500 Subject: [PATCH] add related Files list --- .../SpatialViewerDatasetDisplay.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java index e3ef580..1c63028 100644 --- a/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java +++ b/src/main/java/org/kpmp/spatialViewerDataset/SpatialViewerDatasetDisplay.java @@ -1,6 +1,9 @@ package org.kpmp.spatialViewerDataset; +import java.util.List; import java.util.Set; +import org.kpmp.file.File; + import com.google.common.collect.Sets.SetView; public class SpatialViewerDatasetDisplay { @@ -15,6 +18,7 @@ public class SpatialViewerDatasetDisplay { private String spectrackSampleId; private String level; private String releaseVersion; + private List relatedFiles; private Set redcapId; private Set age; private Set protocol; @@ -46,6 +50,7 @@ public SpatialViewerDatasetDisplay(SpatialViewerFileDataset svFile){ fileSize = svFile.getFileSize(); spectrackSampleId = svFile.getSpectrackSampleId(); level = svFile.getLevel(); + relatedFiles = svFile.getRelatedFiles(); redcapId.add(svFile.getId().getRedcapId()); if(shouldAdd(svFile.getAge())){ @@ -421,6 +426,14 @@ public void setRace(Set race) { this.race = race; } + public List getRelatedFiles() { + return this.relatedFiles; + } + + public void setRelatedFiles(List releatedFiles){ + this.relatedFiles = releatedFiles; + } + private boolean shouldAdd(String value) { if (value == null || value.isEmpty()) {