public class GovernanceClassificationDefHandler extends Object
| Constructor and Description |
|---|
GovernanceClassificationDefHandler(String serviceName,
OMRSRepositoryConnector repositoryConnector)
Construct the handler with a link to the repository connector
|
| Modifier and Type | Method and Description |
|---|---|
GovernanceClassificationDef |
getGovernanceClassificationDef(String userId,
String tagguid)
Returns a single tag definitions.
|
List<GovernanceClassificationDef> |
getGovernanceClassificationDefs(String userId,
List<String> classification)
Returns the list of tag definitions.
|
public GovernanceClassificationDefHandler(String serviceName, OMRSRepositoryConnector repositoryConnector) throws MetadataServerException
serviceName - - name of this servicerepositoryConnector - - connector to the metadata repository connectorMetadataServerException - problem communicating with the repositorypublic List<GovernanceClassificationDef> getGovernanceClassificationDefs(String userId, List<String> classification) throws InvalidParameterException, MetadataServerException, ClassificationNotFoundException, UserNotAuthorizedException
userId - - String - userId of user making request.classification - - classifications to start query fromInvalidParameterException - - one of the parameters is null or invalid.ClassificationNotFoundException - - cannot find all the classifications specified.MetadataServerException - - there is a problem retrieving information from the metadata serverUserNotAuthorizedException - - the requesting user is not authorized to issue this request.public GovernanceClassificationDef getGovernanceClassificationDef(String userId, String tagguid) throws InvalidParameterException, MetadataServerException, UserNotAuthorizedException, GuidNotFoundException
NOTE: Currently am returning the same type (list) to keep API return consistent
userId - - String - userId of user making request.tagguid - - tag guidInvalidParameterException - - one of the parameters is null or invalid.MetadataServerException - - there is a problem retrieving information from the property (metadata)
handlers.UserNotAuthorizedException - - the requesting user is not authorized to issue this request.GuidNotFoundException - - the requesting user is not authorized to issue this request.Copyright © 2017–2018 ODPi. All rights reserved.