public class GlossaryHandler extends Object implements AssetConsumerGlossaryInterface
| Constructor and Description |
|---|
GlossaryHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
OMRSRepositoryHelper repositoryHelper,
RepositoryHandler repositoryHandler)
Construct the discovery engine configuration handler caching the objects
needed to operate within a single server instance.
|
| Modifier and Type | Method and Description |
|---|---|
GlossaryTerm |
getMeaning(String userId,
String guid)
Returns the glossary term object corresponding to the supplied glossary term GUID.
|
List<GlossaryTerm> |
getMeaningByName(String userId,
String name,
int startFrom,
int pageSize)
Returns the glossary term object corresponding to the supplied term name.
|
public GlossaryHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, OMRSRepositoryHelper repositoryHelper, RepositoryHandler repositoryHandler)
serviceName - name of the consuming serviceserverName - name of this server instanceinvalidParameterHandler - handler for invalid parametersrepositoryHelper - helper used by the convertersrepositoryHandler - handler for calling the repository servicespublic List<GlossaryTerm> getMeaningByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getMeaningByName in interface AssetConsumerGlossaryInterfaceuserId - String - userId of user making request.name - this may be the qualifiedName or displayName of the term.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public GlossaryTerm getMeaning(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
getMeaning in interface AssetConsumerGlossaryInterfaceuserId - String - userId of user making request.guid - the unique id for the glossary term within the property server.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem retrieving information from the property (metadata) server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2019 ODPi. All rights reserved.