Class GlossaryExchangeService
- java.lang.Object
-
- org.odpi.openmetadata.integrationservices.catalog.connector.GlossaryExchangeService
-
public class GlossaryExchangeService extends Object
GlossaryExchangeService is the client for managing resources from a glossary. This includes the glossary container, glossary categories and terms as well as relationships between them.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidattachExternalCategoryLink(String externalLinkGUID, String glossaryCategoryGUID, ExternalGlossaryElementLinkProperties linkProperties)Create a link to an external glossary category resource.voidattachExternalLinkToGlossary(String externalLinkGUID, String glossaryGUID)Connect a glossary to a reference to an external glossary resource.voidattachExternalTermLink(String externalLinkGUID, String glossaryTermGUID, ExternalGlossaryElementLinkProperties linkProperties)Create a link to an external glossary term resource.voidclearCategoryParent(String glossaryParentCategoryGUID, String glossaryChildCategoryGUID)Remove a parent-child relationship between two categories.voidclearGlossaryAsCanonical(String glossaryGUID, String glossaryExternalIdentifier)Remove the canonical designation from the glossary.voidclearGlossaryAsTaxonomy(String glossaryGUID, String glossaryExternalIdentifier)Remove the taxonomy designation from the glossary.voidclearTermAsAbstractConcept(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the abstract concept designation from the glossary term.voidclearTermAsActivity(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the activity designation from the glossary term.voidclearTermAsContext(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the context definition designation from the glossary term.voidclearTermAsDataValue(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the data value designation from the glossary term.voidclearTermAsObjectIdentifier(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the object identifier designation from the glossary term.voidclearTermAsSpineAttribute(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the spine attribute designation from the glossary term.voidclearTermAsSpineObject(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the spine object designation from the glossary term.voidclearTermCategory(String glossaryCategoryGUID, String glossaryTermGUID)Unlink a term from a category.voidclearTermRelationship(String relationshipTypeName, String glossaryTermOneGUID, String glossaryTermTwoGUID)Remove the relationship between two terms.StringcreateControlledGlossaryTerm(String userId, String assetManagerGUID, String assetManagerName, String glossaryGUID, String glossaryTermExternalIdentifier, String glossaryTermExternalIdentifierName, String glossaryTermExternalIdentifierUsage, KeyPattern glossaryTermExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryTermProperties glossaryTermProperties, GlossaryTermStatus initialStatus)Create a new metadata element to represent a glossary term whose lifecycle is managed through a controlled workflow.StringcreateExternalGlossaryLink(ExternalGlossaryLinkProperties linkProperties)Create a link to an external glossary resource.StringcreateGlossary(String glossaryExternalIdentifier, String glossaryExternalIdentifierName, String glossaryExternalIdentifierUsage, KeyPattern glossaryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryProperties glossaryProperties)Create a new metadata element to represent the root of a glossary.StringcreateGlossaryCategory(String glossaryGUID, String glossaryCategoryExternalIdentifier, String glossaryCategoryExternalIdentifierName, String glossaryCategoryExternalIdentifierUsage, KeyPattern glossaryCategoryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryCategoryProperties glossaryCategoryProperties)Create a new metadata element to represent a glossary category.StringcreateGlossaryCategoryFromTemplate(String templateGUID, String glossaryCategoryExternalIdentifier, String glossaryCategoryExternalIdentifierName, String glossaryCategoryExternalIdentifierUsage, KeyPattern glossaryCategoryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent a glossary category using an existing metadata element as a template.StringcreateGlossaryFromTemplate(String templateGUID, String glossaryExternalIdentifier, String glossaryExternalIdentifierName, String glossaryExternalIdentifierUsage, KeyPattern glossaryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent a glossary using an existing metadata element as a template.StringcreateGlossaryTerm(String glossaryGUID, String glossaryTermExternalIdentifier, String glossaryTermExternalIdentifierName, String glossaryTermExternalIdentifierUsage, KeyPattern glossaryTermExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryTermProperties glossaryTermProperties)Create a new metadata element to represent a glossary term.StringcreateGlossaryTermFromTemplate(String templateGUID, String glossaryGUID, String glossaryTermExternalIdentifier, String glossaryTermExternalIdentifierName, String glossaryTermExternalIdentifierUsage, KeyPattern glossaryTermExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties)Create a new metadata element to represent a glossary term using an existing metadata element as a template.voiddetachExternalCategoryLink(String externalLinkGUID, String glossaryCategoryGUID)Remove the link to an external glossary category resource.voiddetachExternalLinkFromGlossary(String externalLinkGUID, String glossaryGUID)Disconnect a glossary from a reference to an external glossary resource.voiddetachExternalTermLink(String externalLinkGUID, String glossaryTermGUID)Remove the link to an external glossary term resource.List<GlossaryElement>findGlossaries(String searchString, int startFrom, int pageSize)Retrieve the list of glossary metadata elements that contain the search string.List<GlossaryCategoryElement>findGlossaryCategories(String searchString, int startFrom, int pageSize)Retrieve the list of glossary category metadata elements that contain the search string.List<GlossaryTermElement>findGlossaryTerms(String searchString, int startFrom, int pageSize)Retrieve the list of glossary term metadata elements that contain the search string.List<GlossaryCategoryElement>getCategoriesForGlossary(String glossaryGUID, int startFrom, int pageSize)Return the list of categories associated with a glossary.List<ExternalGlossaryLinkElement>getExternalLinksForGlossary(String glossaryGUID, int startFrom, int pageSize)Retrieve the list of links to external glossary resources attached to a glossary.List<GlossaryElement>getGlossariesByName(String name, int startFrom, int pageSize)Retrieve the list of glossary metadata elements with a matching qualified or display name.List<GlossaryElement>getGlossariesForAssetManager(int startFrom, int pageSize)Retrieve the list of glossaries created on behalf of this asset manager.List<GlossaryElement>getGlossariesForExternalLink(String externalLinkGUID, int startFrom, int pageSize)Return the glossaries connected to an external glossary source.GlossaryElementgetGlossaryByGUID(String openMetadataGUID)Retrieve the glossary metadata element with the supplied unique identifier.List<GlossaryCategoryElement>getGlossaryCategoriesByName(String name, int startFrom, int pageSize)Retrieve the list of glossary category metadata elements with a matching qualified or display name.GlossaryCategoryElementgetGlossaryCategoryByGUID(String guid)Retrieve the glossary category metadata element with the supplied unique identifier.GlossaryCategoryElementgetGlossaryCategoryParent(String userId, String assetManagerGUID, String assetManagerName, String glossaryCategoryGUID)Retrieve the glossary category metadata element with the supplied unique identifier.List<GlossaryCategoryElement>getGlossarySubCategories(String userId, String assetManagerGUID, String assetManagerName, String glossaryCategoryGUID, int startFrom, int pageSize)Retrieve the glossary category metadata element with the supplied unique identifier.GlossaryTermElementgetGlossaryTermByGUID(String guid)Retrieve the glossary term metadata element with the supplied unique identifier.List<GlossaryTermElement>getGlossaryTermsByName(String name, int startFrom, int pageSize)Retrieve the list of glossary term metadata elements with a matching qualified or display name.List<GlossaryTermElement>getTermsForGlossary(String glossaryGUID, int startFrom, int pageSize)Retrieve the list of glossary terms associated with a glossary.List<GlossaryTermElement>getTermsForGlossaryCategory(String glossaryCategoryGUID, int startFrom, int pageSize)Retrieve the list of glossary terms associated with a glossary category.voidremoveExternalGlossaryLink(String externalLinkGUID)Remove information about a link to an external glossary resource (and the relationships that attached it to the glossaries).voidremoveGlossary(String glossaryGUID, String glossaryExternalIdentifier)Remove the metadata element representing a glossary.voidremoveGlossaryCategory(String glossaryCategoryGUID, String glossaryCategoryExternalIdentifier)Remove the metadata element representing a glossary category.voidremoveGlossaryTerm(String glossaryTermGUID, String glossaryTermExternalIdentifier)Remove the metadata element representing a glossary term.voidsetGlossaryAsCanonical(String glossaryGUID, String glossaryExternalIdentifier, String scope)Classify a glossary to declare that it has no two GlossaryTerm definitions with the same name.voidsetGlossaryAsTaxonomy(String glossaryGUID, String glossaryExternalIdentifier, String organizingPrinciple)Classify the glossary to indicate that it can be used as a taxonomy.voidsetTermAsAbstractConcept(String glossaryTermGUID, String glossaryTermExternalIdentifier)Classify the glossary term to indicate that it describes an abstract concept.voidsetTermAsActivity(String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermActivityType activityType)Classify the glossary term to indicate that it describes a data value.voidsetTermAsContext(String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermContextDefinition contextDefinition)Classify the glossary term to indicate that it describes a context.voidsetTermAsDataValue(String glossaryTermGUID, String glossaryTermExternalIdentifier)Classify the glossary term to indicate that it describes a data value.voidsetTermAsObjectIdentifier(String glossaryTermGUID, String glossaryTermExternalIdentifier)Classify the glossary term to indicate that it describes an object identifier.voidsetTermAsSpineAttribute(String glossaryTermGUID, String glossaryTermExternalIdentifier)Classify the glossary term to indicate that it describes a spine attribute.voidsetTermAsSpineObject(String glossaryTermGUID, String glossaryTermExternalIdentifier)Classify the glossary term to indicate that it describes a spine object.voidsetupCategoryParent(String glossaryParentCategoryGUID, String glossaryChildCategoryGUID)Create a parent-child relationship between two categories.voidsetupTermCategory(String glossaryCategoryGUID, String glossaryTermGUID, GlossaryTermCategorization categorizationProperties)Link a term to a category.voidsetupTermRelationship(String relationshipTypeName, String glossaryTermOneGUID, String glossaryTermTwoGUID, GlossaryTermRelationship relationshipsProperties)Link two terms together using a specialist relationship.voidupdateExternalGlossaryLink(String externalLinkGUID, ExternalGlossaryLinkProperties linkProperties)Update the properties of a reference to an external glossary resource.voidupdateGlossary(String glossaryGUID, String glossaryExternalIdentifier, GlossaryProperties glossaryProperties)Update the metadata element representing a glossary.voidupdateGlossaryCategory(String glossaryCategoryGUID, String glossaryCategoryExternalIdentifier, GlossaryCategoryProperties glossaryCategoryProperties)Update the metadata element representing a glossary category.voidupdateGlossaryTerm(String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermProperties glossaryTermProperties)Update the properties of the metadata element representing a glossary term.voidupdateGlossaryTermStatus(String userId, String assetManagerGUID, String assetManagerName, String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermStatus glossaryTermStatus)Update the status of the metadata element representing a glossary term.voidupdateTermRelationship(String relationshipTypeName, String glossaryTermOneGUID, String glossaryTermTwoGUID, GlossaryTermRelationship relationshipsProperties)Update the relationship properties for the two terms.
-
-
-
Method Detail
-
createGlossary
public String createGlossary(String glossaryExternalIdentifier, String glossaryExternalIdentifierName, String glossaryExternalIdentifierUsage, KeyPattern glossaryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryProperties glossaryProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent the root of a glossary. All categories and terms are linked to a single glossary. They are owned by this glossary and if the glossary is deleted, any linked terms and categories are deleted as well.- Parameters:
glossaryExternalIdentifier- unique identifier of the glossary in the external asset managerglossaryExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadataglossaryProperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createGlossaryFromTemplate
public String createGlossaryFromTemplate(String templateGUID, String glossaryExternalIdentifier, String glossaryExternalIdentifierName, String glossaryExternalIdentifierUsage, KeyPattern glossaryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary using an existing metadata element as a template. The template defines additional classifications and relationships that should be added to the new glossary. All categories and terms are linked to a single glossary. They are owned by this glossary and if the glossary is deleted, any linked terms and categories are deleted as well.- Parameters:
glossaryExternalIdentifier- unique identifier of the glossary in the external asset managerglossaryExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadatatemplateGUID- unique identifier of the metadata element to copytemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGlossary
public void updateGlossary(String glossaryGUID, String glossaryExternalIdentifier, GlossaryProperties glossaryProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a glossary.- Parameters:
glossaryGUID- unique identifier of the metadata element to updateglossaryExternalIdentifier- unique identifier of the glossary in the external asset managerglossaryProperties- new properties for this element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGlossary
public void removeGlossary(String glossaryGUID, String glossaryExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a glossary. This will delete the glossary and all categories and terms - use with care :)- Parameters:
glossaryGUID- unique identifier of the metadata element to removeglossaryExternalIdentifier- unique identifier of the glossary in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setGlossaryAsTaxonomy
public void setGlossaryAsTaxonomy(String glossaryGUID, String glossaryExternalIdentifier, String organizingPrinciple) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary to indicate that it can be used as a taxonomy. This means each term is attached to one, and only one category and the categories are organized as a hierarchy with a single root category. 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 category.- Parameters:
glossaryGUID- unique identifier of the metadata element to removeglossaryExternalIdentifier- unique identifier of the glossary in the external asset managerorganizingPrinciple- description of how the glossary is organized- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGlossaryAsTaxonomy
public void clearGlossaryAsTaxonomy(String glossaryGUID, String glossaryExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the taxonomy designation from the glossary.- Parameters:
glossaryGUID- unique identifier of the metadata element to removeglossaryExternalIdentifier- unique identifier of the glossary in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setGlossaryAsCanonical
public void setGlossaryAsCanonical(String glossaryGUID, String glossaryExternalIdentifier, String scope) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
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:
glossaryGUID- unique identifier of the metadata element to removeglossaryExternalIdentifier- unique identifier of the glossary in the external asset managerscope- description of the situations where this glossary is relevant.- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearGlossaryAsCanonical
public void clearGlossaryAsCanonical(String glossaryGUID, String glossaryExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the canonical designation from the glossary.- Parameters:
glossaryGUID- unique identifier of the metadata element to removeglossaryExternalIdentifier- unique identifier of the glossary in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findGlossaries
public List<GlossaryElement> findGlossaries(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossariesByName
public List<GlossaryElement> getGlossariesByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossariesForAssetManager
public List<GlossaryElement> getGlossariesForAssetManager(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossaries created on behalf of this asset manager.- Parameters:
startFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossaryByGUID
public GlossaryElement getGlossaryByGUID(String openMetadataGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the glossary metadata element with the supplied unique identifier.- Parameters:
openMetadataGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createGlossaryCategory
public String createGlossaryCategory(String glossaryGUID, String glossaryCategoryExternalIdentifier, String glossaryCategoryExternalIdentifierName, String glossaryCategoryExternalIdentifierUsage, KeyPattern glossaryCategoryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryCategoryProperties glossaryCategoryProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary category.- Parameters:
glossaryGUID- unique identifier of the glossary where the category is locatedglossaryCategoryExternalIdentifier- unique identifier of the glossary category in the external asset managerglossaryCategoryExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryCategoryExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryCategoryExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadataglossaryCategoryProperties- properties about the glossary category to store- Returns:
- unique identifier of the new glossary category
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createGlossaryCategoryFromTemplate
public String createGlossaryCategoryFromTemplate(String templateGUID, String glossaryCategoryExternalIdentifier, String glossaryCategoryExternalIdentifierName, String glossaryCategoryExternalIdentifierUsage, KeyPattern glossaryCategoryExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary category using an existing metadata element as a template.- Parameters:
templateGUID- unique identifier of the metadata element to copyglossaryCategoryExternalIdentifier- unique identifier of the glossary category in the external asset managerglossaryCategoryExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryCategoryExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryCategoryExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadatatemplateProperties- properties that override the template- Returns:
- unique identifier of the new glossary category
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGlossaryCategory
public void updateGlossaryCategory(String glossaryCategoryGUID, String glossaryCategoryExternalIdentifier, GlossaryCategoryProperties glossaryCategoryProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a glossary category.- Parameters:
glossaryCategoryGUID- unique identifier of the metadata element to updateglossaryCategoryExternalIdentifier- unique identifier of the glossary category in the external asset managerglossaryCategoryProperties- new properties for the metadata element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupCategoryParent
public void setupCategoryParent(String glossaryParentCategoryGUID, String glossaryChildCategoryGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a parent-child relationship between two categories.- Parameters:
glossaryParentCategoryGUID- unique identifier of the glossary category in the external asset manager that is to be the super-categoryglossaryChildCategoryGUID- unique identifier of the glossary category in the external asset manager that is to be the subcategory- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearCategoryParent
public void clearCategoryParent(String glossaryParentCategoryGUID, String glossaryChildCategoryGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove a parent-child relationship between two categories.- Parameters:
glossaryParentCategoryGUID- unique identifier of the glossary category in the external asset manager that is to be the super-categoryglossaryChildCategoryGUID- unique identifier of the glossary category in the external asset manager that is to be the subcategory- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGlossaryCategory
public void removeGlossaryCategory(String glossaryCategoryGUID, String glossaryCategoryExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a glossary category.- Parameters:
glossaryCategoryGUID- unique identifier of the metadata element to removeglossaryCategoryExternalIdentifier- unique identifier of the glossary category in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findGlossaryCategories
public List<GlossaryCategoryElement> findGlossaryCategories(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary category metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getCategoriesForGlossary
public List<GlossaryCategoryElement> getCategoriesForGlossary(String glossaryGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the list of categories associated with a glossary.- Parameters:
glossaryGUID- unique identifier of the glossary to querystartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of metadata elements describing the categories associated with the requested glossary
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossaryCategoriesByName
public List<GlossaryCategoryElement> getGlossaryCategoriesByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary category metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossaryCategoryByGUID
public GlossaryCategoryElement getGlossaryCategoryByGUID(String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the glossary category metadata element with the supplied unique identifier.- Parameters:
guid- unique identifier of the requested metadata element- Returns:
- requested metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossaryCategoryParent
public GlossaryCategoryElement getGlossaryCategoryParent(String userId, String assetManagerGUID, String assetManagerName, String glossaryCategoryGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the glossary category metadata element with the supplied unique identifier.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerglossaryCategoryGUID- unique identifier of the requested metadata element- Returns:
- parent glossary category element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossarySubCategories
public List<GlossaryCategoryElement> getGlossarySubCategories(String userId, String assetManagerGUID, String assetManagerName, String glossaryCategoryGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the glossary category metadata element with the supplied unique identifier.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerglossaryCategoryGUID- unique identifier of the requested metadata elementstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of glossary category element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createGlossaryTerm
public String createGlossaryTerm(String glossaryGUID, String glossaryTermExternalIdentifier, String glossaryTermExternalIdentifierName, String glossaryTermExternalIdentifierUsage, KeyPattern glossaryTermExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryTermProperties glossaryTermProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary term.- Parameters:
glossaryGUID- unique identifier of the glossary where the term is locatedglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset managerglossaryTermExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryTermExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryTermExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadataglossaryTermProperties- properties for the glossary term- Returns:
- unique identifier of the new metadata element for the glossary term
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createControlledGlossaryTerm
public String createControlledGlossaryTerm(String userId, String assetManagerGUID, String assetManagerName, String glossaryGUID, String glossaryTermExternalIdentifier, String glossaryTermExternalIdentifierName, String glossaryTermExternalIdentifierUsage, KeyPattern glossaryTermExternalIdentifierKeyPattern, Map<String,String> mappingProperties, GlossaryTermProperties glossaryTermProperties, GlossaryTermStatus initialStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary term whose lifecycle is managed through a controlled workflow.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerglossaryGUID- unique identifier of the glossary where the term is locatedglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset managerglossaryTermExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryTermExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryTermExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadataglossaryTermProperties- properties for the glossary terminitialStatus- glossary term status to use when the object is created- Returns:
- unique identifier of the new metadata element for the glossary term
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createGlossaryTermFromTemplate
public String createGlossaryTermFromTemplate(String templateGUID, String glossaryGUID, String glossaryTermExternalIdentifier, String glossaryTermExternalIdentifierName, String glossaryTermExternalIdentifierUsage, KeyPattern glossaryTermExternalIdentifierKeyPattern, Map<String,String> mappingProperties, TemplateProperties templateProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary term using an existing metadata element as a template.- Parameters:
templateGUID- unique identifier of the metadata element to copyglossaryGUID- unique identifier of the glossary where the glossary term is located.glossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset managerglossaryTermExternalIdentifierName- name of property for the external identifier in the external asset managerglossaryTermExternalIdentifierUsage- usage for the open metadata element when mapping to external element in the external asset managerglossaryTermExternalIdentifierKeyPattern- pattern for the external identifier within the external asset manager (default is LOCAL_KEY)mappingProperties- additional properties to help with the mapping of the elements in the external asset manager and open metadatatemplateProperties- properties that override the template- Returns:
- unique identifier of the new metadata element for the glossary term
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGlossaryTerm
public void updateGlossaryTerm(String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermProperties glossaryTermProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of the metadata element representing a glossary term.- Parameters:
glossaryTermGUID- unique identifier of the glossary term to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset managerglossaryTermProperties- new properties for the glossary term- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGlossaryTermStatus
public void updateGlossaryTermStatus(String userId, String assetManagerGUID, String assetManagerName, String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermStatus glossaryTermStatus) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the status of the metadata element representing a glossary term. This is only valid on a controlled glossary term.- Parameters:
userId- calling userassetManagerGUID- unique identifier of software server capability representing the callerassetManagerName- unique name of software server capability representing the callerglossaryTermGUID- unique identifier of the glossary term to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset managerglossaryTermStatus- new properties for the glossary term- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupTermCategory
public void setupTermCategory(String glossaryCategoryGUID, String glossaryTermGUID, GlossaryTermCategorization categorizationProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link a term to a category.- Parameters:
glossaryCategoryGUID- unique identifier of the glossary categoryglossaryTermGUID- unique identifier of the glossary termcategorizationProperties- properties for the categorization relationship- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermCategory
public void clearTermCategory(String glossaryCategoryGUID, String glossaryTermGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Unlink a term from a category.- Parameters:
glossaryCategoryGUID- unique identifier of the glossary categoryglossaryTermGUID- unique identifier of the glossary term- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setupTermRelationship
public void setupTermRelationship(String relationshipTypeName, String glossaryTermOneGUID, String glossaryTermTwoGUID, GlossaryTermRelationship relationshipsProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two terms together using a specialist relationship.- Parameters:
relationshipTypeName- 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 2relationshipsProperties- properties for the categorization relationship- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateTermRelationship
public void updateTermRelationship(String relationshipTypeName, String glossaryTermOneGUID, String glossaryTermTwoGUID, GlossaryTermRelationship relationshipsProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the relationship properties for the two terms.- Parameters:
relationshipTypeName- 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 2relationshipsProperties- properties for the categorization relationship- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermRelationship
public void clearTermRelationship(String relationshipTypeName, String glossaryTermOneGUID, String glossaryTermTwoGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the relationship between two terms.- Parameters:
relationshipTypeName- 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 2- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsAbstractConcept
public void setTermAsAbstractConcept(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes an abstract concept.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsAbstractConcept
public void clearTermAsAbstractConcept(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the abstract concept designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsDataValue
public void setTermAsDataValue(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a data value.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsDataValue
public void clearTermAsDataValue(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the data value designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsActivity
public void setTermAsActivity(String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermActivityType activityType) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a data value.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manageractivityType- type of activity- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsActivity
public void clearTermAsActivity(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the activity designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsContext
public void setTermAsContext(String glossaryTermGUID, String glossaryTermExternalIdentifier, GlossaryTermContextDefinition contextDefinition) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a context.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset managercontextDefinition- more details of the context- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsContext
public void clearTermAsContext(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the context definition designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsSpineObject
public void setTermAsSpineObject(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a spine object.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsSpineObject
public void clearTermAsSpineObject(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the spine object designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsSpineAttribute
public void setTermAsSpineAttribute(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a spine attribute.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsSpineAttribute
public void clearTermAsSpineAttribute(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the spine attribute designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
setTermAsObjectIdentifier
public void setTermAsObjectIdentifier(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes an object identifier.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
clearTermAsObjectIdentifier
public void clearTermAsObjectIdentifier(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the object identifier designation from the glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to updateglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGlossaryTerm
public void removeGlossaryTerm(String glossaryTermGUID, String glossaryTermExternalIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a glossary term.- Parameters:
glossaryTermGUID- unique identifier of the metadata element to removeglossaryTermExternalIdentifier- unique identifier of the glossary term in the external asset manager- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
findGlossaryTerms
public List<GlossaryTermElement> findGlossaryTerms(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary term metadata elements that contain the search string. The search string is treated as a regular expression.- Parameters:
searchString- string to find in the propertiesstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getTermsForGlossary
public List<GlossaryTermElement> getTermsForGlossary(String glossaryGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary terms associated with a glossary.- Parameters:
glossaryGUID- unique identifier of the glossary of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getTermsForGlossaryCategory
public List<GlossaryTermElement> getTermsForGlossaryCategory(String glossaryCategoryGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary terms associated with a glossary category.- Parameters:
glossaryCategoryGUID- unique identifier of the glossary category of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of associated metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossaryTermsByName
public List<GlossaryTermElement> getGlossaryTermsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary term metadata elements with a matching qualified or display name. There are no wildcards supported on this request.- Parameters:
name- name to search forstartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossaryTermByGUID
public GlossaryTermElement getGlossaryTermByGUID(String guid) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the glossary term metadata element with the supplied unique identifier.- Parameters:
guid- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createExternalGlossaryLink
public String createExternalGlossaryLink(ExternalGlossaryLinkProperties linkProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a link to an external glossary resource. This is associated with a glossary to show that they have equivalent content. It is possible that this resource was generated from the glossary content or was the source for it.- Parameters:
linkProperties- properties of the link- Returns:
- unique identifier of the external reference
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateExternalGlossaryLink
public void updateExternalGlossaryLink(String externalLinkGUID, ExternalGlossaryLinkProperties linkProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of a reference to an external glossary resource.- Parameters:
externalLinkGUID- unique identifier of the external referencelinkProperties- properties of the link- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeExternalGlossaryLink
public void removeExternalGlossaryLink(String externalLinkGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove information about a link to an external glossary resource (and the relationships that attached it to the glossaries).- Parameters:
externalLinkGUID- unique identifier of the external reference- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
attachExternalLinkToGlossary
public void attachExternalLinkToGlossary(String externalLinkGUID, String glossaryGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Connect a glossary to a reference to an external glossary resource.- Parameters:
externalLinkGUID- unique identifier of the external referenceglossaryGUID- unique identifier of the metadata element to attach- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
detachExternalLinkFromGlossary
public void detachExternalLinkFromGlossary(String externalLinkGUID, String glossaryGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Disconnect a glossary from a reference to an external glossary resource.- Parameters:
externalLinkGUID- unique identifier of the external referenceglossaryGUID- unique identifier of the metadata element to remove- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getExternalLinksForGlossary
public List<ExternalGlossaryLinkElement> getExternalLinksForGlossary(String glossaryGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of links to external glossary resources attached to a glossary.- Parameters:
glossaryGUID- unique identifier of the metadata element for the glossary of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of attached links to external glossary resources
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGlossariesForExternalLink
public List<GlossaryElement> getGlossariesForExternalLink(String externalLinkGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Return the glossaries connected to an external glossary source.- Parameters:
externalLinkGUID- unique identifier of the metadata element for the external glossary link of intereststartFrom- paging start pointpageSize- maximum results that can be returned- Returns:
- list of glossaries
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
attachExternalCategoryLink
public void attachExternalCategoryLink(String externalLinkGUID, String glossaryCategoryGUID, ExternalGlossaryElementLinkProperties linkProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a link to an external glossary category resource. This is associated with a category to show that they have equivalent content. It is possible that this resource was generated from the glossary content or was the source for it.- Parameters:
externalLinkGUID- unique identifier of the external referenceglossaryCategoryGUID- unique identifier for the the glossary categorylinkProperties- properties of the link- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
detachExternalCategoryLink
public void detachExternalCategoryLink(String externalLinkGUID, String glossaryCategoryGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the link to an external glossary category resource.- Parameters:
externalLinkGUID- unique identifier of the external referenceglossaryCategoryGUID- unique identifier for the the glossary category- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
attachExternalTermLink
public void attachExternalTermLink(String externalLinkGUID, String glossaryTermGUID, ExternalGlossaryElementLinkProperties linkProperties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a link to an external glossary term resource. This is associated with a term to show that they have equivalent content. It is possible that this resource was generated from the glossary content or was the source for it.- Parameters:
externalLinkGUID- unique identifier of the external referenceglossaryTermGUID- unique identifier for the the glossary categorylinkProperties- properties of the link- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
detachExternalTermLink
public void detachExternalTermLink(String externalLinkGUID, String glossaryTermGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the link to an external glossary term resource.- Parameters:
externalLinkGUID- unique identifier of the external referenceglossaryTermGUID- unique identifier for the the glossary category- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-