public class GovernedAssetHandler extends Object
| Constructor and Description |
|---|
GovernedAssetHandler(String serviceName,
OMRSRepositoryConnector repositoryConnector)
Construct the connection handler with a link to the property handlers's connector and this access service's
official name.
|
| Modifier and Type | Method and Description |
|---|---|
GovernedAsset |
getGovernedAsset(String userId,
String assetGuid)
Returns the list of governed assets with associated tags
|
List<GovernedAsset> |
getGovernedAssets(String userId,
List<String> classification,
List<String> type)
Returns the list of governed assets with associated tags
|
public GovernedAssetHandler(String serviceName, OMRSRepositoryConnector repositoryConnector) throws MetadataServerException
serviceName - - name of this servicerepositoryConnector - - connector to the property handlers.MetadataServerException - - there is a problem retrieving information from the metadata serverpublic List<GovernedAsset> getGovernedAssets(String userId, List<String> classification, List<String> type) throws InvalidParameterException, UserNotAuthorizedException, MetadataServerException, ClassificationNotFoundException, TypeNotFoundException
userId - - String - userId of user making request.classification - - classifications to start query from .type - - types to start query from.InvalidParameterException - - one of the parameters is null or invalid.ClassificationNotFoundException - - cannot find all the classifications specifiedTypeNotFoundException - - cannot find all the types specifiedMetadataServerException - - there is a problem retrieving information from the metadata serverUserNotAuthorizedException - - the requesting user is not authorized to issue this request.public GovernedAsset getGovernedAsset(String userId, String assetGuid) throws InvalidParameterException, MetadataServerException, UserNotAuthorizedException, GuidNotFoundException
userId - - String - userId of user making request.assetGuid - - guid of the asset component.InvalidParameterException - - one of the parameters is null or invalid.GuidNotFoundException - - specified guid is not foundMetadataServerException - - there is a problem retrieving information from the metadata server.UserNotAuthorizedException - - the requesting user is not authorized to issue this request.Copyright © 2017–2018 ODPi. All rights reserved.