On Wed, Aug 7, 2013 at 12:44 PM, Christian Meunier < christian.meunier@magelo.com> wrote:
On 8/6/2013 23:54, Denis Gervalle wrote:
Sure, just be careful that the XWikiCachingRightService is a temporary bridge that will be progressively deprecated in favor of the AuthorizationManager and an upcoming "**ContextualAuthorizationManager** ". Moreover, the mapping between action and right will be moved to the Action module, once available.
By the way, you may provide your new right without patching anything by calling AuthorizationManager#register, and you can change XWikiCachingRightService from xwiki.cfg using xwiki.authentication.**rightsclass=...
Ha great, thanks for the tip !
I have to patch Right unfortunately since I want both Admin and Program Right to inherit my AdvEdit right (impliedRight). Might be interesting to have some kind of inversion of control when one right can push itself as implied right to others.
Very interesting proposal, I am curious to know what others think about that inversion of control. The worse will be that it needs another API breakage, but I see it as a good improvement... grrr... I should have though about it before !
______________________________**_________________ devs mailing list devs@xwiki.org http://lists.xwiki.org/**mailman/listinfo/devs<http://lists.xwiki.org/mailman/listinfo/devs>
-- Denis Gervalle SOFTEC sa - CEO eGuilde sarl - CTO