Hi Sir;
I have an independent HTML/JavaScript application running in XWiki and it
can create XWiki pages by sending AJAX request. I need to create those
pages ONLY if the logged in user has admin roles. How can I do this ?
(a) Is there any way to send back response with JSON/XML from Xwiki pages ?
(i.e. If we can send the response with JSON/XML from XWiki page, then I
need to use a Ajax call from my application)
(b) Or any API available to access the XWikiContext via Servlet ? (i.e. If
it is available, then send request to my Servlet)
Please help and if you can provide any samples would be great. Thank you
for considering..!
-Sincerely-
Suresh Babu P