public class AssetHandler extends Object implements AssetConsumerAssetInterface
| Constructor and Description |
|---|
AssetHandler(String serviceName,
OMRSRepositoryConnector repositoryConnector)
Construct the connection handler with a link to the property server's connector and this access service's
official name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAssetForConnection(String userId,
String connectionGUID)
Returns the unique identifier for the asset connected to the requested connection.
|
String |
getAssetForConnectionName(String userId,
String connectionName)
Returns the asset corresponding to the supplied connection name.
|
AssetUniverse |
getAssetProperties(String userId,
String assetGUID)
Returns a comprehensive collection of properties about the requested asset.
|
public AssetHandler(String serviceName, OMRSRepositoryConnector repositoryConnector)
serviceName - name of this servicerepositoryConnector - connector to the property server.public String getAssetForConnection(String userId, String connectionGUID) throws InvalidParameterException, NoConnectedAssetException, PropertyServerException, UserNotAuthorizedException
getAssetForConnection in interface AssetConsumerAssetInterfaceuserId - the userId of the requesting user.connectionGUID - unique identifier for the connection.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property server.NoConnectedAssetException - there is no asset associated with this connection.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public String getAssetForConnectionName(String userId, String connectionName) throws InvalidParameterException, AmbiguousConnectionNameException, NoConnectedAssetException, PropertyServerException, UserNotAuthorizedException
getAssetForConnectionName in interface AssetConsumerAssetInterfaceuserId - userId of user making request.connectionName - this may be the qualifiedName or displayName of the connection.InvalidParameterException - one of the parameters is null or invalid.AmbiguousConnectionNameException - there is more than one connection defined for this name.NoConnectedAssetException - there is no asset associated with this connection.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public AssetUniverse getAssetProperties(String userId, String assetGUID) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getAssetProperties in interface AssetConsumerAssetInterfaceuserId - userId of user making request.assetGUID - unique identifier for asset.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving the asset properties from the property servers).UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.