[Registry-dev] Resource delete and version handling
Deepal Jayasinghe
deepal at wso2.com
Thu Nov 22 00:43:26 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
>
One more thing if the user give url like below
localhost:8080/wso2registry/foo/r1
Then we select the ID from the DB , where the path ="path" and
status="active"
Deepal
> Thanks
> Deepal
>
>
> _______________________________________________
> Registry-dev mailing list
> Registry-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
>
>
--
Thanks,
Deepal
................................................................
"The highest tower is built one brick at a time"
More information about the Registry-dev
mailing list