@Validated
public interface TagPersistenceService
| Modifier and Type | Method and Description |
|---|---|
void |
createTagIfNotExists(@NotBlank(message="Tag cannot be blank") java.lang.String tag)
Attempt to create a tag in the system if it doesn't already exist.
|
long |
deleteUnusedTags(@NotNull java.time.Instant createdThreshold)
Delete all tags from the database that aren't referenced which were created before the supplied created
threshold.
|
void createTagIfNotExists(@NotBlank(message="Tag cannot be blank")
@NotBlank(message="Tag cannot be blank") java.lang.String tag)
tag - the tag to create. Not blank.long deleteUnusedTags(@NotNull
@NotNull java.time.Instant createdThreshold)
createdThreshold - The instant in time where tags created before this time that aren't referenced
will be deleted. Inclusive