Re: [xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Bryn Jeffries
I wrote: > > Fair enough. For some reason I'm really struggling to include the right > > repository for Platform. What details should I be using in my settings.xml? > > I've included everything from the example in > > http://dev.xwiki.org/xwiki/bin/view/Community/Building but I still can't > > reso

Re: [xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Thomas Mortagne
On Fri, Jul 31, 2015 at 9:47 AM, Bryn Jeffries wrote: > Thomas Mortagne wrote: >> >> DocumentAccessBridge is still the current way to get the context user. >> >> Now the way ExecutionContext has been designed it will always be generic >> and you are supposed to use specialised API to access someth

Re: [xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Bryn Jeffries
Thomas Mortagne wrote: > > DocumentAccessBridge is still the current way to get the context user. > > Now the way ExecutionContext has been designed it will always be generic > and you are supposed to use specialised API to access something like the > current user (you are not supposed to know ho

Re: [xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Thomas Mortagne
DocumentAccessBridge is still the current way to get the context user. Now the way ExecutionContext has been designed it will always be generic and you are supposed to use specialised API to access something like the current user (you are not supposed to know how exactly it's stored in the context

Re: [xwiki-users] problem after update to 7.1.1

2015-07-31 Thread vinc...@massol.net
Hi Olivier, On 31 Jul 2015 at 08:52:14, Studer Olivier (olivier.stu...@hefr.ch(mailto:olivier.stu...@hefr.ch)) wrote: > So if I want to change the ROOT path to "/", the bug is not present in > version 7.0 ? Yes or no? Yes but 7.0 has other problems (see http://www.xwiki.org/xwiki/bin/view/Re

[xwiki-users] Getting user name with a Java Component

2015-07-31 Thread Bryn Jeffries
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.getCurrent