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
>
_______________________________________________
devs mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/devs

Reply via email to