Class GlossaryViewController
- java.lang.Object
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.api.SecureController
-
- org.odpi.openmetadata.userinterface.uichassis.springboot.api.glossary.GlossaryViewController
-
@RestController @RequestMapping("/api/glossaries") public class GlossaryViewController extends SecureControllerThis controller serves all requests for glossaries, categories and terms.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.api.SecureController
PAGE_OFFSET_DEFAULT_VALUE, PAGE_SIZE_DEFAULT_VALUE
-
-
Constructor Summary
Constructors Constructor Description GlossaryViewController()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<Glossary>getAllGlossaries(Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryCategory>getAllGlossaryCategories(Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getAllGlossaryTerms(Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getAntonyms(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)GlossaryTermgetAntonyms(String termGUID, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getAssignedElements(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getAttributes(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryCategory>getCategories(String glossaryGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)GlossaryCategorygetCategory(String categoryGUID, javax.servlet.http.HttpServletRequest request)GlossarygetCategoryHomeGlossary(String categoryGUID, javax.servlet.http.HttpServletRequest request)List<ExternalGlossaryLink>getExternalGlossaryLinks(String categoryGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<ExternalGlossaryLink>getExternalGlossaryLinksOfGlossary(String glossaryGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<ExternalGlossaryLink>getExternalGlossaryLinksOfTerm(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)GlossarygetGlossary(String glossaryGUID, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getIsATerms(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getPreferredTerms(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getRelatedTerms(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getReplacementTerms(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryCategory>getSubcategories(String categoryGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getSubtypes(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getSynonyms(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)GlossarygetSynonyms(String termGUID, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getTermsOfCategory(String categoryGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getTermsOfGlossary(String glossaryGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getTranslations(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getTypes(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getUsedInContexts(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)List<GlossaryTerm>getValidValues(String termGUID, Integer from, Integer size, javax.servlet.http.HttpServletRequest request)-
Methods inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.api.SecureController
getUser
-
-
-
-
Method Detail
-
getAllGlossaries
@GetMapping public List<Glossary> getAllGlossaries(@RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException
- Parameters:
from- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- all the glossaries
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getAllGlossaryTerms
@GetMapping("/terms") public List<GlossaryTerm> getAllGlossaryTerms(@RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
from- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- all the glossary terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getAllGlossaryCategories
@GetMapping("/categories") public List<GlossaryCategory> getAllGlossaryCategories(@RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
from- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- all the glossary categories
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getGlossary
@GetMapping("/{glossaryGUID}") public Glossary getGlossary(@PathVariable("glossaryGUID") String glossaryGUID, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
glossaryGUID- GUID of the glossary to be retrievedrequest- the http servlet request- Returns:
- the glossary with the GUID or null
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getCategories
@GetMapping("/{glossaryGUID}/categories") public List<GlossaryCategory> getCategories(@PathVariable("glossaryGUID") String glossaryGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
glossaryGUID- GUID of the glossaryfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of categories
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getTermsOfGlossary
@GetMapping("/{glossaryGUID}/terms") public List<GlossaryTerm> getTermsOfGlossary(@PathVariable("glossaryGUID") String glossaryGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
glossaryGUID- GUID of the glossaryfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getExternalGlossaryLinksOfGlossary
@GetMapping("/{glossaryGUID}/externalGlossaryLinks") public List<ExternalGlossaryLink> getExternalGlossaryLinksOfGlossary(@PathVariable("glossaryGUID") String glossaryGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
glossaryGUID- GUID of the glossaryfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of external glossary links
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getAntonyms
@GetMapping("/terms/{termGUID}") public GlossaryTerm getAntonyms(@PathVariable("termGUID") String termGUID, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termrequest- the http servlet request- Returns:
- the term with the GUID
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getAntonyms
@GetMapping("/terms/{termGUID}/antonyms") public List<GlossaryTerm> getAntonyms(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of antonyms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getAssignedElements
@GetMapping("/terms/{termGUID}/assignedElements") public List<GlossaryTerm> getAssignedElements(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of terms representing the assigned elements
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getAttributes
@GetMapping("/terms/{termGUID}/attributes") public List<GlossaryTerm> getAttributes(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of terms representing the antonyms of the term with GUID
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getIsATerms
@GetMapping("/terms/{termGUID}/isA") public List<GlossaryTerm> getIsATerms(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of is-a terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getPreferredTerms
@GetMapping("/terms/{termGUID}/preferredTerms") public List<GlossaryTerm> getPreferredTerms(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of preferred terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getRelatedTerms
@GetMapping("/terms/{termGUID}/relatedTerms") public List<GlossaryTerm> getRelatedTerms(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of related terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getReplacementTerms
@GetMapping("/terms/{termGUID}/replacementTerms") public List<GlossaryTerm> getReplacementTerms(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of replacement terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getSubtypes
@GetMapping("/terms/{termGUID}/subtypes") public List<GlossaryTerm> getSubtypes(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of subtypes terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getSynonyms
@GetMapping("/terms/{termGUID}/synonyms") public List<GlossaryTerm> getSynonyms(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of synonym terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getTranslations
@GetMapping("/terms/{termGUID}/translations") public List<GlossaryTerm> getTranslations(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of translations terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getTypes
@GetMapping("/terms/{termGUID}/types") public List<GlossaryTerm> getTypes(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of preferred terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getUsedInContexts
@GetMapping("/terms/{termGUID}/usedInContext") public List<GlossaryTerm> getUsedInContexts(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of "used-in-contexts" terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getValidValues
@GetMapping("/terms/{termGUID}/validValues") public List<GlossaryTerm> getValidValues(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list valid values terms
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getSynonyms
@GetMapping("/terms/{termGUID}/homeGlossary") public Glossary getSynonyms(@PathVariable("termGUID") String termGUID, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termrequest- the http servlet request- Returns:
- term's home glossary
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getExternalGlossaryLinksOfTerm
@GetMapping("/terms/{termGUID}/externalGlossaryLinks") public List<ExternalGlossaryLink> getExternalGlossaryLinksOfTerm(@PathVariable("termGUID") String termGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
termGUID- GUID of the termfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of term's external glossary links
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getCategory
@GetMapping("/categories/{categoryGUID}") public GlossaryCategory getCategory(@PathVariable("categoryGUID") String categoryGUID, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
categoryGUID- GUID of the category to be retrievedrequest- the http servlet request- Returns:
- the glossary category with the GUID or null
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getCategoryHomeGlossary
@GetMapping("/categories/{categoryGUID}/homeGlossary") public Glossary getCategoryHomeGlossary(@PathVariable("categoryGUID") String categoryGUID, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
categoryGUID- GUID of the categoryrequest- the http servlet request- Returns:
- the home glossary of the category
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getSubcategories
@GetMapping("/categories/{categoryGUID}/subcategories") public List<GlossaryCategory> getSubcategories(@PathVariable("categoryGUID") String categoryGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
categoryGUID- GUID of the categoryfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- the home glossary of the category
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getTermsOfCategory
@GetMapping("/categories/{categoryGUID}/terms") public List<GlossaryTerm> getTermsOfCategory(@PathVariable("categoryGUID") String categoryGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
categoryGUID- GUID of the catgitegoryfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of terms corresponding to the category
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
getExternalGlossaryLinks
@GetMapping("/categories/{categoryGUID}/externalGlossaryLinks") public List<ExternalGlossaryLink> getExternalGlossaryLinks(@PathVariable("categoryGUID") String categoryGUID, @RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size, javax.servlet.http.HttpServletRequest request) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException- Parameters:
categoryGUID- GUID of the categoryfrom- the index from witch the results to start, used for paginationsize- number of results returned, used for paginationrequest- the http servlet request- Returns:
- list of a category's external glossary links
- Throws:
PropertyServerException- if a problem occurs while serving the requestInvalidParameterException- if parameter validation failsGlossaryViewOmasException- if a problem occurs on the omas backend
-
-