public abstract class DiscoveryAssetCatalogStore extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
maxPageSize |
protected String |
userId |
| Constructor and Description |
|---|
DiscoveryAssetCatalogStore(String userId,
int maxPageSize)
Constructor sets the max page size which is used by the caller to ensure they
do not ask for too many assets at once.
|
| Modifier and Type | Method and Description |
|---|---|
abstract List<String> |
findAssets(String searchString,
int startFrom,
int pageSize)
Return the list of assets that have the search string somewhere in their properties.
|
abstract List<String> |
getAssets(int startFrom,
int pageSize)
Return the next set of assets to process.
|
abstract List<String> |
getAssetsByEndpoint(String networkAddress,
int startFrom,
int pageSize)
Return the list of assets that have the same endpoint address.
|
abstract List<String> |
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.
|
abstract List<String> |
getAssetsByQualifiedName(String name,
int startFrom,
int pageSize)
Return the assets with the same qualified name.
|
int |
getMaxPageSize()
Return the maximum number of assets that can be returned by getAssets().
|
protected String userId
protected int maxPageSize
public DiscoveryAssetCatalogStore(String userId, int maxPageSize)
userId - calling usermaxPageSize - maximum number of assets that can be returned on a single request.public int getMaxPageSize()
public abstract List<String> getAssets(int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
startFrom - starting point of the querypageSize - maximum number of results to returnInvalidParameterException - 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.public abstract List<String> getAssetsByQualifiedName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - the qualified name to query onstartFrom - place to start in querypageSize - number of results to returnInvalidParameterException - 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.public abstract List<String> getAssetsByName(String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
name - name to query forstartFrom - place to start in querypageSize - number of results to returnInvalidParameterException - 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.public abstract List<String> findAssets(String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
searchString - value to search forstartFrom - place to start in querypageSize - number of results to returnInvalidParameterException - 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.public abstract List<String> getAssetsByEndpoint(String networkAddress, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
networkAddress - address to query onstartFrom - place to start in querypageSize - number of results to returnInvalidParameterException - 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.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.