Class ClassificationHandler
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.assetlineage.handlers.ClassificationHandler
-
public class ClassificationHandler extends Object
The Classification Handler maps classifications attached with an entity to an lineage entity.
-
-
Constructor Summary
Constructors Constructor Description ClassificationHandler(InvalidParameterHandler invalidParameterHandler, HandlerHelper handlerHelper)Instantiates a new Classification handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<String,RelationshipsContext>buildClassificationContext(EntityDetail entityDetail, AssetLineageEventType assetLineageEventType)Builds the classification context for an entity.
-
-
-
Constructor Detail
-
ClassificationHandler
public ClassificationHandler(InvalidParameterHandler invalidParameterHandler, HandlerHelper handlerHelper)
Instantiates a new Classification handler.- Parameters:
invalidParameterHandler- the invalid parameter handlerhandlerHelper- 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 itassetLineageEventType- the event type to be published- Returns:
- the classification context of the entity
- Throws:
OCFCheckedExceptionBase
-
-