How do I get all the spaces for which the current user has access in a java component?
I have the following: List<String> lstSpaces = new ArrayList<String>(); XWikiContext xcontext = this.xwikiContextProvider.get(); XWiki xwiki = xcontext.getWiki(); lstSpaces = xwiki.getSpaces(xcontext); Although this successfully returns all the spaces, it also returns the spaces for which the current user has no "view" or other access rights. Also it seems that the Java .getSpaces is deprecated and I can't seem to find the new method for this. http://maven.xwiki.org/site/docs/xwiki-javadoc-5.0.x/ seems outdated as xwiki.getSpaces() is still active in this javadoc, with no alternative. Is there a new javadoc availible? -- View this message in context: http://xwiki.475771.n2.nabble.com/spaces-for-which-the-current-user-has-access-in-a-java-component-tp7597147.html Sent from the XWiki- Users mailing list archive at Nabble.com. _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users