[xwiki-devs] Check if a space exists
Hi How can i check if a space exists or not ? I try : if(context.getWiki().exists(MySpaceName, context)){ (...) } but don`t work. Any ideas ? Regards, Bruno Amaro Almeida
List<String> spaces = xwikiContext.getWiki().getSpaces(xwikiContext); if (spaces.contains(name)) { // ... } On Fri, Jul 18, 2008 at 10:55 PM, Bruno Amaro Almeida < [email protected]> 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 [email protected] http://lists.xwiki.org/mailman/listinfo/devs
participants (2)
-
Asiri Rathnayake -
Bruno Amaro Almeida