Yes,
you can do that.
AdminRights (try the hasADmin)->
http://platform.xwiki.org/xwiki/bin/view/DevGuide/Scripting
WebService->
http://dev.xwiki.org/xwiki/bin/view/Drafts/XWikiJSONWebServiceKickStart
Danilo
2014-08-28 3:25 GMT-03:00 Firmusoft Xwiki <firmusoft.xwiki(a)gmail.com>om>:
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
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
--
Danilo Amaral de Oliveira
Engenheiro de Computação
celular (32) 9111 - 6867