Class AssetLineage
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
org.odpi.openmetadata.accessservices.assetlineage.AssetLineage
- All Implemented Interfaces:
AssetLineageInterface
RESTClient is responsible for issuing calls to the OMAS REST APIs.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
auditLog, exceptionHandler, serverName, serverPlatformURLRoot
-
Constructor Summary
ConstructorsConstructorDescriptionAssetLineage
(String serverName, String serverPlatformURLRoot) Instantiates a new Asset lineage Client.AssetLineage
(String serverName, String serverPlatformURLRoot, String userId, String password) Instantiates a new Asset Lineage Client. -
Method Summary
Modifier and TypeMethodDescriptionpublishAssetContext
(String userId, String guid, String entityType) Publishes the asset context of an entity - used for data files and relational tables.publishEntities
(String serverName, String userId, String entityType, Optional<Date> updatedAfterDate) Scan the cohort based on the given entity type and publish the contexts for the found entities to the out topic Returns a list that contains entities GUID that were published out.Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callOCFConnectorReportGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCall
Methods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
callDeleteRESTCall, callDeleteRESTCall, callGetRESTCall, callGetRESTCall, callGetRESTCallNoParams, callPostRESTCall, callPostRESTCall, callPostRESTCallNoParams, callPutRESTCall, callPutRESTCall
-
Constructor Details
-
AssetLineage
public AssetLineage(String serverName, String serverPlatformURLRoot) throws InvalidParameterException Instantiates a new Asset lineage Client.- Parameters:
serverName
- the server nameserverPlatformURLRoot
- the network address of the server running the OMAS REST services- Throws:
InvalidParameterException
- one of the parameters is null or invalid.InvalidParameterException
-
AssetLineage
public AssetLineage(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException Instantiates a new Asset Lineage Client.- Parameters:
serverName
- the server nameserverPlatformURLRoot
- the server platform url rootuserId
- the user idpassword
- the password- Throws:
InvalidParameterException
- one of the parameters is null or invalid.InvalidParameterException
-
-
Method Details
-
publishEntities
public List<String> publishEntities(String serverName, String userId, String entityType, Optional<Date> updatedAfterDate) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Scan the cohort based on the given entity type and publish the contexts for the found entities to the out topic Returns a list that contains entities GUID that were published out.- Specified by:
publishEntities
in interfaceAssetLineageInterface
- Parameters:
serverName
- the server nameuserId
- the user identityType
- the entity typeupdatedAfterDate
- take into account just the entities updated after the specified date, if any (otherwise it loads everything)- Returns:
- the list of entities GUIDs that were published out
- Throws:
InvalidParameterException
- one of the parameters is null or invalid.PropertyServerException
- there is a problem retrieving information from the property server(s).UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
publishAssetContext
public List<String> publishAssetContext(String userId, String guid, String entityType) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Publishes the asset context of an entity - used for data files and relational tables.- Specified by:
publishAssetContext
in interfaceAssetLineageInterface
- Parameters:
userId
- the caller user Idguid
- the guid of the entityentityType
- the entity type- Returns:
- list of the entities' guids in the asset context
- Throws:
InvalidParameterException
- the invalid parameter exceptionPropertyServerException
- the property server exceptionUserNotAuthorizedException
- the user not authorized exception
-