Get all object's versions

AhmadAsfour
edited February 4, 2009 in Documentum #1

Hello,


Can I get all object's versions using versioncontrol service; please note that I am using DFS v6.5

I found a way using DQL as the following:


select *, r_version_label  from dm_document(all) where i_chronicle_id in (select i_chronicle_id from dm_document (all) where r_object_id = '0900001980007b43')


But I prefer if I can find a way to accomplish this using versioncontrol service.




Regards.

Comments

  • Burlacu_Dorin
    edited February 3, 2009 #2

    VCS does not provide such functionality.

  • michael.siment
    edited February 4, 2009 #3

    I don't know how to get it via DFS, but it's fairly easy using DFC:

    IDfSysObject newObj = (IDfSysObject)session.getObject(id);

    IDfCollection docVersions = null;
    docVersions = newObj.getVersions("r_object_id,object_name");

    while (docVersions.next()) {

      IDfTypedObject typedObj = docVersions.getTypedObject();

         System.out.println(typedObj.getString("r_object_id"));


              }
    docVersions.close();

  • AhmadAsfour
    edited February 4, 2009 #4

    Thanks a lot guys for your help, it seems that Version Control Service doesn't supprt this API. Anyway it seems that I will go to use DQL.

    Thanks a lot again.