Class ClassificationHandler
java.lang.Object
org.odpi.openmetadata.accessservices.assetlineage.handlers.ClassificationHandler
The Classification Handler maps classifications attached with an entity to an lineage entity.
-
Constructor Summary
ConstructorsConstructorDescriptionClassificationHandler
(InvalidParameterHandler invalidParameterHandler, HandlerHelper handlerHelper) Instantiates a new Classification handler. -
Method Summary
Modifier and TypeMethodDescriptionbuildClassificationContext
(EntityDetail entityDetail, AssetLineageEventType assetLineageEventType) Builds the classification context for an entity.
-
Constructor Details
-
ClassificationHandler
public ClassificationHandler(InvalidParameterHandler invalidParameterHandler, HandlerHelper handlerHelper) Instantiates a new Classification handler.- Parameters:
invalidParameterHandler
- the invalid parameter handlerhandlerHelper
- the helper handler
-
-
Method Details
-
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 itassetLineageEventType
- the event type to be published- Returns:
- the classification context of the entity
- Throws:
OCFCheckedExceptionBase
-