Hi,
I have problems obtaining a specific version of a document.
I execute the query using ObjectId like this:
479a507f-f095-4a97-bc11-db900ae18055;1.11
or
479a507f-f095-4a97-bc11-db900ae18055;1.7.
But I always obtain the latest version of the document.
Any answer?
Thanks!
You can use VersionService to get the version of a specific node.
serviceRegistry.getVersionService().getCurrentVersion(nodeRef);
serviceRegistry.getVersionService().getVersionHistory(nodeRef).getAllVersions();
The above method will return the collection of all the versions of a nodeRef passed.
There are many more methods provided by versioning service.
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.