[Registry-dev] deleting tags
Channa Gunawardena
channa at wso2.com
Fri Apr 25 02:00:05 PDT 2008
Hi Chathura,
The exact requirement we have is to allow an admin user to remove any
tag added by any user on any resource, but it's acceptable that all
instances of that tag on that resource are deleted.
+1
Bye,
Channa.
Chathura C. Ekanayake wrote:
>
> There is a requirement from the Mashup team for admin users to be able
> to remove tags done by all users. This is not possible with the
> current implementation, as it only removes the tag done by the admin
> user.
>
> We can change the "void removeTag(String path, String tag)"
> implementation to remove all instances of the "tag" on resource at
> "path", if the current user is admin (or a user in admin role). I
> think it is acceptable allow admin to remove tags done by all users.
>
> Thoughts...
>
> Thanks,
> Chathura
>
> Chathura C. Ekanayake wrote:
>>
>> I modified the removeTag(...) method as discussed in this thread. Now
>> it removes all taggings with the given tag, if the current user is
>> the author of the resource.
>> If current user is not the author of the resource, it only removes
>> the tagging done by the current user.
>>
>> Thanks,
>> Chathura
>>
>> Glen Daniels wrote:
>>> Sanjiva Weerawarana wrote:
>>>> I don't grok the "remove all instances of that tag from all users"
>>>> bit.
>>>>
>>>> Is this like a way to remove a "bad" tag (say "xxx") which may have
>>>> been applied by other users on a resource I own?
>>>
>>> Yep - it's me saying "I don't want this tag on my thing" for any
>>> reason whatsoever. The way it is now, you'd need to remove each
>>> individual user's use of that tag before it would disappear. With
>>> the new API I proposed, you just remove the tag and it's gone, which
>>> is the way Flickr works.
>>>
>>>> +1 for Jonathan's comment that removing all tags is YAGNI.
>>>
>>> Good by me.
>>>
>>> --Glen
>>>
>>> _______________________________________________
>>> Registry-dev mailing list
>>> Registry-dev at wso2.org
>>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>>
>>
>>
>> _______________________________________________
>> Registry-dev mailing list
>> Registry-dev at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>>
>
>
> _______________________________________________
> Registry-dev mailing list
> Registry-dev at wso2.org
> http://wso2.org/cgi-bin/mailman/listinfo/registry-dev
>
--
********************************************
Channa Gunawardena
Technical Lead, WSO2 Inc.
channa at wso2.com; Mobile: +94 71 306 2722
"Oxygenating the Web Service Platform."
More information about the Registry-dev
mailing list