On Tue, Jan 22, 2013 at 3:44 AM, <xwiki.mexon(a)spamgourmet.com> wrote:
Hi,
I've realised that for my project it would be ideal if users had the ability
to change their login names. You know the kind of thing, you register on
the site as crazygirlLOL and then your boss shows up and you want to be
renamed as maryc.
I've had a look around and can't see that XWiki supports this. I bet it'd
be a pain to implement, changing all the history and group memberships and
permissions and whatnot. But if there's nothing out of the box it looks
like I'll have to write this feature myself.
Any suggestions?
Indeed this does not exists out of the box.
There is two main way I would say (true for renamed groups too):
* do it at the same level than the code cleaning groups and rights
when you delete a user, main issue is that we need to introduce a
DocumentRenamedEvent first (right now you get a deleted and a created
document events when renaming user). The user would just rename its
profile page name.
* introduce a special action accessible from the user/group profile to
rename a user
In both cases it's a good idea to look at how
https://github.com/xwiki/xwiki-platform/blob/master/xwiki-platform-core/xwi…
find all users/groups to cleanup since it would be pretty much the
same code but with a rename instead of a remove. Additionally I think
I think RightsManagerListener only look at current wiki right now but
it should probably look at all wikis when cleaning/renaming a global
user/group.
P.S., I saw a reference in one of the macros to allowing user pages to exist
in spaces other than XWiki in the future. That would be useful too, and
probably touches much of the same code.
_______________________________________________
users mailing list
users(a)xwiki.org
http://lists.xwiki.org/mailman/listinfo/users
--
Thomas Mortagne