@Test public void getAllCategories() throws Exception{ response.addEntityDetails(Arrays.asList(categories.get(0), categories.get(1), categories.get(2))); when(connector.callGetRESTCall(eq("getAllCategories"), eq(GlossaryViewEntityDetailResponse.class), anyString(), eq(SERVER_NAME), eq(USER_ID), anyInt(), anyInt())).thenReturn(response); List<GlossaryCategory> categories = underTest.getAllCategories(USER_ID, 0, 10); assertEquals(3, categories.size()); }
public List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size) throws PropertyServerException, InvalidParameterException, GlossaryViewOmasException { GlossaryViewEntityDetailResponse response = getMultipleEntitiesPagedResponse("getAllCategories", GET_CATEGORIES, serverName, userId, from, size); return castOmasResult(response.getResult()); }
GlossaryViewClient extends OmasClient { public List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size) throws PropertyServerException, InvalidParameterException, GlossaryViewOmasException { GlossaryViewEntityDetailResponse response = getMultipleEntitiesPagedResponse("getAllCategories", GET_CATEGORIES, serverName, userId, from, size); return castOmasResult(response.getResult()); } }
GlossaryViewClient extends OmasClient { public List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size) throws PropertyServerException, InvalidParameterException, GlossaryViewOmasException { GlossaryViewEntityDetailResponse response = getMultipleEntitiesPagedResponse("getAllCategories", GET_CATEGORIES, serverName, userId, from, size); return castOmasResult(response.getResult()); } GlossaryViewClient(String serverName, String serverPlatformRootURL);  GlossaryViewClient(String serverName, String serverPlatformRootURL, String userId, String password); }
GlossaryViewClient extends OmasClient { public List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size) throws PropertyServerException, InvalidParameterException, GlossaryViewOmasException { GlossaryViewEntityDetailResponse response = getMultipleEntitiesPagedResponse("getAllCategories", GET_CATEGORIES, serverName, userId, from, size); return castOmasResult(response.getResult()); } GlossaryViewClient(String serverName, String serverPlatformRootURL);  GlossaryViewClient(String serverName, String serverPlatformRootURL, String userId, String password); List<Glossary> getAllGlossaries(String userId, Integer from, Integer size); List<GlossaryTerm> getAllGlossaryTerms(String userId, Integer from, Integer size); List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size); Glossary getGlossary(String userId, String glossaryGUID); Glossary getTermHomeGlossary(String userId, String termGUID); Glossary getCategoryHomeGlossary(String userId, String categoryGUID); List<ExternalGlossaryLink> getExternalGlossaryLinksOfGlossary(String userId, String glossaryGUID, Integer from, Integer size); GlossaryCategory getCategory(String userId, String categoryGUID); List<GlossaryCategory> getCategories(String userId, String glossaryGUID, Integer from, Integer size); List<GlossaryCategory> getSubcategories(String userId, String categoryGUID, Integer from, Integer size); List<ExternalGlossaryLink> getExternalGlossaryLinksOfCategory(String userId, String categoryGUID, Integer from, Integer size); GlossaryTerm getTerm(String userId, String termGUID); List<GlossaryTerm> getTermsOfGlossary(String userId, String glossaryGUID, Integer from, Integer size); List<GlossaryTerm> getTermsOfCategory(String userId, String categoryGUID, Integer from, Integer size); List<ExternalGlossaryLink> getExternalGlossaryLinksOfTerm(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getRelatedTerms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getSynonyms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getAntonyms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getPreferredTerms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getReplacementTerms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getTranslations(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getIsA(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getValidValues(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getUsedInContexts(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getAssignedElements(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getAttributes(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getSubtypes(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getTypes(String userId, String termGUID, Integer from, Integer size); }
GlossaryViewClient extends OmasClient { public List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size) throws PropertyServerException, InvalidParameterException, GlossaryViewOmasException { GlossaryViewEntityDetailResponse response = getMultipleEntitiesPagedResponse("getAllCategories", GET_CATEGORIES, serverName, userId, from, size); return castOmasResult(response.getResult()); } GlossaryViewClient(String serverName, String serverPlatformRootURL);  GlossaryViewClient(String serverName, String serverPlatformRootURL, String userId, String password); List<Glossary> getAllGlossaries(String userId, Integer from, Integer size); List<GlossaryTerm> getAllGlossaryTerms(String userId, Integer from, Integer size); List<GlossaryCategory> getAllCategories(String userId, Integer from, Integer size); Glossary getGlossary(String userId, String glossaryGUID); Glossary getTermHomeGlossary(String userId, String termGUID); Glossary getCategoryHomeGlossary(String userId, String categoryGUID); List<ExternalGlossaryLink> getExternalGlossaryLinksOfGlossary(String userId, String glossaryGUID, Integer from, Integer size); GlossaryCategory getCategory(String userId, String categoryGUID); List<GlossaryCategory> getCategories(String userId, String glossaryGUID, Integer from, Integer size); List<GlossaryCategory> getSubcategories(String userId, String categoryGUID, Integer from, Integer size); List<ExternalGlossaryLink> getExternalGlossaryLinksOfCategory(String userId, String categoryGUID, Integer from, Integer size); GlossaryTerm getTerm(String userId, String termGUID); List<GlossaryTerm> getTermsOfGlossary(String userId, String glossaryGUID, Integer from, Integer size); List<GlossaryTerm> getTermsOfCategory(String userId, String categoryGUID, Integer from, Integer size); List<ExternalGlossaryLink> getExternalGlossaryLinksOfTerm(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getRelatedTerms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getSynonyms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getAntonyms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getPreferredTerms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getReplacementTerms(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getTranslations(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getIsA(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getValidValues(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getUsedInContexts(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getAssignedElements(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getAttributes(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getSubtypes(String userId, String termGUID, Integer from, Integer size); List<GlossaryTerm> getTypes(String userId, String termGUID, Integer from, Integer size);  }