[CDO]Revision view [message #638457] |
Thu, 11 November 2010 11:28 |
Nirmal Sasidharan Messages: 120 Registered: July 2009 Location: Germany |
Senior Member |
|
|
Hello,
Does CDO have a "Revision View" which shows the revision details of a selcted resource or a model element? Since I couldn't find something like this I was trying to implement something in this direction. Although I could find APIs to get a CDORevision for a given version number, I couldn't find an API which returns a list of CDORevisions for a CDOResource or CDOObject. Could anyone help me here?
Any pointers would be greatly appreciated.
Thanks and regards,
Nirmal
|
|
|
Re: [CDO]Revision view [message #638511 is a reply to message #638457] |
Thu, 11 November 2010 14:37 |
|
Am 11.11.2010 12:29, schrieb Nirmal Sasidharan:
> Hello,
>
> Does CDO have a "Revision View" which shows the revision details of a selcted resource or a model element?
As of now there's none. We'd be happy to review a contribution from you and eventually accept it.
> Since I couldn't find something like this I was trying to implement something in this direction. Although I could find APIs to get a CDORevision for a given version number, I couldn't find an API which returns a list of CDORevisions for a CDOResource or CDOObject. Could anyone help me here?
AFAIK there's currently no *optimized* API/protocol to fetch all/several versions of an object. As this kind of functionality is assumed to be used by selected tools (history browsers etc.) only and these tools should properly deal with latency anyway we didn't consider an optimization high priority. I suggest that you fetch one revision after the other in a background thread and populate your UI asynchronously. As the version number sequence always starts at zero and has no gaps you could also try to fork multiple threads. But: IIRC there's no way for audit views (fixed timestamp) to determine the highest possible version number in a given branch, other than sequentially asking and stopping if null is returned.
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
>
> Any pointers would be greatly appreciated.
>
> Thanks and regards,
> Nirmal
Cheers
/Eike
----
http://www.esc-net.de
http://thegordian.blogspot.com
http://twitter.com/eikestepper
|
|
|
Powered by
FUDForum. Page generated in 0.02550 seconds