/** * Returns a list of {@link org.phenotips.vocabularies.rest.model.Vocabulary} for a category with provided * {@code categoryId}. * * @param categoryId an identifier for a vocabulary category * @return a list of {@link org.phenotips.vocabularies.rest.model.Vocabulary} associated with {@code categoryId} */ private List<org.phenotips.vocabularies.rest.model.Vocabulary> getVocabulariesForCategory(final String categoryId) { final Set<Vocabulary> vocabularies = this.vm.getVocabularies(categoryId); return this.objectFactory.createVocabulariesRepresentation(vocabularies, getVocabularyLinks(), null); }
/** * Returns a list of {@link org.phenotips.vocabularies.rest.model.Vocabulary} for a category with provided * {@code categoryId}. * * @param categoryId an identifier for a vocabulary category * @return a list of {@link org.phenotips.vocabularies.rest.model.Vocabulary} associated with {@code categoryId} */ private List<org.phenotips.vocabularies.rest.model.Vocabulary> getVocabulariesForCategory(final String categoryId) { final Set<Vocabulary> vocabularies = this.vm.getVocabularies(categoryId); return this.objectFactory.createVocabulariesRepresentation(vocabularies, getVocabularyLinks(), null); }