Class GlossaryContextHandler


  • public class GlossaryContextHandler
    extends Object
    The Glossary Context Handler provides methods to build graph context for glossary terms.
    • Constructor Detail

      • GlossaryContextHandler

        public GlossaryContextHandler​(InvalidParameterHandler invalidParameterHandler,
                                      AssetContextHandler assetContextHandler,
                                      HandlerHelper handlerHelper)
        Construct the handler information needed to interact with the repository services
        Parameters:
        invalidParameterHandler - handler for invalid parameters
        handlerHelper - the helper handler
    • Method Detail

      • buildGlossaryTermContext

        public com.google.common.collect.Multimap<String,​RelationshipsContext> buildGlossaryTermContext​(String userId,
                                                                                                              EntityDetail glossaryTerm)
                                                                                                       throws OCFCheckedExceptionBase
        Builds the context for a Glossary Term. This context contains the full description for the Schema Elements that have a Semantic Assigment to the GlossaryTerm
        Parameters:
        userId - the unique identifier for the user
        glossaryTerm - the glossary term entity for which the context is built
        Returns:
        a map that contains the Glossary Term relationships and context
        Throws:
        OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors
      • hasGlossaryTermLineageRelationships

        public boolean hasGlossaryTermLineageRelationships​(String userId,
                                                           EntityDetail entityDetail)
                                                    throws OCFCheckedExceptionBase
        Checks if the glossary term is involved in lineage relationships
        Parameters:
        userId - the unique identifier for the user
        entityDetail - the glossary term entity for which the context is built
        Returns:
        true if there are lineage relationships for the glossary term
        Throws:
        OCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectors