Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsminto2009-08-28 16:00:07 -0400
committersminto2009-08-28 16:00:07 -0400
commit73b181c9568fe77a1be2122afed7ee8553d77218 (patch)
treedc77beec2fa22908d79426aa51da7a0f274d2423 /org.eclipse.mylyn.tasks.core
parentc06e4cc776f21c09efd24e740ca88d1e4dab1704 (diff)
downloadorg.eclipse.mylyn.tasks-73b181c9568fe77a1be2122afed7ee8553d77218.tar.gz
org.eclipse.mylyn.tasks-73b181c9568fe77a1be2122afed7ee8553d77218.tar.xz
org.eclipse.mylyn.tasks-73b181c9568fe77a1be2122afed7ee8553d77218.zip
ASSIGNED - bug 207623: [api] add support for deleting a task from repository
https://bugs.eclipse.org/bugs/show_bug.cgi?id=207623
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java20
1 files changed, 20 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
index 7ed6a76f5..12cd05865 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java
@@ -72,6 +72,15 @@ public abstract class AbstractRepositoryConnector {
}
/**
+ * Whether the connector can delete the task on the Task Repository
+ *
+ * @since 3.3
+ */
+ public boolean canDeleteTask(TaskRepository repository, ITask task) {
+ return false;
+ }
+
+ /**
* @return the unique kind of the repository, e.g. "bugzilla"
* @since 2.0
*/
@@ -240,6 +249,17 @@ public abstract class AbstractRepositoryConnector {
TaskDataCollector collector, ISynchronizationSession session, IProgressMonitor monitor);
/**
+ * Delete the task from the server
+ *
+ * @throws UnsupportedOperationException
+ * if this is not implemented by the connector
+ * @since 3.3
+ */
+ public IStatus deleteTask(TaskRepository repository, ITask task, IProgressMonitor monitor) throws CoreException {
+ throw new UnsupportedOperationException();
+ }
+
+ /**
* Hook into the synchronization process.
*
* @since 3.0

Back to the top