Nuxeo Tree Snapshot enables to snapshot and version a whole folder and its content in a single step. You can then recover the state of a folder for a given version.
The addons adds a new document type, Versionable folder, which can be created in Workspaces.
Versionable folders can be published, using the regular Publish tab. When it is published a new version of the folder is automatically created and available in archived versions. The content of the versionable folder is published at the same time, and if needed versioned.
In the versionable folder History > Archived versions tab you can use the regular archived versions actions (View archived version and Restore).
Although the addon adds by default a versionable folder, most of the time you will want to integrate the feature with your own data model, in Nuxeo Studio.
To adapt the default addon behaviour, make sure that you have selected Nuxeo Tree Snapshot as target package in Application Definition menu. This will automatically expose in Nuxeo Studio:
- The Snapshotable and Snapshot facets.
Document.CreateTreeSnapshotin your automation chain/scripting, in the
versioning optionparameter of the operation is expecting either
MAJORdepending on the version that should be applied on all components of the snapshot.