public class HandlerHelper extends Object
| Constructor and Description |
|---|
HandlerHelper(InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler,
Set<String> lineageClassificationTypes) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLineageClassificationToContext(EntityDetail entity,
AssetContext assetContext)
Adds the classification context to the asset context.
|
List<Classification> |
filterLineageClassifications(List<Classification> classifications)
Extract the lineage classifications from the list of classifications assigned
|
EntityDetail |
getEntityDetails(String userId,
String entityDetailGUID,
String entityTypeName)
Fetch the entity using the identifier and the type name
|
public HandlerHelper(InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler, Set<String> lineageClassificationTypes)
invalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository servicespublic EntityDetail getEntityDetails(String userId, String entityDetailGUID, String entityTypeName) throws OCFCheckedExceptionBase
userId - the user identifierentityDetailGUID - the entity identifierentityTypeName - the entity type nameOCFCheckedExceptionBase - unable to send the event due to connectivity issuepublic void addLineageClassificationToContext(EntityDetail entity, AssetContext assetContext)
assetContext - the context of the asset that is to be updatedentity - the entity with its classificationspublic List<Classification> filterLineageClassifications(List<Classification> classifications)
classifications - the list of available classificationsCopyright © 2018–2020 ODPi. All rights reserved.