Interface TagApi
public interface TagApi
Contains all api operations for handling tags.
-
Method Summary
Modifier and TypeMethodDescriptionchangeTag(ChangeTagRequest changeTagRequest) Changes a tag.booleanReturns true if a tag with given name exists.booleanReturns true if a tag with givenidexists.findTags(FindTagsRequest findTagsRequest) Returns tags matching given search criteria.Returns a tag identified by givenid.getTagsByAssetId(UUID assetId) Retrieves all tags of given asset.voidmergeTags(MergeTagsRequest mergeTagsRequest) Merge two tags into one.voidRemove a tag.voidremoveTags(List<UUID> tagsIds) Removes the tags identified by given ids.
-
Method Details
-
getTag
Returns a tag identified by givenid.- Parameters:
tagId- theidof the tag- Returns:
- the tag
-
findTags
@SecurityAuditMethod(resultFormatter=com.collibra.dgc.core.api.internal.security.audit.formatter.PagedResponseFormatter.class) PagedResponse<Tag> findTags(FindTagsRequest findTagsRequest) Returns tags matching given search criteria.- Parameters:
findTagsRequest- the search criteria for tags- Returns:
- the found tags
-
getTagsByAssetId
@SecurityAuditMethod(resultFormatter=com.collibra.audit.formatter.CollectionFormatter.class) List<Tag> getTagsByAssetId(UUID assetId) Retrieves all tags of given asset.- Parameters:
assetId- Theidof an asset- Returns:
- tags of given asset
-
changeTag
Changes a tag.- Parameters:
changeTagRequest- the information required to be able to change the tag- Returns:
- the modified tag
-
removeTag
Remove a tag.- Parameters:
tagId- Id of the tag to be removed.
-
removeTags
Removes the tags identified by given ids.- Parameters:
tagsIds- theids of the tags to remove
-
mergeTags
Merge two tags into one. All assets which has been tagged by tag with id 'fromId' will be tagged by tag with id 'toId'. Tag with id 'fromId' will be removed.- Parameters:
mergeTagsRequest- contains "fromId" and "toId" of the tags
-
exists
Returns true if a tag with givenidexists.- Parameters:
tagId- theidof the tag- Returns:
- true if a tag with given
idexists,falseotherwise
-
exists
Returns true if a tag with given name exists.- Parameters:
tagName- the name of the tag- Returns:
- true if a tag with given tagName exists,
falseotherwise
-