public class AssetContextHandler extends Object
| Constructor and Description |
|---|
AssetContextHandler(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
List<String> supportedZones,
Set<String> lineageClassificationTypes) |
| Modifier and Type | Method and Description |
|---|---|
AssetContext |
getAssetContext(String userId,
EntityDetail entityDetail)
Gets asset context.
|
List<EntityDetail> |
getEntitiesByTypeName(String userId,
String entityTypeName) |
EntityDetail |
getEntityByTypeAndGuid(String userId,
String guid,
String entityTypeName) |
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 List<EntityDetail> getEntitiesByTypeName(String userId, String entityTypeName) throws UserNotAuthorizedException, PropertyServerException
userId - the user identityTypeName - the name of the entity typeUserNotAuthorizedException - the user is not authorized to make this request.PropertyServerException - something went wrong with the REST call stack.public EntityDetail getEntityByTypeAndGuid(String userId, String guid, String entityTypeName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the user idguid - the guid of the entityentityTypeName - the name of the entity typeInvalidParameterException - one of the parameters is null or invalid.UserNotAuthorizedException - user not authorized to issue this request.PropertyServerException - problem retrieving the entity.public AssetContext getAssetContext(String userId, EntityDetail entityDetail) throws OCFCheckedExceptionBase
userId - the user identityDetail - the entity for which the context is buildOCFCheckedExceptionBaseCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.