-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update cBioPortal to dynamically load ch Components only when propert…
…y clickhouse_enabled is set
- Loading branch information
Showing
14 changed files
with
255 additions
and
21 deletions.
There are no files selected for viewing
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
195 changes: 195 additions & 0 deletions
195
...main/java/org/cbioportal/persistence/mybatis/UnImplementedStudyViewMyBatisRepository.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,195 @@ | ||
package org.cbioportal.persistence.mybatis; | ||
|
||
import org.cbioportal.model.AlterationCountByGene; | ||
import org.cbioportal.model.CaseListDataCount; | ||
import org.cbioportal.model.ClinicalAttribute; | ||
import org.cbioportal.model.ClinicalData; | ||
import org.cbioportal.model.ClinicalDataCount; | ||
import org.cbioportal.model.ClinicalDataCountItem; | ||
import org.cbioportal.model.ClinicalEventTypeCount; | ||
import org.cbioportal.model.CopyNumberCountByGene; | ||
import org.cbioportal.model.GenericAssayDataCountItem; | ||
import org.cbioportal.model.GenomicDataCount; | ||
import org.cbioportal.model.GenomicDataCountItem; | ||
import org.cbioportal.model.MolecularProfile; | ||
import org.cbioportal.model.PatientTreatment; | ||
import org.cbioportal.model.Sample; | ||
import org.cbioportal.model.SampleTreatment; | ||
import org.cbioportal.model.StudyViewFilterContext; | ||
import org.cbioportal.persistence.StudyViewRepository; | ||
import org.cbioportal.utils.config.annotation.ConditionalOnProperty; | ||
import org.cbioportal.web.parameter.ClinicalDataType; | ||
import org.cbioportal.web.parameter.GenericAssayDataBinFilter; | ||
import org.cbioportal.web.parameter.GenericAssayDataFilter; | ||
import org.cbioportal.web.parameter.GenomicDataBinFilter; | ||
import org.cbioportal.web.parameter.GenomicDataFilter; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
import java.util.Set; | ||
|
||
@Repository | ||
@ConditionalOnProperty(name = "clickhouse_mode", havingValue = "false", matchIfMissing = true) | ||
public class UnImplementedStudyViewMyBatisRepository implements StudyViewRepository { | ||
@Override | ||
public List<Sample> getFilteredSamples(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<String> getFilteredStudyIds(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<ClinicalData> getSampleClinicalData(StudyViewFilterContext studyViewFilterContext, List<String> attributeIds) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<ClinicalData> getPatientClinicalData(StudyViewFilterContext studyViewFilterContext, List<String> attributeIds) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
|
||
} | ||
|
||
@Override | ||
public List<AlterationCountByGene> getMutatedGenes(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<AlterationCountByGene> getStructuralVariantGenes(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<CopyNumberCountByGene> getCnaGenes(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<ClinicalDataCountItem> getClinicalDataCounts(StudyViewFilterContext studyViewFilterContext, List<String> filteredAttributes) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<GenomicDataCount> getMolecularProfileSampleCounts(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public Map<String, ClinicalDataType> getClinicalAttributeDatatypeMap() { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<CaseListDataCount> getCaseListDataCountsPerStudy(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public Map<String, Integer> getTotalProfiledCounts(StudyViewFilterContext studyViewFilterContext, String alterationType, List<MolecularProfile> molecularProfiles) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<ClinicalAttribute> getClinicalAttributes() { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<ClinicalAttribute> getClinicalAttributesForStudies(List<String> studyIds) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public int getFilteredSamplesCount(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public int getFilteredPatientCount(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public Map<String, Set<String>> getMatchingGenePanelIds(StudyViewFilterContext studyViewFilterContext, String alterationType) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public int getTotalProfiledCountsByAlterationType(StudyViewFilterContext studyViewFilterContext, String alterationType) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public int getSampleProfileCountWithoutPanelData(StudyViewFilterContext studyViewFilterContext, String alterationType) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<ClinicalEventTypeCount> getClinicalEventTypeCounts(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<PatientTreatment> getPatientTreatments(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public int getTotalPatientTreatmentCount(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<SampleTreatment> getSampleTreatments(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public int getTotalSampleTreatmentCount(StudyViewFilterContext studyViewFilterContext) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<GenomicDataCountItem> getCNACounts(StudyViewFilterContext studyViewFilterContext, List<GenomicDataFilter> genomicDataFilters) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<GenericAssayDataCountItem> getGenericAssayDataCounts(StudyViewFilterContext studyViewFilterContext, List<GenericAssayDataFilter> genericAssayDataFilters) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public Map<String, Integer> getMutationCounts(StudyViewFilterContext studyViewFilterContext, GenomicDataFilter genomicDataFilter) { | ||
throw new UnsupportedOperationException("StudyViewRepository Feature Not supported... Contact cbio admin."); | ||
} | ||
|
||
@Override | ||
public List<GenomicDataCountItem> getMutationCountsByType(StudyViewFilterContext studyViewFilterContext, List<GenomicDataFilter> genomicDataFilters) { | ||
return List.of(); | ||
} | ||
|
||
@Override | ||
public List<ClinicalDataCount> getGenomicDataBinCounts(StudyViewFilterContext studyViewFilterContext, List<GenomicDataBinFilter> genomicDataBinFilters) { | ||
return List.of(); | ||
} | ||
|
||
@Override | ||
public List<ClinicalDataCount> getGenericAssayDataBinCounts(StudyViewFilterContext studyViewFilterContext, List<GenericAssayDataBinFilter> genericAssayDataBinFilters) { | ||
return List.of(); | ||
} | ||
|
||
@Override | ||
public List<MolecularProfile> getGenericAssayProfiles() { | ||
return List.of(); | ||
} | ||
|
||
@Override | ||
public List<MolecularProfile> getFilteredMolecularProfilesByAlterationType(StudyViewFilterContext studyViewFilterContext, String alterationType) { | ||
return List.of(); | ||
} | ||
} |
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
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.