public class AssetContextHandler extends Object
| Constructor and Description |
|---|
AssetContextHandler(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
List<String> supportedZones,
Set<String> lineageClassificationTypes)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
RelationshipsContext |
buildAssetContext(String userId,
EntityDetail entityDetail)
Builds the asset context for a schema element.
|
Map<String,RelationshipsContext> |
buildSchemaElementContext(String userId,
EntityDetail entityDetail)
Builds the context for a schema element without the asset context.
|
public AssetContextHandler(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, List<String> supportedZones, Set<String> lineageClassificationTypes)
invalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository servicessupportedZones - configurable list of zones that Asset Lineage is allowed to retrieve Assets fromlineageClassificationTypes - lineage classification listpublic Map<String,RelationshipsContext> buildSchemaElementContext(String userId, EntityDetail entityDetail) throws OCFCheckedExceptionBase
userId - the unique identifier for the userentityDetail - the entity for which the context is buildOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorspublic RelationshipsContext buildAssetContext(String userId, EntityDetail entityDetail) throws OCFCheckedExceptionBase
userId - the unique identifier for the userentityDetail - the entity for which the context is buildOCFCheckedExceptionBase - checked exception for reporting errors found when using OCF connectorsCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.