[Registry-dev] Retrieving a Resource after deletion without adding
it again
Tyrell Perera
tyrell at wso2.com
Tue Mar 18 05:44:23 PDT 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Chathura C. Ekanayake wrote:
>
> We can rollback deletions by restoring the previous version of the
> parent collection.
>
But wouldn't that restore every resource under the parent to that version?
By the way using the following code results in a 'resource does not
exist' exception. I was trying to restore the parent to its latest
version and then get the deleted resource.
//Getting the parent of this resource and restoring to the latest
version
String[] versions = secureRegistry.getVersions(parent);
secureRegistry.restoreVersion(versions[0]);
//Getting the restored resource.
resource1 = (ResourceImpl) registry.get(path1);
Did I do it wrong?
Tyrell
- --
Tyrell Perera
Senior Software Engineer; WSO2, Inc.; http://www.wso2.com/
email: tyrell at wso2.com; cell: +94 77 302 2505
"Oxygenating the Web Service Platform."
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFH37knehFdPcgGx7oRAvB9AJ9i9n7Efn8aUfRp2YutppIIo7kRjwCgrajm
7Sr+LqJd8FJ99iuTkyTm2PE=
=/j8+
-----END PGP SIGNATURE-----
More information about the Registry-dev
mailing list