-
Notifications
You must be signed in to change notification settings - Fork 437
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10407 from cBioPortal/demo-fix-clinical-table-sor…
…ting Refactor sort/search/pagination for ClinicalData table endpoint
- Loading branch information
Showing
44 changed files
with
1,019 additions
and
448 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
src/main/java/org/cbioportal/model/ClinicalDataCollection.java
This file was deleted.
Oops, something went wrong.
36 changes: 36 additions & 0 deletions
36
src/main/java/org/cbioportal/model/SampleClinicalDataCollection.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
package org.cbioportal.model; | ||
|
||
import java.util.Collections; | ||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
|
||
public final class SampleClinicalDataCollection { | ||
|
||
private final Map<String, List<ClinicalData>> byUniqueSampleKey; | ||
|
||
private SampleClinicalDataCollection(Builder builder) { | ||
this.byUniqueSampleKey = Collections.unmodifiableMap(new HashMap<>(builder.byUniqueSampleKey)); | ||
} | ||
|
||
public Map<String, List<ClinicalData>> getByUniqueSampleKey() { | ||
return byUniqueSampleKey; | ||
} | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
public static class Builder { | ||
private final Map<String, List<ClinicalData>> byUniqueSampleKey = new HashMap<>(); | ||
|
||
public Builder withByUniqueSampleKey(Map<String, List<ClinicalData>> byUniqueSampleKey) { | ||
this.byUniqueSampleKey.putAll(byUniqueSampleKey); | ||
return this; | ||
} | ||
|
||
public SampleClinicalDataCollection build() { | ||
return new SampleClinicalDataCollection(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.