How to obtain a specific version of a document ?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 03:56 AM
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!
Hot busty babes...and even sluts! https://www.bigtitsporn.xxx/ Coolest porn site
Labels:
- Labels:
-
Alfresco Content Services
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 04:56 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-30-2020 08:10 AM
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.
Regards,
Kintu
Kintu