|
Re: [CDO] Resources: understanding [message #430539 is a reply to message #430536] |
Tue, 26 May 2009 16:41 |
|
Waldi,
CDOResources differ a bit from normal EMF resources: They are EObjects
and they can be contained by CDOResourceFolders (EObjects, too).
CDOResources and CDOResourceFolders both extend CDOResourceNode and are
either contained by other CDOResourceFolders or by the root resource of
the repository. The root resource get be obtained with
CDOView.getRootResource(). Then you can work with getContents() or
getNodes(). CDOView also has a queryResources(folder, name(-prefix),
exactMatch) method.
You can even modify this tree structure with normal EMF means if you use
a CDOTransaction instead of a CDOView.
Cheers
/Eike
----
http://thegordian.blogspot.com
Waldi schrieb:
> dear @ll,
>
> i try to understand the meaningful and appropriate of resources. IMO
> resources are like files. You can open it, modify it, safe it and close
> it...... But say me why I can't get a list of all resources? I search a way
> to manage some resources.
>
>
>
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.03312 seconds