...
Table of Contents | ||||
---|---|---|---|---|
|
...
|
...
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 | ||||
---|---|---|---|---|
|
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 | ||
---|---|---|
| ||
Instructions on how to create versions of resources/collections in the Governance Registry. |