@Override public boolean putAll(final K key, final Iterable<? extends V> values) { return decorated().putAll(key, values); }
@Override public boolean putAll(final MultiValuedMap<? extends K, ? extends V> map) { return decorated().putAll(map); }
@Override public boolean putAll(final Map<? extends K, ? extends V> map) { return decorated().putAll(map); }
@Override protected void processCSVRecordRow(@Nonnull final CSVRecord row, @Nonnull final Vocabulary vocabulary) { // The annotation source file contains data for several disorder databases. Only want to look at data that is // relevant for the current vocabulary. final String dbName = getRowItem(row, VOCABULARY_ID_COLUMN); if (StringUtils.isNotBlank(dbName)) { String diseaseId = getRowItem(row, TERM_ID_COLUMN); final String symptomId = getRowItem(row, PHENOTYPE_COLUMN); if (StringUtils.isNotBlank(diseaseId) && StringUtils.isNotBlank(symptomId)) { diseaseId = vocabularyIdToTermPrefix(dbName) + diseaseId; MultiValuedMap<String, String> termData = this.data.get(diseaseId); if (termData == null) { termData = new HashSetValuedHashMap<>(); this.data.put(diseaseId, termData); } termData.put(getDirectPhenotypesLabel(), symptomId); termData.putAll(getAllAncestorPhenotypesLabel(), getSelfAndAncestorTermIds(symptomId)); } } }
@Override protected void processCSVRecordRow(@Nonnull final CSVRecord row, @Nonnull final Vocabulary vocabulary) { // The annotation source file contains data for several disorder databases. Only want to look at data that is // relevant for the current vocabulary. final String dbName = getRowItem(row, VOCABULARY_ID_COLUMN); if (StringUtils.isNotBlank(dbName)) { String diseaseId = getRowItem(row, TERM_ID_COLUMN); final String symptomId = getRowItem(row, PHENOTYPE_COLUMN); if (StringUtils.isNotBlank(diseaseId) && StringUtils.isNotBlank(symptomId)) { diseaseId = vocabularyIdToTermPrefix(dbName) + diseaseId; MultiValuedMap<String, String> termData = this.data.get(diseaseId); if (termData == null) { termData = new HashSetValuedHashMap<>(); this.data.put(diseaseId, termData); } termData.put(getDirectPhenotypesLabel(), symptomId); termData.putAll(getAllAncestorPhenotypesLabel(), getSelfAndAncestorTermIds(symptomId)); } } }
@Override public void setActiveRecommenders(User aUser, AnnotationLayer aLayer, List<Recommender> aRecommenders) { RecommendationState state = getState(aUser.getUsername(), aLayer.getProject()); synchronized (state) { MultiValuedMap<AnnotationLayer, Recommender> activeRecommenders = state .getActiveRecommenders(); activeRecommenders.remove(aLayer); activeRecommenders.putAll(aLayer, aRecommenders); } }