...
Code Block |
---|
String [] versions = registry.getVersions("/c1/c2"); |
...
Restoring to an Old VersionĀ
Anchor | ||||
---|---|---|---|---|
|
Since the Registry comes with versioning, we can restore a resource to any of its versions. This can be done using the registry as well. In the Retrieving Versions of a Given Resource section, we discussed how to retrieve versions for a give resource. The following line of code demonstrates we can restore back an old version of the registry instance. Please note that in the process of restoration, the content, properties, comments, tags, ratings, associations and dependencies will be restored but subscriptions and permissions related to resources won't be restored.
...