>
>
> > a bit better, but still wrong!
> >
> > TurbineUser user = TurbineSecurity.getAnonymousUser();
> > user.setLoginName("collie");
> > user.setFirstName("colin");
> > TurbineSercurity.addUser(user, "password");
>
> Now I am a bit confused. I thought TurbineSecurity was a facade class to hide the
>actual security implementation, which is based on the User interface (and not the
>TurbineUser class) ie. code that users the security implementation should not know
>that T
urbineUser actually implements the User interface.
>
> Thus, I would have thought that the correct code for the above is as follows:
>
> User user = TurbineSecurity.getAnonymousUser();
> user.setLoginName("collie");
> user.setFirstName("colin");
> TurbineSercurity.addUser(user, "password");
>
> Am I missing something?
>
> Regards
> Chris
No. Either one should work. In fact, TurbineSecurity.getAnonymousUser()
returns a User object. But, you might choose to attempt to cast that to
whatever type of "real" User object you need based on features and such.
thanks,
-jon
--
Scarab -
Java Servlet Based - Open Source
Bug/Issue Tracking System
<http://scarab.tigris.org/>
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]