Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [CDO] folder concept
[CDO] folder concept [message #720265] Tue, 30 August 2011 09:11 Go to next message
John Smith is currently offline John SmithFriend
Messages: 137
Registered: July 2009
Senior Member
Hi, I have a general question to the CDOResourceFolder.
Namely I designed my own folder metamodel (instances contained in a
CDOResource) but always thought of
using the existing CDOResourceFolder instead. So anybody knows which way
to go in general? Has CDOResourceFolder any build-in advantages? Or
maybe disadvantages (not being contained in a CDOResource, and thereby
not being able to edit in EMF editors)?

I make the folder structure accessible by WebDav. The user can
upload/download files in the folders, being mapped to Blobs and/or EMF
models in the CDO database. As this is quite generic functionality, I
will try to open-source this. Still thinking about how to integrate
existing resource implementations into this architecture. Architectural
models are my domain, which are by nature very large, so I also want to
support resume of upload/download of models, where EMF does not help
much with concepts. Just thinking, any ideas welcome..
Re: [CDO] folder concept [message #720270 is a reply to message #720265] Tue, 30 August 2011 09:18 Go to previous message
Eike Stepper is currently offline Eike StepperFriend
Messages: 6682
Registered: July 2009
Senior Member
Am 30.08.2011 11:11, schrieb exquisitus:
> Hi, I have a general question to the CDOResourceFolder.
> Namely I designed my own folder metamodel (instances contained in a CDOResource) but always thought of
> using the existing CDOResourceFolder instead. So anybody knows which way to go in general?
Both is possible.

> Has CDOResourceFolder any build-in advantages?
Perhaps that they're more easily queriable, see:

org.eclipse.emf.cdo.view.CDOView.queryResources(CDOResourceFolder, String, boolean)
org.eclipse.emf.cdo.view.CDOView.queryResourcesAsync(CDOResourceFolder, String, boolean)


> Or maybe disadvantages (not being contained in a CDOResource, and thereby not being able to edit in EMF editors)?
Technically everything is contained by a resource. In CDO there's the special root resource that contains the top-level
CDOResourceNodes (CDOResources and CDOResourceFolders).

CDOResourceNodes are EObjects and can be manipulated like all other EObjects.

Cheers
/Eike

----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper


>
> I make the folder structure accessible by WebDav. The user can upload/download files in the folders, being mapped to
> Blobs and/or EMF models in the CDO database. As this is quite generic functionality, I will try to open-source this.
> Still thinking about how to integrate existing resource implementations into this architecture. Architectural models
> are my domain, which are by nature very large, so I also want to support resume of upload/download of models, where
> EMF does not help much with concepts. Just thinking, any ideas welcome..


Previous Topic:Add dynamic attribute to a static class
Next Topic:Grammar in XML and attribute completion
Goto Forum:
  


Current Time: Sat Apr 27 02:12:32 GMT 2024

Powered by FUDForum. Page generated in 0.02964 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top