public class GlossaryContextHandler extends Object
| Constructor and Description |
|---|
GlossaryContextHandler(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
AssetContextHandler assetContextHandler,
Set<String> lineageClassificationTypes)
Construct the discovery engine configuration handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
Map<String,Set<GraphContext>> |
buildGlossaryTermContext(String userId,
EntityDetail glossaryTerm)
Returns the context for a Glossary Term.
|
EntityDetail |
getGlossaryTermDetails(String userId,
String glossaryTermGUID)
Returns the Glossary Term entity details based on the GlossaryTerm GUID
|
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 - String - userId of user making request.glossaryTermGUID - 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 Map<String,Set<GraphContext>> buildGlossaryTermContext(String userId, EntityDetail glossaryTerm) throws OCFCheckedExceptionBase
userId - String - userId of user making request.glossaryTerm - 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 UserNotAuthorizedException, PropertyServerException
userId - the user Id of user making request.entityDetail - the glossary term entity for which the context is builtUserNotAuthorizedException - the user is not authorized to issue this requestPropertyServerException - the property server exceptionCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.