public class AssetCatalogHandler extends Object
| Constructor and Description |
|---|
AssetCatalogHandler(String serverUserName,
String sourceName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryErrorHandler errorHandler,
List<String> supportedZones,
List<String> supportedTypesForSearch)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
AssetElements |
buildContextByType(String userId,
String entityGUID,
String entityTypeDefName) |
List<AssetDescription> |
getEntitiesFromNeighborhood(String serverName,
String userId,
String assetGUID,
SearchParameters searchParameters) |
List<Classification> |
getEntityClassificationByName(String userId,
String assetGUID,
String assetTypeName,
String classificationName)
Returns a list of the classification assigned to the given asset.
|
AssetDescription |
getEntityDetails(String userId,
String assetGUID,
String assetTypeName)
Return the requested entity and converting to Asset Catalog OMAS model
|
List<AssetDescription> |
getIntermediateAssets(String userId,
String startAssetGUID,
String endAssetGUID) |
List<Relationship> |
getLinkingRelationshipsBetweenAssets(String serverName,
String userId,
String startAssetGUID,
String endAssetGUID) |
List<Relationship> |
getRelationships(String userId,
String assetGUID,
String assetTypeName,
String relationshipTypeName,
Integer from,
Integer pageSize) |
List<Relationship> |
getRelationshipsByEntityGUID(String userId,
String assetGUID,
String assetTypeName)
Returns a list of the relationships for the given entity identifier.
|
List<Type> |
getSupportedTypes(String userId,
String typeName)
Returns supported types for search with all sub-types.
|
List<AssetElements> |
searchByType(String userId,
String searchCriteria,
SearchParameters searchParameters) |
public AssetCatalogHandler(String serverUserName, String sourceName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, RepositoryErrorHandler errorHandler, List<String> supportedZones, List<String> supportedTypesForSearch)
serverUserName - name of the local serversourceName - name of the componentinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectserrorHandler - provides common validation routines for the other handler classessupportedZones - configurable list of zones that Asset Catalog is allowed to serve Assets fromsupportedTypesForSearch - configurable list of supported types used for searchpublic AssetDescription getEntityDetails(String userId, String assetGUID, String assetTypeName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - user identifier that issues the callassetGUID - the asset identifierassetTypeName - the asset type nameInvalidParameterException - is thrown by the OMAS when a parameter is null or an invalid value.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.public List<Relationship> getRelationshipsByEntityGUID(String userId, String assetGUID, String assetTypeName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - user identifier that issues the callassetGUID - the asset identifierassetTypeName - the asset type nameUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorInvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.public List<Classification> getEntityClassificationByName(String userId, String assetGUID, String assetTypeName, String classificationName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - user identifier that issues the callassetGUID - the asset identifierassetTypeName - the asset type nameclassificationName - the classification type nameInvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.public List<Relationship> getLinkingRelationshipsBetweenAssets(String serverName, String userId, String startAssetGUID, String endAssetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, AssetCatalogException
serverName - name of the local serveruserId - user identifier that issues the callstartAssetGUID - the starting asset identifierendAssetGUID - the ending asset identifierAssetCatalogException - is thrown by the Asset Catalog OMAS when the asset passed on a request is not found in the repositoryInvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.public List<Relationship> getRelationships(String userId, String assetGUID, String assetTypeName, String relationshipTypeName, Integer from, Integer pageSize) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - user identifier that issues the callassetGUID - the asset identifierassetTypeName - the asset type namerelationshipTypeName - the relationship type namefrom - offsetpageSize - limit the number of the assets returnedUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorInvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.public List<AssetDescription> getIntermediateAssets(String userId, String startAssetGUID, String endAssetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, AssetCatalogException
userId - user identifier that issues the callstartAssetGUID - the starting asset identifierendAssetGUID - the ending asset identifierAssetCatalogException - is thrown by the Asset Catalog OMAS when the asset passed on a request is not found in the repositoryInvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.public List<AssetDescription> getEntitiesFromNeighborhood(String serverName, String userId, String assetGUID, SearchParameters searchParameters) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException, AssetCatalogException
serverName - name of the local serveruserId - user identifier that issues the callassetGUID - the asset identifiersearchParameters - additional parameters for searching and filteringAssetCatalogException - is thrown by the Asset Catalog OMAS when the asset passed on a request is not found in the repositoryInvalidParameterException - is thrown by the OMAG Service when a parameter is null or an invalid value.PropertyServerException - reporting errors when connecting to a metadata repository to retrieve properties about the connection and/or connectorUserNotAuthorizedException - is thrown by the OCF when a userId passed on a request is not authorized to perform the requested action.public List<AssetElements> searchByType(String userId, String searchCriteria, SearchParameters searchParameters) throws UserNotAuthorizedException, FunctionNotSupportedException, InvalidParameterException, PropertyErrorException, TypeErrorException, PagingErrorException, InvalidParameterException, RepositoryErrorException
userId - user identifier that issues the callsearchCriteria - search criteria string used for finding the entitiessearchParameters - additional parameters for searching and filteringUserNotAuthorizedException - - is thrown by an OMRS Connector when the supplied UserId
is not permitted to perform a specific operation on the metadata collection.FunctionNotSupportedException - - provides a checked exception for reporting that an
OMRS repository connector does not support the method calledInvalidParameterException - - is thrown by an OMRS Connector when the parameters passed to a repository connector are not validPropertyErrorException - - is thrown by an OMRS Connector when the properties defined for a specific entity
or relationship instance do not match the TypeDefs for the metadata collection.TypeErrorException - - is thrown by an OMRS Connector when the requested type for an instance is not represented by a known TypeDef.PagingErrorException - - is thrown by an OMRS Connector when the caller has passed invalid paging attributes on a search call.InvalidParameterException - - is thrown by the OMAG Service when a parameter is null or an invalid value.RepositoryErrorException - - there is a problem communicating with the metadata repository.public AssetElements buildContextByType(String userId, String entityGUID, String entityTypeDefName) throws UserNotAuthorizedException, PropertyServerException, InvalidParameterException
userId - user identifier that issues the callentityGUID - the identifier of the entityentityTypeDefName - the type name of the entityUserNotAuthorizedException - - is thrown by the OCF when a userId passed on a request is not
authorized to perform the requested action.PropertyServerException - - provides a checked exception for reporting errors when connecting to a
metadata repository to retrieve properties about the connection and/or connector.InvalidParameterException - - is thrown by the OMAS when a parameter is null or an invalid value.public List<Type> getSupportedTypes(String userId, String typeName)
userId - user identifier that issues the calltypeName - optional type nameCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.