Oracle UCM - ridc - get all versions of a document
I am getting files from Oracle UCM via RIDC. I am using DataBinder like this:
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 the document instead of the last one issued?
+3
Safak KAYIKCI
source
to share
3 answers
You first need to call the DOC_INFO service , you can get the result set of the revision using REVISION_HISTORY .
You will get a specific DID for each version, you execute it and use GET_FILE with dID as a parameter for each one
+3
Amr gawish
source
to share
I can't test this right now, but I think the service you are looking for is GET_INFO, try it and check all the results you get. I'm sure one of them has information about all versions of the document.
0
jmr
source
to share
You can use the REV_HISTORY service to get a REVISION result set that contains information about all versions.
0
vk239
source
to share