Hi Chathura:

Both the cases you lay out below involve deleting users. I agree with Paul that these methods get a little too complicated, but I can maybe see a call for one additional method which would be:

  void removeAllByUser(String userName);

This would remove everything authored by a particular user, since there really isn't an easy way to do that "manually" by searching right now.

I think we need to write down all the use cases for handling user lifecycle issues, though - including people being promoted/demoted, disallowed from logging in (they leave the company), all the way through to deleting all trace of them.

Thanks,
--Glen

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


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

Reply via email to