Each comment has a URL according to the wiki page, which is /comments/[id] (ID can essentially be a UUID).

So, from the Java API point of view, you should be able to do this:

String commentURI = registry.addComment("/r1", myComment);
// Ooops, that was a mistake.
registry.delete(commentURI);

For RemoteRegistry, this looks like:

POST /r1;comments
<content>

200 OK
Location: /comments/1234
...

-----

DELETE /comments/1234

200 OK

Seem reasonable?

--Glen

Sanjiva Weerawarana wrote:
I think what you need is a way to register a single comment right? Chathura, can we not have each comment have a URI? ;comments&n=17 type thing?

Sanjiva.

Jonathan Marsh wrote:
Why can't comments be removed?  I'd like this in the mashup server, to
remove inappropriate comment-spam on resources I own, as well as to "undo" stupid posts I've made myself. Isn't it more important to remove comments
than tags?

I went to add delete controls to the Mashup Server and found I can't delete comments. This will likely be a major abuse point for our online community
site.

Jonathan Marsh - http://www.wso2.com - http://auburnmarshes.spaces.live.com
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:registry-dev-
[EMAIL PROTECTED] On Behalf Of Chathura C. Ekanayake
Sent: Wednesday, January 09, 2008 11:54 PM
To: [email protected]
Subject: Re: [Registry-dev] Removing all tags, comments and ratings
done by a given user

Paul Fremantle wrote:
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?
Hi Paul,

There are no methods in the Registry interface to remove comments or
ratings. So helper code cannot perform those operations through the
API.
And the removeTag(...) method removes the tag done by the currently
logged in user. So it cannot be used to remove a tag done by any given
user.

Chathura


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


_______________________________________________
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



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

Reply via email to