On Feb 2, 2007, at 7:53 PM, Sébastien Gaïde wrote:
Ludovic Dubost a écrit :
+1 I would also vote to deprecate Api.hasProgrammingRights in favor of XWiki.hasProgrammingRights() if it is possible.. It's not a very good idea to have these APIs in Api.. I don't know why I had this crazy idea
+1
And what do you think of :
xwiki.user.hasProgrammingRights() ?
I think Rights is a cross cutting concern that spans across both Users and Documents (and possibly other stuff too). I would definitely see it as a component in itself and not inside either User nor Documents. In this way it's nicely decoupled and could be implemented in different manner in the future: using a rule engine, using AOP, etc. Thanks -Vincent ___________________________________________________________________________ Yahoo! Mail réinvente le mail ! Découvrez le nouveau Yahoo! Mail et son interface révolutionnaire. http://fr.mail.yahoo.com