public class InformalTagHandler extends FeedbackHandlerBase
invalidParameterHandler, lastAttachmentHandler, repositoryHandler, repositoryHelper, serverName, serviceName| Constructor and Description |
|---|
InformalTagHandler(String serviceName,
String serverName,
InvalidParameterHandler invalidParameterHandler,
RepositoryHandler repositoryHandler,
OMRSRepositoryHelper repositoryHelper,
LastAttachmentHandler lastAttachmentHandler)
Construct the handler information needed to interact with the repository services
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTagToAnchor(String userId,
String anchorGUID,
String anchorType,
String tagGUID,
boolean isPublic,
String methodName)
Adds a tag (either private of public) to an anchor.
|
int |
countTags(String userId,
String anchorGUID,
String methodName)
Count the number of informal tags attached to an anchor entity.
|
String |
createTag(String userId,
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 tagGUID,
String methodName)
Removes a tag from the repository.
|
List<InformalTag> |
findMyTags(String userId,
String searchString,
int startFrom,
int pageSize,
String methodName)
Return the list of private tags for the user matching the supplied searchString.
|
List<InformalTag> |
findTags(String userId,
String searchString,
int startFrom,
int pageSize,
String methodName)
Return the list of tags matching the supplied searchString.
|
List<InformalTag> |
getAttachedTags(String userId,
String anchorGUID,
String anchorTypeName,
int startingFrom,
int pageSize,
String methodName)
Return the informal tags attached to an anchor entity.
|
List<InformalTag> |
getMyTagsByName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return the list of tags exactly matching the supplied name.
|
InformalTag |
getTag(String userId,
String guid,
String methodName)
Return the tag for the supplied unique identifier (guid).
|
List<InformalTag> |
getTagsByName(String userId,
String name,
int startFrom,
int pageSize,
String methodName)
Return the list of tags exactly matching the supplied name.
|
void |
removeTagFromAnchor(String userId,
String anchorGUID,
String anchorType,
String tagGUID,
String methodName)
Removes a tag from the anchor that was added by this user.
|
void |
updateTagDescription(String userId,
String tagGUID,
String tagDescription,
String methodName)
Updates the description of an existing tag (either private of public).
|
countAttachments, getAttachmentLinks, getAttachments, visibleToUserpublic InformalTagHandler(String serviceName, String serverName, InvalidParameterHandler invalidParameterHandler, RepositoryHandler repositoryHandler, OMRSRepositoryHelper repositoryHelper, LastAttachmentHandler lastAttachmentHandler)
serviceName - 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 objectslastAttachmentHandler - handler for recording last attachmentpublic int countTags(String userId, String anchorGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - 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<InformalTag> getAttachedTags(String userId, String anchorGUID, String anchorTypeName, int startingFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - calling useranchorGUID - identifier for the entity that the identifier is attached toanchorTypeName - type name for anchorstartingFrom - 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 tagName, String tagDescription, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagName - 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 tagGUID, String tagDescription, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagGUID - unique identifier for the tag.tagDescription - 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 tagGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.tagGUID - unique id for the tag.methodName - 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 InformalTag getTag(String userId, String guid, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of the user making the request.guid - unique identifier of the tag.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<InformalTag> getTagsByName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.name - name of tag.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 List<InformalTag> getMyTagsByName(String userId, String name, int startFrom, int pageSize, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - the name of the calling user.name - name of tag.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 List<InformalTag> findTags(String userId, String searchString, 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.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 List<InformalTag> findMyTags(String userId, String searchString, 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.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 addTagToAnchor(String userId, String anchorGUID, String anchorType, String tagGUID, boolean isPublic, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.anchorGUID - unique id for the anchor.anchorType - type of the anchor.tagGUID - unique id of the tag.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 removeTagFromAnchor(String userId, String anchorGUID, String anchorType, String tagGUID, String methodName) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - userId of user making request.anchorGUID - unique id for the asset.anchorType - type of the anchor.tagGUID - unique id for the tag.methodName - 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.Copyright © 2018–2019 ODPi. All rights reserved.