Package org.gbif.api.service.registry
Interface MachineTagService
- All Known Subinterfaces:
CollectionEntityService<T>
,CollectionService
,DatasetService
,InstallationService
,InstitutionService
,NetworkEntityService<T>
,NetworkService
,NodeService
,OrganizationService
public interface MachineTagService
Service provides a set of operations on
MachineTag
.-
Method Summary
Modifier and TypeMethodDescriptionint
addMachineTag
(@NotNull UUID targetEntityKey, @NotNull @Valid MachineTag machineTag) Add a newMachineTag
to a target entity.int
addMachineTag
(@NotNull UUID targetEntityKey, @NotNull String namespace, @NotNull String name, @NotNull String value) Add a newMachineTag
to a target entity.int
addMachineTag
(@NotNull UUID targetEntityKey, @NotNull TagName tagName, @NotNull String value) Add a newMachineTag
to a target entity.void
deleteMachineTag
(@NotNull UUID targetEntityKey, int machineTagKey) Delete an existingMachineTag
from a tagged entity by tag key.void
deleteMachineTags
(@NotNull UUID targetEntityKey, @NotNull String namespace) Delete machine tags from a tagged entity by tag namespace.void
deleteMachineTags
(@NotNull UUID targetEntityKey, @NotNull String namespace, @NotNull String name) Delete machine tags from a tagged entity by namespace and tag name.void
deleteMachineTags
(@NotNull UUID targetEntityKey, @NotNull TagName tagName) Delete machine tags from a tagged entity by tag name.void
deleteMachineTags
(@NotNull UUID targetEntityKey, @NotNull TagNamespace tagNamespace) Delete machine tags from a tagged entity by tag namespace.listMachineTags
(@NotNull UUID targetEntityKey) List all machine tags of the entity.
-
Method Details
-
addMachineTag
int addMachineTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid MachineTag machineTag) Add a newMachineTag
to a target entity.- Parameters:
targetEntityKey
- key of target entitymachineTag
- tag to add- Returns:
- key of tag added
-
addMachineTag
int addMachineTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull TagName tagName, @NotNull @NotNull String value) Add a newMachineTag
to a target entity.- Parameters:
targetEntityKey
- key of target entitytagName
-TagName
value
- tag value to add- Returns:
- key of tag added
-
addMachineTag
int addMachineTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull String namespace, @NotNull @NotNull String name, @NotNull @NotNull String value) Add a newMachineTag
to a target entity.- Parameters:
targetEntityKey
- key of target entitynamespace
- tag namespacename
- name of the tag to addvalue
- value of the tag to add- Returns:
- key of tag added
-
deleteMachineTag
Delete an existingMachineTag
from a tagged entity by tag key.- Parameters:
targetEntityKey
- key of tagged entitymachineTagKey
- key of the tag to delete
-
deleteMachineTags
void deleteMachineTags(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull TagNamespace tagNamespace) Delete machine tags from a tagged entity by tag namespace.- Parameters:
targetEntityKey
- key of tagged entitytagNamespace
-TagNamespace
-
deleteMachineTags
Delete machine tags from a tagged entity by tag namespace.- Parameters:
targetEntityKey
- key of tagged entitynamespace
- tag namespace
-
deleteMachineTags
Delete machine tags from a tagged entity by tag name.- Parameters:
targetEntityKey
- key of tagged entitytagName
-TagName
-
deleteMachineTags
void deleteMachineTags(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull String namespace, @NotNull @NotNull String name) Delete machine tags from a tagged entity by namespace and tag name.- Parameters:
targetEntityKey
- key of tagged entitynamespace
- tag namespacename
-TagName
-
listMachineTags
List all machine tags of the entity.- Parameters:
targetEntityKey
- key of the entity- Returns:
- list of tags that belong to the entity
-