Hi Richard Version with Oak should work according to the specification which you find at https://docs.adobe.com/docs/en/spec/jcr/2.0/15_Versioning.html
This includes all the details regarding OPV behavior upon restore. However, I quickly checked the implementation in oak-jcr and restore by label is indeed not supported today. I am sure Marcel Reutegger, who is the author of the version mgt in Oak can provider more insight on this. Hope that helps Angela ________________________________________ From: Richard Groote <[email protected]> Sent: Tuesday, June 25, 2019 3:02 PM To: [email protected] Subject: Versioning and restoring Hello, Currently we’re trying to integrate Apache OAK within our project. We using a hierarchy of nodes and a node can have different kind of properties (that’s why we’re using node type nt:unstructured) Some simple example structure: * Music (nt:unstructured, no actual properties) * Rock (nt:unstructured, no actual properties) * Metallica (nt:unstructured, with a lot of properties, including binaries) * U2 (nt:unstructured, with a lot of properties, including binaries) Some scenario’s * Editing the node U2 and adding / updating some properties (should result in a new version) * Move the node U2 to a different hierarchy (Should be able restore it) * Remove some of the node * Versioning the complete music tree with my own label (used versionhistory.addVersionLabel()) * Restore a complete or part of the tree * Restore a node to a specific version Now I’ve some questions about versioning and restoring: * Is the nt:unstructured the best node type or should I use another one for instance nt:folder, nt:file (may be create my own) * Nt:unstructured used OPV version. When I use versionhistory.getVersionByLabel() than the child information contains ‘jcr:childVersionHistory’. This child information points to a node. But in my case this node is no longer retrieval because it has been deleted. Is in this case better to use a node type with OPV Copy * Restore by label is currently not implemented by OAK. Does anyone know about some example of restoring (part of) tree based on a label. Thanx, for all information. May be I missed some documentation Richard
