ECON2010 Proposal - "E4 Flexible Resources: From Local File System To REST"

1,106 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,106
On SlideShare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

ECON2010 Proposal - "E4 Flexible Resources: From Local File System To REST"

  1. 1. Eduard Bartsch SAP AG © SAP AG 2009 Licensed under EPL v1.0
  2. 2. Background Proposed Solution Demo Next Steps © SAP AG 2009 Licensed under EPL v1.0 2
  3. 3. Project ERP Explorer & Co Editors Service Repository Compare & Merge Content Management Problems … View © SAP AG 2009 Licensed under EPL v1.0 3
  4. 4. Both cases are about Resources as key abstraction: Resource is any information that can be named Resources have state (that may change over time) Resources expose uniform interface © SAP AG 2009 Licensed under EPL v1.0 4
  5. 5. Hierarchic Content Structuring Flat Content Structuring Rather balanced and deep file/folder E.g. with big amount of trees resources beneath a root URL Content-independent Storage (Often) Content-aware Storage Concrete Well-defined APIs REST is Architectural Style and Collaboration Built-in not even a Network Protocol Team Provider Collaboration out of Scope Merge/Compare Has to be solved on top Mylyn © SAP AG 2009 Licensed under EPL v1.0 5
  6. 6. Project ERP Explorer & Co Editors Service Repository Semantic File Compare System & Merge Content Management Problems … View © SAP AG 2009 Licensed under EPL v1.0 6
  7. 7. Decouple Eclipse Resource Hierarchy from REST URL hierarchy Sparsely mount REST resources into Eclipse Workspace Introduce an SPI and additional Content Provider in order to handle Differences between repository-specific REST implementations Repository-specific and content-specific semantics Team & Collaboration support © SAP AG 2009 Licensed under EPL v1.0 7
  8. 8. Normal Folder Source Repository Resource File Subfolder Subfolder Semantic Folder REST Repository Resource Resource Subfolder Resource Resource Resource Resource Subfolder © SAP AG 2009 Licensed under EPL v1.0 8
  9. 9. <<works with>> <<works with>> Developer Eclipse Eclipse Content REST Semantic Editor/ Resource Repository Tool Management File System Providers Codelines/ «represents a» Branches/ Baselines etc Project/ «output» «input» ... Folder/ Resource Hierarchy F( ) Resources Variants Versions/ Revisions © SAP AG 2009 Licensed under EPL v1.0 9
  10. 10. Content Providers mayContent Provider Default Project be nested have own semantics Content File Provider 1 Folder Content Provider 2 Folder Folder Content File Provider 3 Folder File File File File File © SAP AG 2009 Licensed under EPL v1.0 10
  11. 11. © SAP AG 2009 Licensed under EPL v1.0 11
  12. 12. Further Discussions via Feature Request in Eclipse Bugzilla: https://bugs.eclipse.org/bugs/show_bug.cgi?id=292197 Prototype implementation is uploaded into above Bug Report. Futrther details can be found in Eclipse Wiki: http://wiki.eclipse.org/E4/Resources/Semantic_File_System © SAP AG 2009 Licensed under EPL v1.0 12
  13. 13. © SAP AG 2009 Licensed under EPL v1.0 13
  14. 14. © SAP AG 2009 Licensed under EPL v1.0 14
  15. 15. © SAP AG 2009 Licensed under EPL v1.0 15
  16. 16. IWorkspaceRunnable myRunnable = new IWorkspaceRunnable() { public void run(IProgressMonitor monitor) throws CoreException { IFolder folder = … ISemanticFolder sfolder = (ISemanticFolder) folder.getAdapter(ISemanticFolder.class); if ( sfolder != null ) { sfolder.addFile(fileName, uri, 0, monitor); } } }; workspace.run(myRunnable,workspace.getRoot(),0,null); © SAP AG 2009 Licensed under EPL v1.0 16

×