Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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.

Code Block
registry.restoreVersion ("/c1/c2;version:2");

...