ronak dhruv
ronak dhruv

Reputation: 11

fetch document version in nuxeo

Is there a way to get all versions and related File of single document
Suppose that I have published document 'abcd' with version 1.0. Then later, I modify the document and publish it with 1.5 and i want both version in java so is ther any possible way to get all documents with diffrent version in nuxeo.

Upvotes: 0

Views: 167

Answers (1)

Florent Guillaume
Florent Guillaume

Reputation: 8343

Yes, CoreSession.getVersions will do that for you. There are also variants of this API that returns just document references or a bit more information related to each version. You should peruse the CoreSession API to know more.

Upvotes: 1

Related Questions