Skip to content

Commit

Permalink
add related Files list
Browse files Browse the repository at this point in the history
  • Loading branch information
Dert1129 committed Nov 8, 2024
1 parent a81c587 commit 1a4901f
Showing 1 changed file with 13 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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 {
Expand All @@ -15,6 +18,7 @@ public class SpatialViewerDatasetDisplay {
private String spectrackSampleId;
private String level;
private String releaseVersion;
private List<File> relatedFiles;
private Set<String> redcapId;
private Set<String> age;
private Set<String> protocol;
Expand Down Expand Up @@ -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())){
Expand Down Expand Up @@ -421,6 +426,14 @@ public void setRace(Set<String> race) {
this.race = race;
}

public List<File> getRelatedFiles() {
return this.relatedFiles;
}

public void setRelatedFiles(List<File> releatedFiles){
this.relatedFiles = releatedFiles;
}


private boolean shouldAdd(String value) {
if (value == null || value.isEmpty()) {
Expand Down

0 comments on commit 1a4901f

Please sign in to comment.