public interface JpaTagPersistenceService extends TagPersistenceService
TagPersistenceService to add APIs for entity retrieval in addition to DTO.| Modifier and Type | Method and Description |
|---|---|
java.util.Optional<TagEntity> |
getTag(@NotBlank(message="Tag string to find can\'t be blank") java.lang.String tag)
Get a tag entity reference for the given tag string.
|
java.util.Set<TagEntity> |
getTags(@NotNull java.util.Set<java.lang.String> tags)
Get all the tag entity references that match the input set of tag strings.
|
createTagIfNotExists, deleteUnusedTagsjava.util.Optional<TagEntity> getTag(@NotBlank(message="Tag string to find can\'t be blank") @NotBlank(message="Tag string to find can\'t be blank") java.lang.String tag)
tag - The tag to getOptional or Optional.empty()java.util.Set<TagEntity> getTags(@NotNull @NotNull java.util.Set<java.lang.String> tags)
tags - the tag strings to search fortags doesn't exist in database the set returned
will consist of all other discovered tags. E.G. tags is ("a", "b", "c") and only "b" and "c" are
in the database the returned set will contain "b" and "c". The method won't fail.