PDA

View Full Version : Retrieve VERSIONED Datastreams by number (not DateTime)



jarvisjdave
11th December 2012, 06:55 AM
Hi, when retrieving a datastream, if you need to retrieve a particular version you can specify the DateTime e.g. like this:

Simple HTTP:
/fedora/objects/test:123/datastreams/TEST_DS_ID/content?asOfDateTime=2012-11-27T04:11:07.217

OR

SOAP API - Java example:
GetDatastreamDissemination dsd = new GetDatastreamDissemination();
dsd.setPid("test:123");
dsd.setDsID("TEST_DS_ID");
dsd.setAsOfDateTime("2012-11-27T04:11:07.217");

Is there a way to retrieve a particular version (either via the SOAP
API or via simple HTTP) without specifying Date/Time, but instead
by specifying a version number ?

Maybe something like this for version 2 ?
/fedora/objects/test:123/datastreams/TEST_DS_ID/content/2 or .2 or something

george_toolan
11th December 2012, 12:02 PM
Probably not, but a date is some sort of "version" number, isn't it?

For further reference try http://mediashelf.github.com/fedora-client/apidocs/com/yourmediashelf/fedora/client/request/GetDatastreamDissemination.html