public class SearchKeywordHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
SearchKeywordHandler(OpenMetadataAPIGenericConverter<B> converter,
Class<B> beanClass,
String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
String localServerUserId,
OpenMetadataServerSecurityVerifier securityVerifier,
List<String> supportedZones,
List<String> defaultZones,
List<String> publishZones,
AuditLog auditLog)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addKeywordToElement(String userId,
String externalSourceGUID,
String externalSourceName,
String elementGUID,
String elementGUIDParameterName,
String elementType,
String keywordGUID,
String keywordGUIDParameterName,
List<String> serviceSupportedZones,
String methodName)
Adds a keyword to the requested element.
|
int |
countKeywords(String userId,
String elementGUID,
String methodName)
Count the number of informal keywords attached to a supplied entity.
|
String |
createKeyword(String userId,
String externalSourceGUID,
String externalSourceName,
String keywordName,
String keywordDescription,
String methodName)
Creates a new keyword and returns the unique identifier for it.
|
void |
deleteKeyword(String userId,
String externalSourceGUID,
String externalSourceName,
String keywordGUID,
String methodName)
Removes a keyword from the repository.
|
List<B> |
findKeywords(String userId,
String searchString,
String searchStringParameterName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Return the list of keywords matching the supplied searchString.
|
List<B> |
getAttachedKeywords(String userId,
String startingGUID,
String startingGUIDParameterName,
String startingTypeName,
List<String> serviceSupportedZones,
int startingFrom,
int pageSize,
String methodName)
Return the keywords attached to a supplied entity.
|
B |
getKeyword(String userId,
String guid,
String guidParameterName,
List<String> serviceSupportedZones,
String methodName)
Return the keyword for the supplied unique identifier (guid).
|
List<B> |
getKeywordsByName(String userId,
String keyword,
String keywordParameterName,
List<String> serviceSupportedZones,
int startFrom,
int pageSize,
String methodName)
Return the list of keywords exactly matching the supplied keyword.
|
List<B> |
getRelatedKeywords(String userId,
String startingKeywordGUID,
String startingKeywordGUIDParameterName,
List<String> serviceSupportedZones,
int startingFrom,
int pageSize,
String methodName)
Return the keywords attached to a supplied entity.
|
void |
linkRelatedKeywords(String userId,
String externalSourceGUID,
String externalSourceName,
String keywordOneGUID,
String keywordOneGUIDParameterName,
String keywordTwoGUID,
String keywordTwoGUIDParameterName,
List<String> serviceSupportedZones,
String methodName)
Create a related keyword relationship between search keywords.
|
void |
removeKeywordFromElement(String userId,
String externalSourceGUID,
String externalSourceName,
String elementGUID,
String elementGUIDParameterName,
String elementType,
String keywordGUID,
String keywordGUIDParameterName,
List<String> serviceSupportedZones,
String methodName)
Removes the link between a keyword and an element.
|
void |
unlinkRelatedKeywords(String userId,
String externalSourceGUID,
String externalSourceName,
String keywordOneGUID,
String keywordOneGUIDParameterName,
String keywordTwoGUID,
String keywordTwoGUIDParameterName,
List<String> serviceSupportedZones,
String methodName)
Removes a relationship between keywords.
|
void |
updateKeywordDescription(String userId,
String externalSourceGUID,
String externalSourceName,
String keywordGUID,
String keywordGUIDParameterName,
String keywordDescription,
List<String> serviceSupportedZones,
String methodName)
Updates the description of an existing keyword.
|
archiveBeanInRepository, archiveBeanInRepository, countAttachments, createBeanFromTemplate, createBeanInRepository, deleteBeanInRepository, deleteBeanInRepository, findAttachmentLinks, findBeanGUIDs, findBeans, findBeans, findBeans, findBeans, findEntities, getAllAttachmentLinks, getAnchorsForAttachedElements, getAttachedElement, getAttachedElement, getAttachedElementGUID, getAttachedElementGUID, getAttachedElementGUIDs, getAttachedElementGUIDs, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedElements, getAttachedEntities, getAttachedEntities, getAttachedEntities, getAttachedEntity, getAttachedEntity, getAttachmentLinks, getAttachmentLinks, getAttachmentLinks, getBeanByUniqueName, getBeanByUniqueName, getBeanByValue, getBeanFromEntity, getBeanFromRepository, getBeanFromRepository, getBeanGUIDByUniqueName, getBeanGUIDByUniqueName, getBeanGUIDsByClassification, getBeanGUIDsByType, getBeanGUIDsByType, getBeanGUIDsByValue, getBeansByClassification, getBeansByCreator, getBeansByType, getBeansByType, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getBeansByValue, getEntitiesByType, getEntitiesByValue, getEntitiesByValue, getEntityByValue, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityFromRepository, getEntityGUIDByValue, getEntityGUIDsByValue, getRepositoryHelper, getServiceName, getUniqueAttachmentLink, getUniqueAttachmentLink, linkElementToElement, linkElementToElement, maintainSupplementaryProperties, relinkElementToNewElement, relinkElementToNewElement, removeClassificationFromRepository, setClassificationInRepository, setClassificationInRepository, setSecurityVerifier, unlinkAllElements, unlinkAllElements, unlinkConnectedElement, unlinkConnectedElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, unlinkElementFromElement, updateBeanEffectivityDates, updateBeanInRepository, updateBeanInRepository, updateBeanPropertyInRepository, updateBeanStatusInRepository, updateBeanStatusInRepository, updateClassificationEffectivityDates, updateElementToElementLink, updateElementToElementLink, updateRelationshipEffectivityDates, updateRelationshipProperties, validateAnchorEntity, validateAnchorEntity, verifyExternalSourceIdentitypublic SearchKeywordHandler(OpenMetadataAPIGenericConverter<B> converter, Class<B> beanClass, String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, String localServerUserId, OpenMetadataServerSecurityVerifier securityVerifier, List<String> supportedZones, List<String> defaultZones, List<String> publishZones, AuditLog auditLog)
converter - specific converter for this bean classbeanClass - name of bean class that is represented by the generic class BserviceName - name of this serviceserverName - name of the local serverinvalidParameterHandler - handler for managing parameter errorsrepositoryHandler - manages calls to the repository servicesrepositoryHelper - provides utilities for manipulating the repository services objectslocalServerUserId - userId for this serversecurityVerifier - open metadata security services verifiersupportedZones - list of zones that the access service is allowed to serve Asset instances from.defaultZones - list of zones that the access service should set in all new Asset instances.publishZones - list of zones that the access service sets up in published Asset instances.auditLog - destination for audit log events.public String createKeyword(String userId, String externalSourceGUID, String externalSourceName, String keywordName, String keywordDescription, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcekeywordName - name of the keyword.keywordDescription - (optional) description of the keyword. Setting a description, particularly in a public keyword
makes the keyword more valuable to other users and can act as an embryonic glossary term.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the keyword properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void updateKeywordDescription(String userId, String externalSourceGUID, String externalSourceName, String keywordGUID, String keywordGUIDParameterName, String keywordDescription, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcekeywordGUID - unique identifier for the keywordkeywordGUIDParameterName - parameter providing keywordGUIDkeywordDescription - description of the keyword. Setting a description, particularly in a public keyword
makes the keyword more valuable to other users and can act as an embryonic glossary term.serviceSupportedZones - supported zones for calling servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the keyword properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void deleteKeyword(String userId, String externalSourceGUID, String externalSourceName, String keywordGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcekeywordGUID - unique id for the keyword.methodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the keyword properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public int countKeywords(String userId, String elementGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the object is attached tomethodName - calling methodInvalidParameterException - the parameters are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> getAttachedKeywords(String userId, String startingGUID, String startingGUIDParameterName, String startingTypeName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userstartingGUID - identifier for the entity that the keyword is attached tostartingGUIDParameterName - name of parameter supplying the GUIDstartingTypeName - name of the type of object being attached toserviceSupportedZones - supported zones for calling servicestartingFrom - start position for resultspageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic List<B> getRelatedKeywords(String userId, String startingKeywordGUID, String startingKeywordGUIDParameterName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userstartingKeywordGUID - identifier for the entity that the keyword is attached tostartingKeywordGUIDParameterName - name of parameter supplying the GUIDserviceSupportedZones - supported zones for calling servicestartingFrom - start position for resultspageSize - maximum number of resultsmethodName - calling methodInvalidParameterException - the input properties are invalidUserNotAuthorizedException - user not authorized to issue this requestPropertyServerException - problem accessing the property serverpublic B getKeyword(String userId, String guid, String guidParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of the user making the request.guid - unique identifier of the keyword.guidParameterName - name of the parameter supplying the GUIDserviceSupportedZones - supported zones for calling servicemethodName - calling methodInvalidParameterException - the userId or guid is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<B> getKeywordsByName(String userId, String keyword, String keywordParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the keyword of the calling userkeyword - keyword of keywordkeywordParameterName - parameter providing keywordserviceSupportedZones - list of supported zones for this servicestartFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to returnmethodName - calling methodInvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<B> findKeywords(String userId, String searchString, String searchStringParameterName, List<String> serviceSupportedZones, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the searchString of the calling user.searchString - searchString of keyword. This may include wild card characters.searchStringParameterName - name of parameter providing search stringserviceSupportedZones - list of supported zones for this service.startFrom - index of the list ot start from (0 for start)pageSize - maximum number of elements to return.methodName - calling methodInvalidParameterException - the userId is null or invalid.PropertyServerException - there is a problem retrieving information from the property server(s).UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void addKeywordToElement(String userId, String externalSourceGUID, String externalSourceName, String elementGUID, String elementGUIDParameterName, String elementType, String keywordGUID, String keywordGUIDParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceelementGUID - unique id for the element.elementGUIDParameterName - name of the parameter supplying the elementGUIDelementType - type of the element.keywordGUID - unique id of the keyword.keywordGUIDParameterName - name of the parameter supplying the keywordOneGUIDserviceSupportedZones - list of zones supported by this servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the keyword properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void removeKeywordFromElement(String userId, String externalSourceGUID, String externalSourceName, String elementGUID, String elementGUIDParameterName, String elementType, String keywordGUID, String keywordGUIDParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourceelementGUID - unique id for the referenceable to connect toelementGUIDParameterName - name of the parameter supplying the elementGUIDelementType - type of the elementkeywordGUID - unique id for the keywordkeywordGUIDParameterName - name of parameter supplying keywordGUIDserviceSupportedZones - list of supported zones for this servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the keyword properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void linkRelatedKeywords(String userId, String externalSourceGUID, String externalSourceName, String keywordOneGUID, String keywordOneGUIDParameterName, String keywordTwoGUID, String keywordTwoGUIDParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making requestexternalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcekeywordOneGUID - unique id for the first keywordkeywordOneGUIDParameterName - name of the parameter supplying the keywordOneGUIDkeywordTwoGUID - unique id of the second keywordkeywordTwoGUIDParameterName - name of the parameter supplying the keywordTwoGUIDserviceSupportedZones - supported zones for calling servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the keyword properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void unlinkRelatedKeywords(String userId, String externalSourceGUID, String externalSourceName, String keywordOneGUID, String keywordOneGUIDParameterName, String keywordTwoGUID, String keywordTwoGUIDParameterName, List<String> serviceSupportedZones, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.externalSourceGUID - guid of the software server capability entity that represented the external source - null for localexternalSourceName - name of the software server capability entity that represented the external sourcekeywordOneGUID - unique id for the first keyword.keywordOneGUIDParameterName - name of the parameter supplying the keywordOneGUIDkeywordTwoGUID - unique id for the second keyword.keywordTwoGUIDParameterName - name of parameter supplying keywordTwoGUIDserviceSupportedZones - list of supported zones for this servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the keyword properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.