Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

Table of Contents
maxLevel3
minLevel3

...

styleborder:1
locationtop
typeflat
separatorpipe

...

Creating Versions of Resources

...

Use the following code to create a version of your resource/collection:

Code Block

registry.createVersion("/c1/c2");

...

You can list all of the versions of a given resource using the code given below. The result would be an array of String type, containing links to the different versions of the resource.

Code Block

String [] versions = registry.getVersions("/c1/c2");

...

Restoring to an Old Version 
Anchor
Restoring to an Old Version
Restoring to an Old Version

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 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");

 

See also Managing Metadata to learn how to check versions using the Management Console.

Excerpt
hiddentrue

Instructions on how to create versions of resources/collections in the Governance Registry.