public class InformalTagHandler<B> extends OpenMetadataAPIGenericHandler<B>
auditLog, beanClass, converter, defaultZones, errorHandler, invalidParameterHandler, localServerUserId, publishZones, repositoryHandler, repositoryHelper, securityVerifier, serverName, serviceName, supportedZones| Constructor and Description |
|---|
InformalTagHandler(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 for informal tags.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTagToElement(String userId,
String externalSourceGUID,
String externalSourceName,
String elementGUID,
String elementGUIDParameterName,
String elementType,
String tagGUID,
String tagGUIDParameterName,
boolean isPublic,
String methodName)
Adds a tag (either private of public) to the requested element.
|
void |
addTagToElement(String userId,
String externalSourceGUID,
String externalSourceName,
String elementGUID,
String elementGUIDParameterName,
String elementType,
String tagGUID,
String tagGUIDParameterName,
List<String> suppliedSupportedZones,
boolean isPublic,
String methodName)
Adds a tag (either private of public) to the requested element.
|
int |
countTags(String userId,
String elementGUID,
String methodName)
Count the number of informal tags attached to a supplied entity.
|
String |
createTag(String userId,
String externalSourceGUID,
String externalSourceName,
String tagName,
String tagDescription,
boolean isPublic,
String methodName)
Creates a new informal tag and returns the unique identifier for it.
|
void |
deleteTag(String userId,
String externalSourceGUID,
String externalSourceName,
String tagGUID,
String tagGUIDParameterName,
List<String> serviceSupportedZones,
String methodName)
Removes a tag from the repository.
|
void |
deleteTag(String userId,
String externalSourceGUID,
String externalSourceName,
String tagGUID,
String tagGUIDParameterName,
String methodName)
Removes a tag from the repository.
|
List<B> |
findMyTags(String userId,
String searchString,
String searchStringParameterName,
int startFrom,
int pageSize,
String methodName)
Return the list of private tags for the user matching the supplied searchString.
|
List<B> |
findTags(String userId,
String searchString,
String searchStringParameterName,
int startFrom,
int pageSize,
String methodName)
Return the list of tags matching the supplied searchString.
|
List<B> |
getAttachedTags(String userId,
String elementGUID,
String elementGUIDParameterName,
String elementTypeName,
int startingFrom,
int pageSize,
String methodName)
Return the informal tags attached to a supplied entity.
|
List<B> |
getAttachedTags(String userId,
String elementGUID,
String elementGUIDParameterName,
String elementTypeName,
List<String> serviceSupportedZones,
int startingFrom,
int pageSize,
String methodName)
Return the informal tags attached to a supplied entity.
|
List<B> |
getMyTagsByName(String userId,
String name,
String nameParameterName,
int startFrom,
int pageSize,
String methodName)
Return the list of tags exactly matching the supplied name.
|
B |
getTag(String userId,
String guid,
String guidParameterName,
List<String> serviceSupportedZones,
String methodName)
Return the tag for the supplied unique identifier (guid).
|
B |
getTag(String userId,
String guid,
String guidParameterName,
String methodName)
Return the tag for the supplied unique identifier (guid).
|
List<B> |
getTagsByName(String userId,
String name,
String nameParameterName,
int startFrom,
int pageSize,
String methodName)
Return the list of tags exactly matching the supplied name.
|
void |
removeTagFromElement(String userId,
String externalSourceGUID,
String externalSourceName,
String elementGUID,
String elementGUIDParameterName,
String elementType,
String tagGUID,
String tagGUIDParameterName,
List<String> suppliedSupportedZones,
String methodName)
Removes a tag from the element.
|
void |
updateTagDescription(String userId,
String externalSourceGUID,
String externalSourceName,
String tagGUID,
String tagGUIDParameterName,
String tagDescription,
String methodName)
Updates the description of an existing tag (either private of public).
|
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 InformalTagHandler(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 int countTags(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> getAttachedTags(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the identifier is attached toelementGUIDParameterName - name of parameter supplying the GUIDelementTypeName - name of the type of object being attached tostartingFrom - 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> getAttachedTags(String userId, String elementGUID, String elementGUIDParameterName, String elementTypeName, List<String> serviceSupportedZones, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling userelementGUID - identifier for the entity that the identifier is attached toelementGUIDParameterName - name of parameter supplying the GUIDelementTypeName - 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 String createTag(String userId, String externalSourceGUID, String externalSourceName, String tagName, String tagDescription, boolean isPublic, 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 sourcetagName - name of the tag.tagDescription - (optional) description of the tag. Setting a description, particularly in a public tag
makes the tag more valuable to other users and can act as an embryonic glossary term.isPublic - flag indicating whether the attachment of the tag is public or notmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void updateTagDescription(String userId, String externalSourceGUID, String externalSourceName, String tagGUID, String tagGUIDParameterName, String tagDescription, 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 sourcetagGUID - unique identifier for the tag.tagGUIDParameterName - name of parameter supplying the GUIDtagDescription - description of the tag. Setting a description, particularly in a public tag
makes the tag 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 asset properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void deleteTag(String userId, String externalSourceGUID, String externalSourceName, String tagGUID, String tagGUIDParameterName, 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 sourcetagGUID - unique id for the tag.tagGUIDParameterName - name of parameter supplying the GUIDmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void deleteTag(String userId, String externalSourceGUID, String externalSourceName, String tagGUID, String tagGUIDParameterName, 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 sourcetagGUID - unique id for the tag.tagGUIDParameterName - name of parameter supplying the GUIDserviceSupportedZones - supported zones for calling servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the asset properties in the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public B getTag(String userId, String guid, String guidParameterName, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of the user making the requestguid - unique identifier of the tagguidParameterName - name of the parameter supplying the guidmethodName - 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 B getTag(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 tag.guidParameterName - name of the parameter supplying the guidserviceSupportedZones - list of zones that assets can be retrieved frommethodName - 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> getTagsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling username - name of tagnameParameterName - name of the parameter supplying the tag namestartFrom - 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> getMyTagsByName(String userId, String name, String nameParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling username - name of tagnameParameterName - name of the parameter supplying the tag namestartFrom - 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 List<B> findTags(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the searchString of the calling usersearchString - searchString of tag. This may include wild card characterssearchStringParameterName - name of parameter supplying the search stringstartFrom - 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 List<B> findMyTags(String userId, String searchString, String searchStringParameterName, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the searchString of the calling user.searchString - searchString of tag. This may include wild card characters.searchStringParameterName - name of parameter supplying the search stringstartFrom - 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 addTagToElement(String userId, String externalSourceGUID, String externalSourceName, String elementGUID, String elementGUIDParameterName, String elementType, String tagGUID, String tagGUIDParameterName, boolean isPublic, 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.tagGUID - unique id of the tag.tagGUIDParameterName - name of the parameter supplying the tagGUIDisPublic - flag indicating whether the attachment of the tag is public or notmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the tag properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void addTagToElement(String userId, String externalSourceGUID, String externalSourceName, String elementGUID, String elementGUIDParameterName, String elementType, String tagGUID, String tagGUIDParameterName, List<String> suppliedSupportedZones, boolean isPublic, 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.tagGUID - unique id of the tag.tagGUIDParameterName - name of the parameter supplying the tagGUIDsuppliedSupportedZones - list of zones supported by this serviceisPublic - flag indicating whether the attachment of the tag is public or notmethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem adding the tag properties to the property server.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void removeTagFromElement(String userId, String externalSourceGUID, String externalSourceName, String elementGUID, String elementGUIDParameterName, String elementType, String tagGUID, String tagGUIDParameterName, List<String> suppliedSupportedZones, 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 to unlink from tagelementGUIDParameterName - name of the parameter supplying the elementGUIDelementType - type of the element.tagGUID - unique id for the tag.tagGUIDParameterName - name of the parameter supplying the tagGUIDsuppliedSupportedZones - list of zones supported by this servicemethodName - calling methodInvalidParameterException - one of the parameters is null or invalid.PropertyServerException - there is a problem updating the tag 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.