On Tue, Jul 23, 2013 at 10:36 AM, Jeremie BOUSQUET
<jeremie.bousquet(a)gmail.com> wrote:
Hello,
I'm moving toward Workspace enabled wiki, and trying to retrieve a global
user Document from a subwiki.
I'm using LDAP, but creating users only on global wiki.
My problem, is that from various APIs (workspace, wikimanager,
xwiki...), I
was not able to find an easy to retrieve the name
of the main wiki -
which
in my case is not "xwiki".
Are you talking about the wiki or the database ? Whatever you put in
the xwiki.db property the main wiki remain "xwiki", the store is doing
a mappiig between the wiki name and the actual database name.
Sorry I realize I was unclear ... My webapp name is "xwikitest" (also in
"xwiki.webapppath" in xwiki.cfg), my db is "xwiki" with a prefix
"test_"
(so main wiki is in "test_xwiki").
But I suppose that even with that, my main wiki still is named "xwiki" as
you said.
I need it to provide it to my
xwiki.getDocument(username) to retrieve
correct doc.
Or maybe there's an API to fallback the getDocument() on the global wiki,
if doc is not found in local subwiki ?
Sorry if it's obvious, I'm quite new to the virtual mode ;-)
Thanks,
Jeremie
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users