David Demner wrote:

I have a minor issue with Turbine security.  I can't rename a user; when I
go:

                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)?

Thanks,

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


Regards


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to