Interface ItemTagService
public interface ItemTagService
Service manages the ITEM_TAG
Class.
All operations on tags are implemented as bulk operations.-
Method Summary
Modifier and TypeMethodDescriptionvoidbulkDelete(UUID ownerId, UUID targetId, ItemTagDto.ItemTagRMType targetType, Collection<UUID> ids) Performs abulkdelete operation for the givenItemTagids.bulkUpsert(UUID ownerId, UUID targetId, ItemTagDto.ItemTagRMType targetType, List<ItemTagDto> itemTagsDto) Performs abulkupdate/create operation for the givenItemTaginto the tag list of theowner.findItemTag(UUID ownerId, UUID targetId, ItemTagDto.ItemTagRMType targetType, Collection<UUID> ids, Collection<String> keys) Performs abulkget operation for the givenItemTagIDsand/orkeys.
-
Method Details
-
bulkUpsert
List<UUID> bulkUpsert(@Nonnull UUID ownerId, @Nonnull UUID targetId, @Nonnull ItemTagDto.ItemTagRMType targetType, @Nonnull List<ItemTagDto> itemTagsDto) Performs abulkupdate/create operation for the givenItemTaginto the tag list of theowner.- Parameters:
ownerId- Identifier of owner object, such as EHR.targetId- VERSIONED_OBJECT<T> Identifier of target.targetType- Type of the target object.itemTagsDto- Content of theItemTagcontaining thekey, valueparameter.- Returns:
- tagUUIDs of the update/create
ItemTags
-
findItemTag
List<ItemTagDto> findItemTag(@Nonnull UUID ownerId, @Nonnull UUID targetId, @Nonnull ItemTagDto.ItemTagRMType targetType, @Nonnull Collection<UUID> ids, @Nonnull Collection<String> keys) Performs abulkget operation for the givenItemTagIDsand/orkeys.- Parameters:
ownerId- Identifier of owner object, such as EHR.targetId- VERSIONED_OBJECT<T> Identifier of target.targetType- Type of the target object.ids- IdentifierItemTagto search for.keys-ItemTagkeys to search for.- Returns:
- tags Matching the
ownerId, targetIdand optionalids, keys
-
bulkDelete
void bulkDelete(@Nonnull UUID ownerId, @Nonnull UUID targetId, @Nonnull ItemTagDto.ItemTagRMType targetType, @Nonnull Collection<UUID> ids) Performs abulkdelete operation for the givenItemTagids. This method will simply return in cases where the given IDs does not exist.- Parameters:
ownerId- Identifier of owner object, such as EHR.targetId- VERSIONED_OBJECT<T> Identifier of target.targetType- Type of the target object.ids- IdentifierItemTagto delete.
-