public interface MachineTagService
MachineTag
.Modifier and Type | Method and Description |
---|---|
int |
addMachineTag(@NotNull UUID targetEntityKey,
@NotNull @Valid MachineTag machineTag)
Add a new
MachineTag to a target entity. |
int |
addMachineTag(@NotNull UUID targetEntityKey,
@NotNull String namespace,
@NotNull String name,
@NotNull String value)
Add a new
MachineTag to a target entity. |
int |
addMachineTag(@NotNull UUID targetEntityKey,
@NotNull TagName tagName,
@NotNull String value)
Add a new
MachineTag to a target entity. |
void |
deleteMachineTag(@NotNull UUID targetEntityKey,
int machineTagKey)
Delete an existing
MachineTag 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.
|
List<MachineTag> |
listMachineTags(@NotNull UUID targetEntityKey)
List all machine tags of the entity.
|
int addMachineTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @Valid @NotNull @Valid MachineTag machineTag)
MachineTag
to a target entity.targetEntityKey
- key of target entitymachineTag
- tag to addint addMachineTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull TagName tagName, @NotNull @NotNull String value)
MachineTag
to a target entity.targetEntityKey
- key of target entitytagName
- TagName
value
- tag value to addint addMachineTag(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull String namespace, @NotNull @NotNull String name, @NotNull @NotNull String value)
MachineTag
to a target entity.targetEntityKey
- key of target entitynamespace
- tag namespacename
- name of the tag to addvalue
- value of the tag to addvoid deleteMachineTag(@NotNull @NotNull UUID targetEntityKey, int machineTagKey)
MachineTag
from a tagged entity by tag key.targetEntityKey
- key of tagged entitymachineTagKey
- key of the tag to deletevoid deleteMachineTags(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull TagNamespace tagNamespace)
targetEntityKey
- key of tagged entitytagNamespace
- TagNamespace
void deleteMachineTags(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull String namespace)
targetEntityKey
- key of tagged entitynamespace
- tag namespacevoid deleteMachineTags(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull TagName tagName)
targetEntityKey
- key of tagged entitytagName
- TagName
void deleteMachineTags(@NotNull @NotNull UUID targetEntityKey, @NotNull @NotNull String namespace, @NotNull @NotNull String name)
targetEntityKey
- key of tagged entitynamespace
- tag namespacename
- TagName
List<MachineTag> listMachineTags(@NotNull @NotNull UUID targetEntityKey)
targetEntityKey
- key of the entityCopyright © 2024 Global Biodiversity Information Facility (GBIF). All rights reserved.