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