Package org.gbif.api.service.registry
Interface TagService
- All Known Subinterfaces:
CollectionEntityService<T>,CollectionService,DatasetService,InstallationService,InstitutionService,NetworkEntityService<T>,NetworkService,NodeService,OrganizationService
public interface TagService
Service provides a set of operations on
Tag.-
Method Summary
Modifier and TypeMethodDescriptionintAdd a new Tag to a target entity.intAdd a new Tag to a target entity.voidDelete an existing Tag from a tagged entity by tag key.List all tags of a tagged entity.
-
Method Details
-
addTag
Add a new Tag to a target entity.- Parameters:
targetEntityKey- key of target entityvalue- Tag to add- Returns:
- key of Tag added
-
addTag
Add a new Tag to a target entity.- Parameters:
targetEntityKey- key of target entitytag- Tag to add- Returns:
- key of Tag added
-
deleteTag
Delete an existing Tag from a tagged entity by tag key.- Parameters:
taggedEntityKey- key of tagged entitytagKey- Tag key to delete
-
listTags
List all tags of a tagged entity.- Parameters:
taggedEntityKey- key of tagged entityowner- owner- Returns:
- list of tags that belong to the entity and owner
-