public class GlossaryContextHandler extends Object
| Constructor and Description |
|---|
GlossaryContextHandler(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
AssetContextHandler assetContextHandler,
Set<String> lineageClassificationTypes)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<String,RelationshipsContext> |
buildGlossaryTermContext(String userId,
EntityDetail glossaryTerm)
Builds the context for a Glossary Term.
|
EntityDetail |
getGlossaryTermDetails(String userId,
String glossaryTermGUID)
Returns the Glossary Term entity details based on the GlossaryTerm GUID
|
Set<EntityDetail> |
getSchemaElementsAttached(String userId,
EntityDetail glossaryTerm)
Gets the list of Schema Elements attached to a Glossary Term by Semantic Assignments Relationships
|
boolean |
hasGlossaryTermLineageRelationships(String userId,
EntityDetail entityDetail)
Checks if the glossary term is involved in lineage relationships
|
public GlossaryContextHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, AssetContextHandler assetContextHandler, Set<String> lineageClassificationTypes)
invalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository servicespublic EntityDetail getGlossaryTermDetails(String userId, String glossaryTermGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the unique identifier for the userglossaryTermGUID - the glossary term GUIDInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the entity.public com.google.common.collect.Multimap<String,RelationshipsContext> buildGlossaryTermContext(String userId, EntityDetail glossaryTerm) throws OCFCheckedExceptionBase
userId - the unique identifier for the userglossaryTerm - the glossary term entity for which the context is builtOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorspublic boolean hasGlossaryTermLineageRelationships(String userId, EntityDetail entityDetail) throws OCFCheckedExceptionBase
userId - the unique identifier for the userentityDetail - the glossary term entity for which the context is builtOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorspublic Set<EntityDetail> getSchemaElementsAttached(String userId, EntityDetail glossaryTerm) throws OCFCheckedExceptionBase
userId - the unique identifier for the userglossaryTerm - the glossary term for which the context is builtOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorsCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.