turbine-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gedin Frederic <frederic.ge...@jaluna.com>
Subject Re: Renaming a user
Date Sun, 25 Jan 2004 07:06:19 GMT
David Demner wrote:

>I have a minor issue with Turbine security.  I can't rename a user; when I
>                 User user = TurbineSecurity.getUser(oldLoginName);
>                 user.setName(newLoginName);
>                 TurbineSecurity.saveUser(user);
>I get an org.apache.turbine.util.security.UnknownEntityException: Unknown
>user 'newLoginName'
>Is there any workaround (other than creating a new user object, copying all
>the properties/groups/roles individually, saving this user, and deleting the
>old user)?
>David Demner
One way to do it is to define your own class of TurbineUser which will 
allow you to make all the changes you want in the database records. 
However, be careful in your code when you rename an user which is loged in.
Not a very academic solution but it may help you


To unsubscribe, e-mail: turbine-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: turbine-user-help@jakarta.apache.org

View raw message