Yes, I have found this API and
http://platform.xwiki.org/xwiki/bin/view/DevGuide/DsXWikiPreferences too.
The problem is I don't understand what to pass to getProperty as params.
You wrote:
bridge.setProperty(<reference to XWiki.XWikiPreferences>, <reference to
XWiki.XWikiPreferences>, "authenticate_view", 1);
The following returns null:
documentAccessBridge.getProperty("XWiki.XWikiPreferences[0]",
"XWiki.XWikiPreferences[0]", "authenticate_view");
Could you write what I should pass to getProperty method, please? And to
prevent future questions what should I read to solve such problems?
--
View this message in context:
http://xwiki.475771.n2.nabble.com/How-to-setup-Prevent-unregistered-users-from-viewing-pages-in-config-or-programmatically-tp7598565p7598593.html
Sent from the XWiki- Dev mailing list archive at Nabble.com.
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs