Well, I have some good news and some bad news.
The good news is that I just burrowed ahead and did
manage to [files attached]:
a. Add
b. Retrieve
c. Delete
a Page via the implementation that is available in the
most-current release of XWiki.
The bad news is:
a. The delete function was not, in fact completely
engineered/tested, but the work-around was
trivial, so I just fixed it in my local version.
b. The methods that are designed for solving your
problem, however:
i. getUser,
ii. addUser,
iii. addGroup,
iv. getUserGroups,
v. addUserToGroup
have not yet been coded.
So, in order to have the benefits of an xmlrpc-based
implementation, you'll need to get the development
team to complete the Confluence emulation code.
Since they already have a zillion items in their
backlog, you might find a quicker solution by pulling
the pieces out of Mr. Lauriere's 'extended profiles',
and using that as the basis for your import.
Terry
P.S.
I'm still very willing to go the 'extra mile' to build the
attached into a capability for you [and others], but
grepping through the code to discover how the API
handles the necessary Hibernate mapping to the
XWiki-proprietary database schema is not exactly the
way my granddaughter expects me to entertain her
during the dog days of her summer vacation. You might
spend some time looking at what the implementation of
'Add User', 'Add Group' and 'Add User To Group'
functionality appears to be, and maybe it will prove
to be just a few hours of code and test to insert those
method invocations into the corresponding methods of
com.xpn.xwiki.xmlrpc.ConfluenceRpcHandler.
----- Original Message -----
From: "Paul Dlug" <paul.dlug(a)gmail.com>
To: "tcorbet" <tcorbet(a)ix.netcom.com>
Sent: Sunday, July 17, 2005 11:15
Subject: Re: [xwiki-users] Creating users as a batch
I'm not particularly in a rush, I'm actually on vacation this week.
I'm very interested in having an XML-RPC type interface to do this and
other things. I'm going to have more needs along these lines as time
progresses, we're rolling out the wiki across our entire organization.
Please let me know if I can help in any way, I do have a good deal of
experience in developing XML-RPC interfaces, though no experience with
confluence.
Thanks,
Paul
On 7/16/05, tcorbet <tcorbet(a)ix.netcom.com> wrote:
Paul,
You can, no doubt, accomplish your task of creating 150 accounts
through the XWiki application's U/I than I can design/write/test
and document a solution. But, if you can tolerate probably four
or five days of delay, I would be willing to create a utility for
batch loading of users.
From what I have been able to find in the way of documentation
of XWiki's support of the Confluence-defined, Wiki-related
xmlrpc methods, I think I could cobble together the necessary
Java code. Probably the correct input would be an XML Schema
.xsd file defining the User/Group attributes with use of a validating
SAX parser so that you would get some helpful error messages
when the inevitable incorrect input sneaks into your .xml input file.
Of course, the way software requirements just keep expanding, I
would anticipate that you really want the inverse utility as well --
a dump into .xml of the currently-registered users. I am assuming
that there is some other 'system of record' where your users are
defined, so the 'dump-from-XWiki' output would give you a
text file that could just be 'diffed' against whatever other list of
users exists for a quick check on the sanity of things.
I have no need for these utilities for my own modest sub-system,
but if they would benefit you and others, I would be willing to
undertake the development as I do need to write similar code for
import-export of some other XWiki objects via xmlrpc in any case.
----- Original Message -----
From: "Paul Dlug" <paul.dlug(a)gmail.com>
To: <xwiki-users(a)objectweb.org>
Sent: Saturday, July 16, 2005 07:38
Subject: [xwiki-users] Creating users as a batch
Is there any way to create users in a batch? I'm facing the need to
create about 150 accounts at once, we have registration turned off
because we want control of the users and we want to choose their
WikiName's for them.
It would also be necessary to put them in groups as a batch also. Is
this problem as simple as just inserting rows directly into the
database or are there other things I need to take into consideration?
Thanks,
Paul
--------------------------------------------------------------------------
--
----
>
> --
> You receive this message as a subscriber of the
xwiki-users(a)objectweb.org
mailing list.
To unsubscribe:
mailto:xwiki-users-unsubscribe@objectweb.org
For general help: mailto:sympa@objectweb.org?subject=help
ObjectWeb mailing lists service home page:
http://www.objectweb.org/wws