Still unclear how to do it. I've found this class https://github.com/xwiki/xwiki-platform/blob/2d0bc84e2c6ca0424b55894771ac1823c4094d59/xwiki-platform-core/xwiki-platform-oldcore/src/main/java/com/xpn/xwiki/api/XWiki.java which has getDocument method. But it's unclear how to retrieve an instance of this class. The second problem is that getDocument method and BaseObject.set take XWikiContext instance. I'm trying to call my code on startup, so there is no context. How to do retrieve XWiki object and XWikiContext object? I call it in ApplicationReadyEventListener.
-- View this message in context: http://xwiki.475771.n2.nabble.com/How-to-grant-Delete-Right-for-all-registered-users-via-java-API-tp7599456p7599460.html Sent from the XWiki- Dev mailing list archive at Nabble.com. _______________________________________________ devs mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/devs

