Class DiscoveryAssetCatalogStoreClient
java.lang.Object
org.odpi.openmetadata.frameworks.discovery.DiscoveryAssetCatalogStore
org.odpi.openmetadata.accessservices.discoveryengine.client.DiscoveryAssetCatalogStoreClient
DiscoveryAssetCatalogStoreClient is the open metadata default implementation of the Open Discovery Framework (ODF)
DiscoveryAssetCatalogStore. It uses the open metadata services through the Discovery Engine OMAS to provide access
to the requested assets.
-
Field Summary
Fields inherited from class org.odpi.openmetadata.frameworks.discovery.DiscoveryAssetCatalogStore
maxPageSize, userId
-
Constructor Summary
ConstructorsConstructorDescriptionDiscoveryAssetCatalogStoreClient
(String userId, DiscoveryEngineClient discoveryEngineClient, int maxPageSize) Create a discovery asset catalog store that call call the discovery engine client. -
Method Summary
Modifier and TypeMethodDescriptionfindAssets
(String searchString, int startFrom, int pageSize) Return the list of assets that have the search string somewhere in their properties.getAssets
(int startFrom, int pageSize) Return the next set of assets to process.getAssetsByEndpoint
(String networkAddress, int startFrom, int pageSize) Return the list of assets that have the same endpoint address.getAssetsByName
(String name, int startFrom, int pageSize) Return the list of matching assets that have the supplied name as either the qualified name or display name.getAssetsByQualifiedName
(String name, int startFrom, int pageSize) Return the assets with the same qualified name.Methods inherited from class org.odpi.openmetadata.frameworks.discovery.DiscoveryAssetCatalogStore
getMaxPageSize
-
Constructor Details
-
DiscoveryAssetCatalogStoreClient
public DiscoveryAssetCatalogStoreClient(String userId, DiscoveryEngineClient discoveryEngineClient, int maxPageSize) Create a discovery asset catalog store that call call the discovery engine client.- Parameters:
userId
- calling userdiscoveryEngineClient
- client for the Discovery Engine OMASmaxPageSize
- maximum number of results to return.
-
-
Method Details
-
getAssets
public List<String> getAssets(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the next set of assets to process.- Specified by:
getAssets
in classDiscoveryAssetCatalogStore
- Parameters:
startFrom
- starting point of the querypageSize
- maximum number of results to return- Returns:
- list of unique identifiers for located assets
- Throws:
InvalidParameterException
- one of the parameters is not recognizedUserNotAuthorizedException
- the user is not authorized to access the asset and/or connectionPropertyServerException
- there was a problem in the store whether the asset/connection properties are kept.
-
getAssetsByQualifiedName
public List<String> getAssetsByQualifiedName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the assets with the same qualified name. If all is well there should be only one returned.- Specified by:
getAssetsByQualifiedName
in classDiscoveryAssetCatalogStore
- Parameters:
name
- the qualified name to query onstartFrom
- place to start in querypageSize
- number of results to return- Returns:
- list of unique identifiers for matching assets
- Throws:
InvalidParameterException
- one of the parameters is not recognizedUserNotAuthorizedException
- the user is not authorized to access the asset and/or connectionPropertyServerException
- there was a problem in the store whether the asset/connection properties are kept.
-
getAssetsByName
public List<String> getAssetsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of matching assets that have the supplied name as either the qualified name or display name. This is an exact match retrieval.- Specified by:
getAssetsByName
in classDiscoveryAssetCatalogStore
- Parameters:
name
- name to query forstartFrom
- place to start in querypageSize
- number of results to return- Returns:
- list of unique identifiers for matching assets
- Throws:
InvalidParameterException
- one of the parameters is not recognizedUserNotAuthorizedException
- the user is not authorized to access the asset and/or connectionPropertyServerException
- there was a problem in the store whether the asset/connection properties are kept.
-
findAssets
public List<String> findAssets(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of assets that have the search string somewhere in their properties. The search string may be a regular expression.- Specified by:
findAssets
in classDiscoveryAssetCatalogStore
- Parameters:
searchString
- value to search forstartFrom
- place to start in querypageSize
- number of results to return- Returns:
- list of unique identifiers for matching assets
- Throws:
InvalidParameterException
- one of the parameters is not recognizedUserNotAuthorizedException
- the user is not authorized to access the asset and/or connectionPropertyServerException
- there was a problem in the store whether the asset/connection properties are kept.
-
getAssetsByEndpoint
public List<String> getAssetsByEndpoint(String networkAddress, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException Return the list of assets that have the same endpoint address.- Specified by:
getAssetsByEndpoint
in classDiscoveryAssetCatalogStore
- Parameters:
networkAddress
- address to query onstartFrom
- place to start in querypageSize
- number of results to return- Returns:
- list of unique identifiers for matching assets
- Throws:
InvalidParameterException
- one of the parameters is not recognizedUserNotAuthorizedException
- the user is not authorized to access the asset and/or connectionPropertyServerException
- there was a problem in the store whether the asset/connection properties are kept.
-