Class GlossaryManagerResource
java.lang.Object
org.odpi.openmetadata.viewservices.glossarymanager.server.spring.GlossaryManagerResource
@RestController
@RequestMapping("/servers/{serverName}/api/open-metadata/glossary-manager")
public class GlossaryManagerResource
extends Object
The GlossaryManagerResource provides the Spring API endpoints of the Glossary Manager Open Metadata View Service (OMVS).
This interface provides a service for Egeria UIs.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclearGlossaryAsCanonical
(String serverName, String glossaryGUID, MetadataSourceRequestBody requestBody) Remove the canonical vocabulary designation from the glossary.clearGlossaryAsTaxonomy
(String serverName, String glossaryGUID, MetadataSourceRequestBody requestBody) Remove the taxonomy designation from the glossary.clearTermAsAbstractConcept
(String serverName, String glossaryTermGUID, MetadataSourceRequestBody requestBody) Remove the abstract concept designation from the glossary term.clearTermAsActivity
(String serverName, String glossaryTermGUID, MetadataSourceRequestBody requestBody) Remove the activity designation from the glossary term.clearTermAsContext
(String serverName, String glossaryTermGUID, MetadataSourceRequestBody requestBody) Remove the context definition designation from the glossary term.clearTermAsDataValue
(String serverName, String glossaryTermGUID, MetadataSourceRequestBody requestBody) Remove the data value designation from the glossary term.clearTermRelationship
(String serverName, String glossaryTermOneGUID, String relationshipTypeName, String glossaryTermTwoGUID, DeleteRequestBody requestBody) Remove the relationship between two terms.createGlossaryTerm
(String serverName, NewElementRequestBody requestBody) Create a new metadata element to represent a glossary term.createGlossaryTermFromTemplate
(String serverName, String templateGUID, TemplateRequestBody requestBody) Create a new metadata element to represent a glossary term using an existing metadata element as a template.deleteGlossaryTerm
(String serverName, String glossaryTermGUID, DeleteRequestBody requestBody) Remove the metadata element representing a glossary term.findGlossaryTerms
(String serverName, SearchStringRequestBody requestBody) Retrieve the list of glossary term metadata elements that contain the search string.getGlossaryTermActivityTypes
(String serverName) Return the list of glossary term relationship status enum values.getGlossaryTermByGUID
(String serverName, String glossaryTermGUID, GetRequestBody requestBody) Retrieve the glossary term metadata element with the supplied unique identifier.getGlossaryTermRelationshipStatuses
(String serverName) Return the list of glossary term relationship status enum values.getGlossaryTermsByName
(String serverName, FilterRequestBody requestBody) Retrieve the list of glossary term metadata elements with a matching qualified or display name.getGlossaryTermStatuses
(String serverName) Return the list of glossary term status enum values.getTermRelationshipTypeNames
(String serverName) Return the list of term-to-term relationship names.moveGlossaryTerm
(String serverName, String glossaryTermGUID, String glossaryGUID, DeleteRequestBody requestBody) Move the glossary term from one glossary to another.setGlossaryAsCanonical
(String serverName, String glossaryGUID, NewClassificationRequestBody requestBody) Classify a glossary to declare that it has no two GlossaryTerm definitions with the same name.setGlossaryAsTaxonomy
(String serverName, String glossaryGUID, NewClassificationRequestBody requestBody) Classify the glossary to indicate that it can be used as a taxonomy.setTermAsAbstractConcept
(String serverName, String glossaryTermGUID, NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes an abstract concept.setTermAsActivity
(String serverName, String glossaryTermGUID, NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes a data value.setTermAsContext
(String serverName, String glossaryTermGUID, NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes a context.setTermAsDataValue
(String serverName, String glossaryTermGUID, NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes a data value.setupTermRelationship
(String serverName, String glossaryTermOneGUID, String relationshipTypeName, String glossaryTermTwoGUID, NewRelationshipRequestBody requestBody) Link two terms together using a specialist relationship.updateGlossaryTerm
(String serverName, String glossaryTermGUID, UpdateElementRequestBody requestBody) Update the metadata element representing a glossary term.updateGlossaryTermFromTemplate
(String serverName, String glossaryTermGUID, String templateGUID, UpdateWithTemplateRequestBody requestBody) Update the glossary term using the properties and classifications from the parentGUID stored in the request body.updateTermRelationship
(String serverName, String glossaryTermOneGUID, String relationshipTypeName, String glossaryTermTwoGUID, UpdateRelationshipRequestBody requestBody) Update the relationship properties for the two terms.
-
Constructor Details
-
GlossaryManagerResource
public GlossaryManagerResource()Default constructor
-
-
Method Details
-
setGlossaryAsTaxonomy
@PostMapping(path="/glossaries/{glossaryGUID}/is-taxonomy") public VoidResponse setGlossaryAsTaxonomy(@PathVariable String serverName, @PathVariable String glossaryGUID, @RequestBody NewClassificationRequestBody requestBody) Classify the glossary to indicate that it can be used as a taxonomy. This means each term is attached to one, and only one folder and the folders are organized as a hierarchy with a single root folder. Taxonomies are used as a way of organizing assets and other related metadata. The terms in the taxonomy are linked to the assets etc. and as such they are logically categorized by the linked folder.- Parameters:
serverName
- name of the server to route the request toglossaryGUID
- unique identifier of the metadata element to removerequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearGlossaryAsTaxonomy
@PostMapping(path="/glossaries/{glossaryGUID}/is-taxonomy/remove") public VoidResponse clearGlossaryAsTaxonomy(@PathVariable String serverName, @PathVariable String glossaryGUID, @RequestBody(required=false) MetadataSourceRequestBody requestBody) Remove the taxonomy designation from the glossary.- Parameters:
serverName
- name of the server to route the request toglossaryGUID
- unique identifier of the metadata element to removerequestBody
- correlation properties for the external asset manager- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setGlossaryAsCanonical
@PostMapping(path="/glossaries/{glossaryGUID}/is-canonical-vocabulary") public VoidResponse setGlossaryAsCanonical(@PathVariable String serverName, @PathVariable String glossaryGUID, @RequestBody NewClassificationRequestBody requestBody) Classify a glossary to declare that it has no two GlossaryTerm definitions with the same name. This means there is only one definition for each term. Typically, the terms are also of a similar level of granularity and are limited to a specific scope of use. Canonical vocabularies are used to semantically classify assets in an unambiguous way.- Parameters:
serverName
- name of the server to route the request toglossaryGUID
- unique identifier of the metadata element to removerequestBody
- description of the situations where this glossary is relevant.- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearGlossaryAsCanonical
@PostMapping(path="/glossaries/{glossaryGUID}/is-canonical-vocabulary/remove") public VoidResponse clearGlossaryAsCanonical(@PathVariable String serverName, @PathVariable String glossaryGUID, @RequestBody(required=false) MetadataSourceRequestBody requestBody) Remove the canonical vocabulary designation from the glossary.- Parameters:
serverName
- name of the server to route the request toglossaryGUID
- unique identifier of the metadata element to removerequestBody
- correlation properties for the external asset manager- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getGlossaryTermStatuses
@GetMapping(path="/glossaries/terms/status-list") public GlossaryTermStatusListResponse getGlossaryTermStatuses(@PathVariable String serverName) Return the list of glossary term status enum values.- Parameters:
serverName
- name of the server to route the request to- Returns:
- list of enum values
-
getGlossaryTermRelationshipStatuses
@GetMapping(path="/glossaries/terms/relationships/status-list") public GlossaryTermRelationshipStatusListResponse getGlossaryTermRelationshipStatuses(@PathVariable String serverName) Return the list of glossary term relationship status enum values.- Parameters:
serverName
- name of the server to route the request to- Returns:
- list of enum values
-
getGlossaryTermActivityTypes
@GetMapping(path="/glossaries/terms/activity-types") public GlossaryTermActivityTypeListResponse getGlossaryTermActivityTypes(@PathVariable String serverName) Return the list of glossary term relationship status enum values.- Parameters:
serverName
- name of the server to route the request to- Returns:
- list of enum values
-
createGlossaryTerm
@PostMapping(path="/glossaries/terms") public GUIDResponse createGlossaryTerm(@PathVariable String serverName, @RequestBody NewElementRequestBody requestBody) Create a new metadata element to represent a glossary term.- Parameters:
serverName
- name of the server to route the request torequestBody
- properties that override the template- Returns:
- unique identifier of the new metadata element for the glossary term or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
createGlossaryTermFromTemplate
@PostMapping(path="/glossaries/terms/from-template/{templateGUID}") public GUIDResponse createGlossaryTermFromTemplate(@PathVariable String serverName, @PathVariable String templateGUID, @RequestBody TemplateRequestBody requestBody) Create a new metadata element to represent a glossary term using an existing metadata element as a template.- Parameters:
serverName
- name of the server to route the request totemplateGUID
- unique identifier of the metadata element to copyrequestBody
- properties that override the template- Returns:
- unique identifier of the new metadata element for the glossary term or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateGlossaryTerm
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/update") public VoidResponse updateGlossaryTerm(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody UpdateElementRequestBody requestBody) Update the metadata element representing a glossary term.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the glossary term to updaterequestBody
- new properties for the glossary term- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateGlossaryTermFromTemplate
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/update/from-template/{templateGUID}") public VoidResponse updateGlossaryTermFromTemplate(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @PathVariable String templateGUID, @RequestBody UpdateWithTemplateRequestBody requestBody) Update the glossary term using the properties and classifications from the parentGUID stored in the request body.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the glossary term to updatetemplateGUID
- template to userequestBody
- status and correlation properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
moveGlossaryTerm
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/move-to/{glossaryGUID}") public VoidResponse moveGlossaryTerm(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @PathVariable String glossaryGUID, @RequestBody DeleteRequestBody requestBody) Move the glossary term from one glossary to another.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the glossary term to updateglossaryGUID
- unique identifier of the destination glossaryrequestBody
- status and correlation properties- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getTermRelationshipTypeNames
@GetMapping(path="/glossaries/terms/relationships/type-names") public NameListResponse getTermRelationshipTypeNames(@PathVariable String serverName) Return the list of term-to-term relationship names.- Parameters:
serverName
- name of the server instance to connect to- Returns:
- list of type names that are subtypes of asset or throws InvalidParameterException full path or userId is null or throws PropertyServerException problem accessing property server or throws UserNotAuthorizedException security access problem.
-
setupTermRelationship
@PostMapping(path="/glossaries/terms/{glossaryTermOneGUID}/relationships/{relationshipTypeName}/terms/{glossaryTermTwoGUID}") public VoidResponse setupTermRelationship(@PathVariable String serverName, @PathVariable String glossaryTermOneGUID, @PathVariable String relationshipTypeName, @PathVariable String glossaryTermTwoGUID, @RequestBody(required=false) NewRelationshipRequestBody requestBody) Link two terms together using a specialist relationship.- Parameters:
serverName
- name of the server to route the request torelationshipTypeName
- name of the type of relationship to createglossaryTermOneGUID
- unique identifier of the glossary term at end 1glossaryTermTwoGUID
- unique identifier of the glossary term at end 2requestBody
- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
updateTermRelationship
@PostMapping(path="/glossaries/terms/{glossaryTermOneGUID}/relationships/{relationshipTypeName}/terms/{glossaryTermTwoGUID}/update") public VoidResponse updateTermRelationship(@PathVariable String serverName, @PathVariable String glossaryTermOneGUID, @PathVariable String relationshipTypeName, @PathVariable String glossaryTermTwoGUID, @RequestBody UpdateRelationshipRequestBody requestBody) Update the relationship properties for the two terms.- Parameters:
serverName
- name of the server to route the request torelationshipTypeName
- name of the type of relationship to createglossaryTermOneGUID
- unique identifier of the glossary term at end 1glossaryTermTwoGUID
- unique identifier of the glossary term at end 2requestBody
- properties for the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearTermRelationship
@PostMapping(path="/glossaries/terms/{glossaryTermOneGUID}/relationships/{relationshipTypeName}/terms/{glossaryTermTwoGUID}/remove") public VoidResponse clearTermRelationship(@PathVariable String serverName, @PathVariable String glossaryTermOneGUID, @PathVariable String relationshipTypeName, @PathVariable String glossaryTermTwoGUID, @RequestBody(required=false) DeleteRequestBody requestBody) Remove the relationship between two terms.- Parameters:
serverName
- name of the server to route the request torelationshipTypeName
- name of the type of relationship to createglossaryTermOneGUID
- unique identifier of the glossary term at end 1glossaryTermTwoGUID
- unique identifier of the glossary term at end 2requestBody
- properties of the relationship- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setTermAsAbstractConcept
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-abstract-concept") public VoidResponse setTermAsAbstractConcept(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes an abstract concept.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearTermAsAbstractConcept
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-abstract-concept/delete") public VoidResponse clearTermAsAbstractConcept(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) MetadataSourceRequestBody requestBody) Remove the abstract concept designation from the glossary term.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setTermAsDataValue
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-data-value") public VoidResponse setTermAsDataValue(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes a data value.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearTermAsDataValue
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-data-value/remove") public VoidResponse clearTermAsDataValue(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) MetadataSourceRequestBody requestBody) Remove the data value designation from the glossary term.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setTermAsActivity
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-activity") public VoidResponse setTermAsActivity(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes a data value.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- type of activity and correlators- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearTermAsActivity
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-activity/remove") public VoidResponse clearTermAsActivity(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) MetadataSourceRequestBody requestBody) Remove the activity designation from the glossary term.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
setTermAsContext
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-context-definition") public VoidResponse setTermAsContext(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody NewClassificationRequestBody requestBody) Classify the glossary term to indicate that it describes a context.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- more details of the context- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
clearTermAsContext
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/is-context-definition/delete") public VoidResponse clearTermAsContext(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) MetadataSourceRequestBody requestBody) Remove the context definition designation from the glossary term.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to updaterequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
deleteGlossaryTerm
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}/delete") public VoidResponse deleteGlossaryTerm(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) DeleteRequestBody requestBody) Remove the metadata element representing a glossary term.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the metadata element to removerequestBody
- properties to help with the mapping of the elements in the external asset manager and open metadata- Returns:
- void or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
findGlossaryTerms
@PostMapping(path="/glossaries/terms/by-search-string") public OpenMetadataRootElementsResponse findGlossaryTerms(@PathVariable String serverName, @RequestBody(required=false) SearchStringRequestBody requestBody) Retrieve the list of glossary term metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
serverName
- name of the server to route the request torequestBody
- query- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getGlossaryTermsByName
@PostMapping(path="/glossaries/terms/by-name") public OpenMetadataRootElementsResponse getGlossaryTermsByName(@PathVariable String serverName, @RequestBody(required=false) FilterRequestBody requestBody) Retrieve the list of glossary term metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
serverName
- name of the server to route the request torequestBody
- asset manager identifiers and name- Returns:
- list of matching metadata elements or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-
getGlossaryTermByGUID
@PostMapping(path="/glossaries/terms/{glossaryTermGUID}") public OpenMetadataRootElementResponse getGlossaryTermByGUID(@PathVariable String serverName, @PathVariable String glossaryTermGUID, @RequestBody(required=false) GetRequestBody requestBody) Retrieve the glossary term metadata element with the supplied unique identifier.- Parameters:
serverName
- name of the server to route the request toglossaryTermGUID
- unique identifier of the requested metadata elementrequestBody
- asset manager identifiers- Returns:
- matching metadata element or InvalidParameterException one of the parameters is invalid UserNotAuthorizedException the user is not authorized to issue this request PropertyServerException there is a problem reported in the open metadata server(s)
-