[Registry-dev] Resource delete and version handling
Deepal Jayasinghe
deepal at wso2.com
Thu Nov 22 00:38:10 PST 2007
I am in the process of handling resource delete and I have faced a
problem of handling the history for the deleted resources. Say we have a
resource called "foo/r1" and we delete that. And later we add a resource
with the same path then what should be the procedure ?
Are we going to delete the history for the previous resource ? or we are
not going to allow to add a resource with the same name once we delete
the resource.
This problem is due to the fact that we keep path as the key for
identifying the resource not the resource ID. If we can keep ID as the
unique identifier then we can solve the problem. Then we can burn the ID
into the UI and send that as the query parameter when someone click on a
resource as below,
localhost:8080/wso2registry/foo/r1?id=100
Thanks
Deepal
More information about the Registry-dev
mailing list