Hi All,
We were silent for few days due to mid-semester work load (still have some
unfinished business). Anyway, I have added the removeSpace RPC to xwiki
back-end. But now i'm having few doubts about it. The remove space RPC works
by retrieving all the page names under the given space and deleting them
individually. But following complications may happen when using this RPC,
1. If the user does not have enough privileges to delete some of the pages
within that space, an exception will be thrown half-way down. Now the RPC
invoker does not know which pages were removed and which were not. (Thus, he
is out of sync with the wiki)
2. If instead we chose to remove page by page from the client - Xeclipse
(say), we don't have this problem , and we could even display a progress
bar. (to indicate that pages are being deleted).
Since the XML RPC API requires the removeSpace() RPC, we must indeed add it.
But wouldn't it be better if we do not use this RPC within Xeclipse (due to
reasons mentioned above) ?
Or, is there a better way to implement removeSpace() RPC ? (like checking
privileges before doing anything ?) ) (+ How ? )
Thanks a lot.
Best Regards,
- Asiri