Class GlossaryTermHandler<B>
- java.lang.Object
-
- org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler<B>
-
- org.odpi.openmetadata.commonservices.generichandlers.GlossaryTermHandler<B>
-
- Type Parameters:
B- class for the glossary term bean
public class GlossaryTermHandler<B> extends ReferenceableHandler<B>
GlossaryTermHandler retrieves Glossary Term objects from the property server. It runs server-side and retrieves Glossary Term entities through the OMRSRepositoryConnector.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones
-
-
Constructor Summary
Constructors Constructor Description GlossaryTermHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)Construct the discovery engine configuration handler caching the objects needed to operate within a single server instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearTermAsAbstractConcept(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the abstract concept designation from the glossary term.voidclearTermAsActivity(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the activity designation from the glossary term.voidclearTermAsContext(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the context definition designation from the glossary term.voidclearTermAsDataValue(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the data value designation from the glossary term.voidclearTermAsObjectIdentifier(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the object identifier designation from the glossary term.voidclearTermAsSpineAttribute(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the spine attribute designation from the glossary term.voidclearTermAsSpineObject(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the spine object designation from the glossary term.voidclearTermCategory(String userId, String glossaryCategoryGUID, String glossaryCategoryGUIDParameterName, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Unlink a term from a category.voidclearTermRelationship(String userId, String glossaryTermOneGUID, String glossaryTermOneGUIDParameterName, String relationshipTypeName, String relationshipTypeParameterName, String glossaryTermTwoGUID, String glossaryTermTwoGUIDParameterName, String methodName)Remove the relationship between two terms.StringcreateGlossaryTerm(String userId, String glossaryGUID, String glossaryGUIDParameterName, String qualifiedName, String displayName, String summary, String description, String examples, String abbreviation, String usage, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, InstanceStatus initialStatus, String methodName)Create a new metadata element to represent a glossary term (or a subtype).StringcreateGlossaryTermFromTemplate(String userId, String templateGUID, String qualifiedName, String displayName, String description, String methodName)Create a new metadata element to represent a glossary term using an existing metadata element as a template.List<B>findTerms(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName)Returns the glossary term object containing the supplied term name.List<B>getAttachedMeanings(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName)Return the glossary terms attached to a supplied entity through the semantic assignment.BgetTerm(String userId, String guid, String guidParameter, String methodName)Returns the glossary term object corresponding to the supplied glossary term GUID.List<B>getTermsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName)Returns the glossary term object corresponding to the supplied term name.List<B>getTermsForGlossary(String userId, String glossaryGUID, String glossaryGUIDParameterName, int startFrom, int pageSize, String methodName)Retrieve the list of glossary terms associated with a glossary.List<B>getTermsForGlossaryCategory(String userId, String glossaryCategoryGUID, String glossaryCategoryGUIDParameterName, int startFrom, int pageSize, String methodName)Retrieve the list of glossary terms associated with a glossary category.voidremoveGlossaryTerm(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Remove the metadata element representing a glossary term.voidsetTermAsAbstractConcept(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Classify the glossary term to indicate that it describes an abstract concept.voidsetTermAsActivity(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, int activityType, String methodName)Classify the glossary term to indicate that it describes a data value.voidsetTermAsContext(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String description, String scope, String methodName)Classify the glossary term to indicate that it describes a context.voidsetTermAsDataValue(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Classify the glossary term to indicate that it describes a data value.voidsetTermAsObjectIdentifier(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Classify the glossary term to indicate that it describes an object identifier.voidsetTermAsSpineAttribute(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Classify the glossary term to indicate that it describes a spine attribute.voidsetTermAsSpineObject(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName)Classify the glossary term to indicate that it describes a spine object.voidsetupTermCategory(String userId, String glossaryCategoryGUID, String glossaryCategoryGUIDParameterName, String glossaryTermGUID, String glossaryTermGUIDParameterName, String description, int relationshipStatus, String methodName)Link a term to a category.voidsetupTermRelationship(String userId, String glossaryTermOneGUID, String glossaryTermOneGUIDParameterName, String relationshipTypeName, String relationshipTypeParameterName, String glossaryTermTwoGUID, String glossaryTermTwoGUIDParameterName, String expression, String description, int relationshipStatus, String steward, String source, String methodName)Link two terms together using a specialist relationship.voidupdateGlossaryTerm(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String qualifiedName, String displayName, String summary, String description, String examples, String abbreviation, String usage, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, String methodName)Update the properties of the metadata element representing a glossary term.voidupdateGlossaryTermStatus(String userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, InstanceStatus glossaryTermStatus, String glossaryTermStatusParameterName, String methodName)Update the status of the metadata element representing a glossary term.voidupdateTermRelationship(String userId, String glossaryTermOneGUID, String glossaryTermOneGUIDParameterName, String relationshipTypeName, String relationshipTypeParameterName, String glossaryTermTwoGUID, String glossaryTermTwoGUIDParameterName, String expression, String description, int relationshipStatus, String steward, String source, String methodName)Update the relationship properties for the two terms.-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.ReferenceableHandler
addOwner, addSecurityTags, addTemplateClassification, clearBusinessSignificant, findBeanGUIDsByQualifiedName, findBeansByQualifiedName, findBeansByQualifiedName, getBeanByQualifiedName, getBeanByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDByQualifiedName, getBeanGUIDsByQualifiedName, getBeanGUIDsByQualifiedName, getBeansByQualifiedName, getBeansByQualifiedName, getCollectionMembers, getEntityByUniqueQualifiedName, getMoreInformation, getMoreInformation, getVendorProperties, linkElementsAsPeerDuplicates, removeOwner, removeResourceListMember, removeSecurityTags, removeSemanticAssignment, removeTemplateClassification, saveResourceListMember, saveSemanticAssignment, saveSemanticAssignment, setBusinessSignificant, setVendorProperties, unlinkElementsAsPeerDuplicates
-
Methods inherited from class org.odpi.openmetadata.commonservices.generichandlers.OpenMetadataAPIGenericHandler
addAnchorsClassification, archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteAnchoredEntity, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, deleteRelationship, entityMatchSearchCriteria, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findEntities, findEntities, getAllAttachmentLinks, getAnchorGUIDFromAnchorsClassification, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntitiesFromUser, getAttachedEntity, getAttachedEntity, getAttachedEntity, getAttachedEntityFromUser, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachedFilteredEntities, getAttachmentLink, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByIntValue, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEffectiveTime, getEffectiveTime, getEntitiesByIntValue, getEntitiesByType, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHandler, getRepositoryHelper, getServerName, getServiceName, getTypeDefByName, getUniqueAttachmentLink, getUniqueAttachmentLink, isBeanIsolated, isEntityATypeOf, linkElementToElement, linkElementToElement, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, multiLinkElementToElement, regexSearchCriteria, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, validateUniqueProperty, verifyExternalSourceIdentity
-
-
-
-
Constructor Detail
-
GlossaryTermHandler
public GlossaryTermHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
Construct the discovery engine configuration handler caching the objects needed to operate within a single server instance.- Parameters:
converter- specific converter for this bean classbeanClass- name of bean class that is represented by the generic class BserviceName- name of this serviceserverName- name of the local serverinvalidParameterHandler- handler for managing parameter errorsrepositoryHandler- manages calls to the repository servicesrepositoryHelper- provides utilities for manipulating the repository services objectslocalServerUserId- userId for this serversecurityVerifier- open metadata security services verifiersupportedZones- list of zones that the access service is allowed to serve Asset instances from.defaultZones- list of zones that the access service should set in all new Asset instances.publishZones- list of zones that the access service sets up in published Asset instances.auditLog- destination for audit log events.
-
-
Method Detail
-
createGlossaryTerm
public String createGlossaryTerm(String userId, String glossaryGUID, String glossaryGUIDParameterName, String qualifiedName, String displayName, String summary, String description, String examples, String abbreviation, String usage, Map<String,String> additionalProperties, String suppliedTypeName, Map<String,Object> extendedProperties, InstanceStatus initialStatus, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary term (or a subtype).- Parameters:
userId- calling userglossaryGUID- unique identifier of the owning glossaryglossaryGUIDParameterName- parameter supplying glossaryGUIDqualifiedName- unique name for the category - used in other configurationdisplayName- display name for the termsummary- short descriptiondescription- description of the termexamples- examples of this termabbreviation- abbreviation used for the termusage- illustrations of how the term is usedadditionalProperties- additional properties for a termsuppliedTypeName- type name from the caller (enables creation of subtypes)extendedProperties- properties for a term subtypeinitialStatus- glossary term status to use when the object is createdmethodName- calling method- 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 userId, String templateGUID, String qualifiedName, String displayName, String description, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a glossary term using an existing metadata element as a template.- Parameters:
userId- calling usertemplateGUID- unique identifier of the metadata element to copyqualifiedName- unique name for the term - used in other configurationdisplayName- short display name for the termdescription- description of the termmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String qualifiedName, String displayName, String summary, String description, String examples, String abbreviation, String usage, Map<String,String> additionalProperties, String typeName, Map<String,Object> extendedProperties, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the properties of the metadata element representing a glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the glossary term to updateglossaryTermGUIDParameterName- parameter supplying glossaryGUIDqualifiedName- unique name for the category - used in other configurationdisplayName- short display name for the termsummary- string textdescription- description of the termexamples- string textabbreviation- string textusage- string textadditionalProperties- additional properties for a termtypeName- type name from the caller (enables creation of subtypes)extendedProperties- properties for a term subtypemethodName- calling method- 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 glossaryTermGUID, String glossaryTermGUIDParameterName, InstanceStatus glossaryTermStatus, String glossaryTermStatusParameterName, String methodName) 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 userglossaryTermGUID- unique identifier of the glossary term to updateglossaryTermGUIDParameterName- parameter name for glossaryTermGUIDglossaryTermStatus- new status value for the glossary termglossaryTermStatusParameterName- parameter name for the status valuemethodName- calling method- 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 userId, String glossaryCategoryGUID, String glossaryCategoryGUIDParameterName, String glossaryTermGUID, String glossaryTermGUIDParameterName, String description, int relationshipStatus, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link a term to a category.- Parameters:
userId- calling userglossaryCategoryGUID- unique identifier of the glossary categoryglossaryCategoryGUIDParameterName- parameter supplying glossaryCategoryGUIDglossaryTermGUID- unique identifier of the glossary termglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDdescription- description of the categorizationrelationshipStatus- ordinal for the relationship status enummethodName- calling method- 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 userId, String glossaryCategoryGUID, String glossaryCategoryGUIDParameterName, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Unlink a term from a category.- Parameters:
userId- calling userglossaryCategoryGUID- unique identifier of the glossary categoryglossaryCategoryGUIDParameterName- parameter supplying glossaryCategoryGUIDglossaryTermGUID- unique identifier of the glossary termglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermOneGUID, String glossaryTermOneGUIDParameterName, String relationshipTypeName, String relationshipTypeParameterName, String glossaryTermTwoGUID, String glossaryTermTwoGUIDParameterName, String expression, String description, int relationshipStatus, String steward, String source, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Link two terms together using a specialist relationship.- Parameters:
userId- calling userglossaryTermOneGUID- unique identifier of the glossary term at end 1glossaryTermOneGUIDParameterName- parameter supplying glossaryTermOneGUIDrelationshipTypeName- name of the type of relationship to createrelationshipTypeParameterName- name of parameter passing the relationshipglossaryTermTwoGUID- unique identifier of the glossary term at end 2glossaryTermTwoGUIDParameterName- parameter supplying glossaryTermTwoGUIDdescription- description of the relationshipexpression- expression that describes the relationshiprelationshipStatus- ordinal for the relationship status enum (draft, active, deprecated, obsolete, other)steward- user id or name of steward id who assigned the relationship (or approved the discovered value).source- id of the source of the knowledge of the relationshipmethodName- calling method- 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 userId, String glossaryTermOneGUID, String glossaryTermOneGUIDParameterName, String relationshipTypeName, String relationshipTypeParameterName, String glossaryTermTwoGUID, String glossaryTermTwoGUIDParameterName, String expression, String description, int relationshipStatus, String steward, String source, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the relationship properties for the two terms.- Parameters:
userId- calling userglossaryTermOneGUID- unique identifier of the glossary term at end 1glossaryTermOneGUIDParameterName- parameter supplying glossaryTermOneGUIDrelationshipTypeName- name of the type of relationship to createrelationshipTypeParameterName- name of parameter passing the relationshipglossaryTermTwoGUID- unique identifier of the glossary term at end 2glossaryTermTwoGUIDParameterName- parameter supplying glossaryTermTwoGUIDdescription- description of the relationshipexpression- expression that describes the relationshiprelationshipStatus- ordinal for the relationship status enum (draft, active, deprecated, obsolete, other)steward- user id or name of steward id who assigned the relationship (or approved the discovered value).source- id of the source of the knowledge of the relationshipmethodName- calling method- 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 userId, String glossaryTermOneGUID, String glossaryTermOneGUIDParameterName, String relationshipTypeName, String relationshipTypeParameterName, String glossaryTermTwoGUID, String glossaryTermTwoGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the relationship between two terms.- Parameters:
userId- calling userglossaryTermOneGUID- unique identifier of the glossary term at end 1glossaryTermOneGUIDParameterName- parameter supplying glossaryTermOneGUIDrelationshipTypeName- name of the type of relationship to createrelationshipTypeParameterName- name of parameter passing the relationshipglossaryTermTwoGUID- unique identifier of the glossary term at end 2glossaryTermTwoGUIDParameterName- parameter supplying glossaryTermTwoGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes an abstract concept.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the abstract concept designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a data value.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the data value designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, int activityType, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a data value.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDactivityType- ordinal for type of activitymethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the activity designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String description, String scope, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a context.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDdescription- description of the contextscope- the scope of where the context appliesmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the context definition designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a spine object.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the spine object designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes a spine attribute.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the spine attribute designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Classify the glossary term to indicate that it describes an object identifier.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the object identifier designation from the glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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 userId, String glossaryTermGUID, String glossaryTermGUIDParameterName, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a glossary term.- Parameters:
userId- calling userglossaryTermGUID- unique identifier of the metadata element to updateglossaryTermGUIDParameterName- parameter supplying glossaryTermGUIDmethodName- calling method- 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)
-
getTermsByName
public List<B> getTermsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Returns the glossary term object corresponding to the supplied term name.- Parameters:
userId- String - userId of user making request.name- this may be the qualifiedName or displayName of the term.nameParameterName- property that provided the namestartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.methodName- calling method- Returns:
- List of glossary terms retrieved from property server
- Throws:
InvalidParameterException- one of the parameters is null or invalid.PropertyServerException- there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
findTerms
public List<B> findTerms(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Returns the glossary term object containing the supplied term name. This may include wildcard characters- Parameters:
userId- String - userId of user making request.name- this may be the qualifiedName or displayName of the termnameParameterName- property that provided the name - interpreted as a to be a regular expressionstartFrom- index of the list to start from (0 for start)pageSize- maximum number of elements to return.methodName- calling method- Returns:
- List of glossary terms retrieved from property server
- Throws:
InvalidParameterException- one of the parameters is null or invalid.PropertyServerException- there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getTerm
public B getTerm(String userId, String guid, String guidParameter, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Returns the glossary term object corresponding to the supplied glossary term GUID.- Parameters:
userId- String - userId of user making requestguid- the unique id for the glossary term within the property serverguidParameter- name of parameter supplying the guidmethodName- calling method- Returns:
- Glossary Term retrieved from the property server
- Throws:
InvalidParameterException- one of the parameters is null or invalid.PropertyServerException- there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getTermsForGlossary
public List<B> getTermsForGlossary(String userId, String glossaryGUID, String glossaryGUIDParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary terms associated with a glossary.- Parameters:
userId- calling userglossaryGUID- unique identifier of the glossary of interestglossaryGUIDParameterName- property supplying the glossaryGUIDstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- 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<B> getTermsForGlossaryCategory(String userId, String glossaryCategoryGUID, String glossaryCategoryGUIDParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of glossary terms associated with a glossary category.- Parameters:
userId- calling userglossaryCategoryGUID- unique identifier of the glossary category of interestglossaryCategoryGUIDParameterName- property supplying the glossaryCategoryGUIDstartFrom- paging start pointpageSize- maximum results that can be returnedmethodName- calling method- 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)
-
getAttachedMeanings
public List<B> getAttachedMeanings(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
Return the glossary terms attached to a supplied entity through the semantic assignment.- Parameters:
userId- calling userelementGUID- identifier for the entity that the feedback is attached toelementGUIDParameterName- name of parameter supplying the GUIDelementTypeName- name of the type of object being attached toserviceSupportedZones- supported zones for calling servicestartingFrom- where to start from in the listpageSize- maximum number of results that can be returnedmethodName- calling method- Returns:
- list of objects or null if none found
- Throws:
InvalidParameterException- the input properties are invalidUserNotAuthorizedException- user not authorized to issue this requestPropertyServerException- problem accessing the property server
-
-