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 SecureController
This 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 -
Method Summary
Modifier and TypeMethodDescriptiongetAllGlossaries
(Integer from, Integer size) getAllGlossaryCategories
(Integer from, Integer size) getAllGlossaryTerms
(Integer from, Integer size) getAntonyms
(String termGUID) getAntonyms
(String termGUID, Integer from, Integer size) getAssignedElements
(String termGUID, Integer from, Integer size) getAttributes
(String termGUID, Integer from, Integer size) getCategories
(String glossaryGUID, Integer from, Integer size) getCategory
(String categoryGUID, jakarta.servlet.http.HttpServletRequest request) getCategoryHomeGlossary
(String categoryGUID) getExternalGlossaryLinks
(String categoryGUID, Integer from, Integer size) getExternalGlossaryLinksOfGlossary
(String glossaryGUID, Integer from, Integer size) getExternalGlossaryLinksOfTerm
(String termGUID, Integer from, Integer size) getGlossary
(String glossaryGUID) getIsATerms
(String termGUID, Integer from, Integer size) getPreferredTerms
(String termGUID, Integer from, Integer size) getRelatedTerms
(String termGUID, Integer from, Integer size) getReplacementTerms
(String termGUID, Integer from, Integer size) getSubcategories
(String categoryGUID, Integer from, Integer size) getSubtypes
(String termGUID, Integer from, Integer size) getSynonyms
(String termGUID) getSynonyms
(String termGUID, Integer from, Integer size) getTermsOfCategory
(String categoryGUID, Integer from, Integer size) getTermsOfGlossary
(String glossaryGUID, Integer from, Integer size) getTranslations
(String termGUID, Integer from, Integer size) getUsedInContexts
(String termGUID, Integer from, Integer size) getValidValues
(String termGUID, Integer from, Integer size) Methods inherited from class org.odpi.openmetadata.userinterface.uichassis.springboot.api.SecureController
getUser
-
Constructor Details
-
GlossaryViewController
public GlossaryViewController()
-
-
Method Details
-
getAllGlossaries
@GetMapping public List<Glossary> getAllGlossaries(@RequestParam(defaultValue="0") Integer from, @RequestParam(defaultValue="100") Integer size) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
from
- the index from witch the results to start, used for paginationsize
- number of results returned, used for pagination- 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) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
from
- the index from witch the results to start, used for paginationsize
- number of results returned, used for pagination- 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) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
from
- the index from witch the results to start, used for paginationsize
- number of results returned, used for pagination- 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) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
glossaryGUID
- GUID of the glossary to be retrieved- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
termGUID
- GUID of the term- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
termGUID
- GUID of the term- 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) 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 pagination- 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, jakarta.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) throws GlossaryViewOmasException, InvalidParameterException, PropertyServerException - Parameters:
categoryGUID
- GUID of the category- 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) 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 pagination- 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) 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 pagination- 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) 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 pagination- 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
-