Hi, You need to get an @Inject Provider<XWikiContext> contextProvider; declared in your component on which you can then do inside a method contxtProvider.get().getWiki().getDocument(...);
Hope this helps, Eduard On Mon, May 16, 2016 at 6:02 PM, abtv <[email protected]> wrote: > Maybe there is a way to execute a string with velocity code from java code? > > > > -- > View this message in context: > http://xwiki.475771.n2.nabble.com/How-to-grant-Delete-Right-for-all-registered-users-via-java-API-tp7599456p7599461.html > Sent from the XWiki- Dev mailing list archive at Nabble.com. > _______________________________________________ > devs mailing list > [email protected] > http://lists.xwiki.org/mailman/listinfo/devs > _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

