List<String> spaces = xwikiContext.getWiki().getSpaces(xwikiContext);
if (spaces.contains(name)) {
// ...
}
On Fri, Jul 18, 2008 at 10:55 PM, Bruno Amaro Almeida <
bruno-a-almeida(a)criticalsoftware.com> wrote:
Hi
How can i check if a space exists or not ?
I try :
if(context.getWiki().exists(MySpaceName, context)){
This is to see if a particular document (a.k.a
"<spacename>.<pagename>")
exists or not.
- Asiri
(...)
}
but don`t work.
Any ideas ?
Regards,
Bruno Amaro Almeida
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs