3

I am getting files from Oracle UCM via RIDC. I am using DataBinder as follows :

IdcClient client =getUCMConnection();
DataBinder dataBinder = client.createBinder ();
dataBinder.putLocal ("IdcService", "GET_FILE");
dataBinder.putLocal ("dID", dID);
IdcContext userContext = new IdcContext(username);
ServiceResponse response = client.sendRequest (userContext, dataBinder);  
InputStream fstream = response.getResponseStream ();

....... etc.

I want to ask, how can I get "ALL VERSIONS" of a document instead of latest released one?

il_guru
  • 8,383
  • 2
  • 42
  • 51

3 Answers3

3

First you have to call the service DOC_INFO, you can get the result set of the revision by using the REVISION_HISTORY set.

You will get specific dID for each version, you iterate them and use GET_FILE with dID as a parameter for each one of them

Amr Gawish
  • 2,015
  • 1
  • 17
  • 29
0

I can't test it right now but I think the service you are looking for is GET_INFO, try it and check all the resultsets you get I'm pretty sure one of them has the info for all the document's revisions.

jmr
  • 620
  • 5
  • 6
0

You can use the service REV_HISTORY to get the result set REVISIONS which contains info of all the revisions.

vk239
  • 1,014
  • 1
  • 12
  • 30