I think we are making the Registry interface a little too complicated here. Basically, I'm thinking about Norman, or anyone else who needs to implement this interface.

Isn't this basically helper code that is going to use other methods on the Registry interface to implement the logic?

Paul

Chathura C. Ekanayake wrote:

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


--
Paul Fremantle
Co-Founder and VP of Technical Sales, WSO2
OASIS WS-RX TC Co-chair

Office: +1 646 290 8050
Cell: +44 798 447 4618

blog: http://pzf.fremantle.org
[EMAIL PROTECTED]

"Oxygenating the Web Service Platform", www.wso2.com

_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev

Reply via email to