Some time last year I had to write a component for XWiki 6.3 that required the 
current user name, which following the advice at the time required injecting a 
DocumentAccessBridge:

    @Inject
    private DocumentAccessBridge documentAccessBridge;

and then calling documentAccessBridge.getCurrentUserReference().getName())

This has the consequence of having to pull in the xwiki-core-bridge module from 
the  XWiki Remote Maven repo, rather than just using the XWiki Commons code in 
Maven Central.

At the time, Vincent mentioned 
(http://xwiki.475771.n2.nabble.com/Getting-user-name-with-a-Java-Component-td7593245.html#a7593275)
 "You're right, our goal is to have all context information (including the 
user) be put in the Execution Context."

I'm now having to rewrite some of this component, and I'm now using XWiki 
7.1.1. Has there been any development in shifting the user name over to the 
Execution Context so that I can avoid using the bridge module?

Thanks,

Bryn
_______________________________________________
users mailing list
users@xwiki.org
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to