From eb323ce27fc8a9c3ea2c5fe95d6be80b4512de94 Mon Sep 17 00:00:00 2001 From: Sam Bosley Date: Fri, 18 Jan 2013 17:18:25 -0800 Subject: [PATCH] Added a deleteLink method for tasks to tags --- astrid/plugin-src/com/todoroo/astrid/tags/TagService.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/astrid/plugin-src/com/todoroo/astrid/tags/TagService.java b/astrid/plugin-src/com/todoroo/astrid/tags/TagService.java index 24d5ce896..2ab93f48b 100644 --- a/astrid/plugin-src/com/todoroo/astrid/tags/TagService.java +++ b/astrid/plugin-src/com/todoroo/astrid/tags/TagService.java @@ -288,6 +288,12 @@ public final class TagService { } } + public void deleteLink(String taskUuid, String tagUuid) { + Metadata deleteTemplate = new Metadata(); + deleteTemplate.setValue(Metadata.DELETION_DATE, DateUtilities.now()); + metadataDao.update(Criterion.and(TagMetadata.TASK_UUID.eq(taskUuid), TagMetadata.TAG_UUID.eq(tagUuid)), deleteTemplate); + } + /** * Return tags on the given task *