There is a request from the Mashup team for methods to remove tags,
comments and ratings done by a given user.
Use cases for above features are:
* Removing a user who abuses the registry (e.g. by adding illegal
content, using offensive words in tags and comments).
We need to remove all the tags, etc done by that user when we remove (or
disable) him.
* Removing test users. Test users may be created to add test content,
taggings, etc. When we remove them, we want remove all the changes done
by them on the Registry.
So I propose to introduce below methods to the Registry interface.
void removeTagsOfUser(String userName);
void removeCommentsOfUser(String userName);
void removeRatingsOfUser(String userName);
Registry users can search for the resources added by a user and delete
those resources using the API. So there is no need to provide a method
for deleting resources of a user.
Implementing above methods in the JDBCRegistry and SecureRegistry should
be trivial. I think it is ok to add those methods, if Deepal can add
those to the RemoteRegistry within the time frame.
Thanks,
Chathura
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev