Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorspingel2010-02-28 22:22:42 -0500
committerspingel2010-02-28 22:22:42 -0500
commit864f1a68d01f919a723c80b840b420f4fc9374e8 (patch)
treef41218e1669707dcac4d5538d48b555060fd7739 /org.eclipse.mylyn.tasks.core
parentf82c7826d750e25ee85532d4dcd86e2cb680e08d (diff)
downloadorg.eclipse.mylyn.tasks-864f1a68d01f919a723c80b840b420f4fc9374e8.tar.gz
org.eclipse.mylyn.tasks-864f1a68d01f919a723c80b840b420f4fc9374e8.tar.xz
org.eclipse.mylyn.tasks-864f1a68d01f919a723c80b840b420f4fc9374e8.zip
NEW - bug 296963: [patch][api] allow different URL's for opening task in browser and copying task details
https://bugs.eclipse.org/bugs/show_bug.cgi?id=296963
Diffstat (limited to 'org.eclipse.mylyn.tasks.core')
-rw-r--r--org.eclipse.mylyn.tasks.core/src/org/eclipse/mylyn/tasks/core/AbstractRepositoryConnector.java18
1 files changed, 18 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 56a083b72..b330511c5 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
@@ -11,6 +11,7 @@
package org.eclipse.mylyn.tasks.core;
+import java.net.URL;
import java.util.Collection;
import java.util.Date;
@@ -192,6 +193,23 @@ public abstract class AbstractRepositoryConnector {
public abstract String getTaskUrl(String repositoryUrl, String taskId);
/**
+ * Returns a URL for <code>element</code> that contains authentication information such as a session ID.
+ * <p>
+ * Returns <code>null</code> by default. Clients may override.
+ *
+ * @param repository
+ * the repository for <code>element</code>
+ * @param element
+ * the element to return the authenticated url for
+ * @return null, if no corresponding authenticated URL is available for <code>element</code>; the URL, otherwise
+ * @see IRepositoryElement#getUrl()
+ * @since 3.4
+ */
+ public URL getAuthenticatedUrl(TaskRepository repository, IRepositoryElement element) {
+ return null;
+ }
+
+ /**
* @since 3.0
*/
public abstract boolean hasTaskChanged(TaskRepository taskRepository, ITask task, TaskData taskData);

Back to the top