Class ClassificationHandler


  • public class ClassificationHandler
    extends Object
    The Classification Handler maps classifications attached with an entity to an lineage entity.
    • Constructor Detail

      • ClassificationHandler

        public ClassificationHandler​(InvalidParameterHandler invalidParameterHandler,
                                     HandlerHelper handlerHelper)
        Instantiates a new Classification handler.
        Parameters:
        invalidParameterHandler - the invalid parameter handler
        handlerHelper - the helper handler
    • Method Detail

      • buildClassificationContext

        public Map<String,​RelationshipsContext> buildClassificationContext​(EntityDetail entityDetail,
                                                                                 AssetLineageEventType assetLineageEventType)
                                                                          throws OCFCheckedExceptionBase
        Builds the classification context for an entity. Gets asset context from the entity by classification type.
        Parameters:
        entityDetail - the entity for retrieving the classifications attached to it
        assetLineageEventType - the event type to be published
        Returns:
        the classification context of the entity
        Throws:
        OCFCheckedExceptionBase