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 onTag
.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
addTag(@NotNull UUID targetEntityKey, @NotNull @Valid Tag tag)
Add a new Tag to a target entity.int
addTag(@NotNull UUID targetEntityKey, @NotNull String value)
Add a new Tag to a target entity.void
deleteTag(@NotNull UUID taggedEntityKey, int tagKey)
Delete an existing Tag from a tagged entity by tag key.List<Tag>
listTags(@NotNull UUID taggedEntityKey, String owner)
List all tags of a tagged entity.
-
-
-
Method Detail
-
addTag
int addTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull String value)
Add a new Tag to a target entity.- Parameters:
targetEntityKey
- key of target entityvalue
- Tag to add- Returns:
- key of Tag added
-
addTag
int addTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid Tag tag)
Add a new Tag to a target entity.- Parameters:
targetEntityKey
- key of target entitytag
- Tag to add- Returns:
- key of Tag added
-
deleteTag
void deleteTag(@NotNull @NotNull UUID taggedEntityKey, int tagKey)
Delete an existing Tag from a tagged entity by tag key.- Parameters:
taggedEntityKey
- key of tagged entitytagKey
- Tag key to delete
-
-