Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 334824 - Implement export service
Summary: Implement export service
Status: RESOLVED FIXED
Alias: None
Product: Orion
Classification: ECD
Component: Client (show other bugs)
Version: 0.2   Edit
Hardware: PC Windows 7
: P3 normal (vote)
Target Milestone: 0.2   Edit
Assignee: John Arthorne CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 334698
  Show dependency tree
 
Reported: 2011-01-19 14:16 EST by John Arthorne CLA
Modified: 2011-09-01 11:43 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description John Arthorne CLA 2011-01-19 14:16:45 EST
Implement the server and client side for a very simple export service.
Comment 1 John Arthorne CLA 2011-01-19 15:03:16 EST
I have implemented an export service. Each file/directory has a new link on the JSON object called "ExportLocation". Performing a GET on that URL will download a zipped representation of that file/directory (recursively). We can get into further options if necessary, but this provides a simple starting point. Even better, the client side should be trivial to write - just expose the export link somewhere, and the browser's download manager should take care of the rest.

Example:

GET /file/C?depth=1
{
  "Children": [...],
  "ChildrenLocation": "http://localhost:8080/file/C?depth=1",
  "Directory": true,
  "ExportLocation": "http://localhost:8080/xfer/export/C.zip",
  "ImportLocation": "http://localhost:8080/xfer/C",
  ...
}

Exporting this project is performed via:

GET http://localhost:8080/xfer/export/C.zip
Comment 2 Susan McCourt CLA 2011-01-19 17:24:44 EST
(In reply to comment #1)
> Even
> better, the client side should be trivial to write - just expose the export
> link somewhere, and the browser's download manager should take care of the
> rest.

Sweet and simple!  I added a download link in the UI.
Comment 3 John Arthorne CLA 2011-01-20 15:26:50 EST
Marking fixed.