Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Davis2014-10-06 17:24:16 -0400
committerSam Davis2015-03-11 17:02:17 -0400
commitdd62414dd526d7a08da6f8f3ecd85dd52d049e2f (patch)
tree5e3d168f2af0714f415309137815bd33a6ff74a7 /org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal
parent66369afb5c49a63829059cb2ec1d9663f2159833 (diff)
downloadorg.eclipse.mylyn.tasks-dd62414dd526d7a08da6f8f3ecd85dd52d049e2f.tar.gz
org.eclipse.mylyn.tasks-dd62414dd526d7a08da6f8f3ecd85dd52d049e2f.tar.xz
org.eclipse.mylyn.tasks-dd62414dd526d7a08da6f8f3ecd85dd52d049e2f.zip
446091: [api] allow clients to determine when the current user owns an
ITask Change-Id: Ie6fb5d4c27fd31be4f4127be7fc82e892b503466 Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=446091
Diffstat (limited to 'org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
index a632c09bf..6eeefead6 100644
--- a/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
+++ b/org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/internal/tasks/core/AbstractTask.java
@@ -93,6 +93,8 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
private boolean changed;
+ private String ownerId;
+
public AbstractTask(String repositoryUrl, String taskId, String summary) {
super(RepositoryTaskHandleUtil.getHandle(repositoryUrl, taskId));
this.repositoryUrl = repositoryUrl;
@@ -172,6 +174,18 @@ public abstract class AbstractTask extends AbstractTaskContainer implements ITas
}
}
+ public String getOwnerId() {
+ return ownerId;
+ }
+
+ public void setOwnerId(String ownerId) {
+ if (!areEqual(this.ownerId, ownerId)) {
+ String oldValue = this.ownerId;
+ this.ownerId = (ownerId != null) ? ownerId.intern() : null;
+ firePropertyChange("ownerId", oldValue, ownerId); //$NON-NLS-1$
+ }
+ }
+
/**
* Return the status, such as an error or warning, associated with this task.
*/

Back to the top