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 TypeMethodDescriptionintaddMachineTag(@NotNull UUID targetEntityKey, @NotNull @Valid MachineTag machineTag) Add a newMachineTagto a target entity.intaddMachineTag(@NotNull UUID targetEntityKey, @NotNull String namespace, @NotNull String name, @NotNull String value) Add a newMachineTagto a target entity.intaddMachineTag(@NotNull UUID targetEntityKey, @NotNull TagName tagName, @NotNull String value) Add a newMachineTagto a target entity.voiddeleteMachineTag(@NotNull UUID targetEntityKey, int machineTagKey) Delete an existingMachineTagfrom a tagged entity by tag key.voiddeleteMachineTags(@NotNull UUID targetEntityKey, @NotNull String namespace) Delete machine tags from a tagged entity by tag namespace.voiddeleteMachineTags(@NotNull UUID targetEntityKey, @NotNull String namespace, @NotNull String name) Delete machine tags from a tagged entity by namespace and tag name.voiddeleteMachineTags(@NotNull UUID targetEntityKey, @NotNull TagName tagName) Delete machine tags from a tagged entity by tag name.voiddeleteMachineTags(@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 newMachineTagto 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 newMachineTagto a target entity.- Parameters:
targetEntityKey- key of target entitytagName-TagNamevalue- 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 newMachineTagto 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 existingMachineTagfrom 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
-