Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 207527 - [api] add callback class for retrieving (user) input during request handling
Summary: [api] add callback class for retrieving (user) input during request handling
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Linux
: P3 normal (vote)
Target Milestone: 2.2   Edit
Assignee: Steffen Pingel CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 200634
  Show dependency tree
 
Reported: 2007-10-25 20:45 EDT by Steffen Pingel CLA
Modified: 2007-10-26 03:29 EDT (History)
1 user (show)

See Also:


Attachments
callback class (24.45 KB, patch)
2007-10-25 22:19 EDT, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (6.74 KB, application/octet-stream)
2007-10-25 22:19 EDT, Steffen Pingel CLA
no flags Details
web location classes for TaskRepository (23.79 KB, patch)
2007-10-25 23:40 EDT, Steffen Pingel CLA
no flags Details | Diff
mylyn/context/zip (18.59 KB, application/octet-stream)
2007-10-25 23:40 EDT, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steffen Pingel CLA 2007-10-25 20:45:31 EDT
The callback/provider class should handle the following cases:

 - query the user for credentials if authentication fails
 - provide proxy information
 - verify ssl certificates and query user if certificate is invalid
Comment 1 Steffen Pingel CLA 2007-10-25 22:19:51 EDT
Created attachment 81224 [details]
callback class

The patch adds a new class AbstractWebLocation which has methods for retrieving credentials and proxy information. The idea is to use this class instead of passing thw data as individual arguments. I will post a second patch later that demonstrates how to use the new API to prompt the user for credentials.
Comment 2 Steffen Pingel CLA 2007-10-25 22:19:53 EDT
Created attachment 81225 [details]
mylyn/context/zip
Comment 3 Steffen Pingel CLA 2007-10-25 22:20:31 EDT
Rob, please review and apply.
Comment 4 Robert Elves CLA 2007-10-25 23:06:49 EDT
Patch applied.
Comment 5 Steffen Pingel CLA 2007-10-25 23:40:30 EDT
Created attachment 81228 [details]
web location classes for TaskRepository

This patch contains the tasks API for the new WebLocation class. It provides two factories for creating web locations for TaskRepository objects: one for core and one for UI. The split is necessary since locations need to be available to core but also need to hook into the UI to prompt the user for passwords and such. Basically connectors will start out with a TaskRepositoryLocationFactory and when the connector ui starts up it will replace that factory in the connector core with a TaskRepositoryLocationFactoryUi. I will attach a patch to bug 207531 that demonstrates how the API will be used for the Trac connector.
Comment 6 Steffen Pingel CLA 2007-10-25 23:40:37 EDT
Created attachment 81229 [details]
mylyn/context/zip
Comment 7 Robert Elves CLA 2007-10-25 23:59:17 EDT
Looks good. Patch applied.
Comment 8 Steffen Pingel CLA 2007-10-26 03:29:42 EDT
Thanks Rob!