While a custom method is being added to the XMLRPC API, can't you just
create a page and set all it's properties and such to make it an xwiki
class?
Is that possible?
For instance, to add an object of type Comment to a page pageId, you
could do this:
XWikiObject comment = new XWikiObject();
comment.setClassName("'XWiki.XWikiComments");
comment.setGuid(UUID.randomUUID().toString());
comment.setPageId(pageId);
comment.setProperty("comment", commentContent);
comment.setProperty("author", authorName);
Maybe something similar can be done with turning an XWikiPage into an
XWikiClass on the XWiki side.
Just an ideea, Fabio should know best about this.
Julien Revert wrote:
JIRA Open :
http://jira.xwiki.org/jira/browse/XWIKI-3499
Thanks,
Julien
Vincent Massol
<vincent(a)massol.n
et> A
Envoyé par : XWiki Developers <devs(a)xwiki.org>
devs-bounces@xwik cc
i.org
Objet
Re: [xwiki-devs] How get and put
03/04/2009 15:02 XWikiClass page with xmlRpc ?
Veuillez répondre
à
XWiki Developers
<devs(a)xwiki.org>
On Apr 3, 2009, at 2:53 PM, Sergiu Dumitriu wrote:
Julien Revert wrote:
Hi,
Can anyone give me a part of code using XWikiXmlRpcClient in java
to get
and put a XWikiPage wich is a XWikiClass (like page
XWiki.XWikiSkins page).
I get Class information using :
XWikiClass xwikiClass = curClient.getClass(this.fullName);
SystemOut(xwikiClass.toMap().toString()) ;
But My problem is to put this information because I could only call
the
following method wich have no information about Class:
curClient.storePage(xwikiPage);
Looks like there's no method for storing classes. Open a bug report on
jira.xwiki.org for it.
"improvement" rather than "bug" would be better. We're trying to
reduce our number of bugs ;)
Thanks
-Vincent
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs
------------------------------------------------------------------------
_______________________________________________
devs mailing list
devs(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/devs