@Test public void getVocabularyValid() { final org.phenotips.vocabularies.rest.model.Vocabulary vocabulary = this.component.getVocabulary(HPO_ID); Assert.assertEquals(this.hpoRestVocab, vocabulary); }
@Override public org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId) { Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return this.objectFactory.createLinkedVocabularyRepresentation(vocabulary, getVocabularyLinks(), this::getCategoriesForVocabulary); }
DefaultVocabularyResource extends XWikiResource implements VocabularyResource { @Override public org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId) { Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return this.objectFactory.createLinkedVocabularyRepresentation(vocabulary, getVocabularyLinks(), this::getCategoriesForVocabulary); } }
DefaultVocabularyResource extends XWikiResource implements VocabularyResource { @Override public org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId) { Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return this.objectFactory.createLinkedVocabularyRepresentation(vocabulary, getVocabularyLinks(), this::getCategoriesForVocabulary); }  }
DefaultVocabularyResource extends XWikiResource implements VocabularyResource { @Override public org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId) { Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return this.objectFactory.createLinkedVocabularyRepresentation(vocabulary, getVocabularyLinks(), this::getCategoriesForVocabulary); }  @Override org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId); @Override Response reindex(String vocabularyId, String url); }
DefaultVocabularyResource extends XWikiResource implements VocabularyResource { @Override public org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId) { Vocabulary vocabulary = this.vm.getVocabulary(vocabularyId); if (vocabulary == null) { throw new WebApplicationException(Response.Status.NOT_FOUND); } return this.objectFactory.createLinkedVocabularyRepresentation(vocabulary, getVocabularyLinks(), this::getCategoriesForVocabulary); }  @Override org.phenotips.vocabularies.rest.model.Vocabulary getVocabulary(String vocabularyId); @Override Response reindex(String vocabularyId, String url);  }