Le lun 19/07/2004 � 17:34, David Sean Taylor a �crit : > On Jul 19, 2004, at 10:15 AM, Cyrille GACHOT wrote: > > > Le lun 19/07/2004 � 16:53, David Sean Taylor a �crit : > >> On Jul 19, 2004, at 5:02 AM, Cyrille GACHOT wrote: > >> > >>> Hi dev, > >>> > >>> I'd like to know what is the reason why there is no "setId(int id)" > >>> method in the JetspeedUser interface in jetspeed-1.5, while there is > >>> a > >>> getId() method. > >>> Also, there is a setId(int id) method in the other security-related > >>> interfaces : Group, Role, ... > >>> > >> Because its generated by the backend database (or by Torque) using > >> sequences or auto increment values > >> Its an immutable property > >> > > I had an intuition on it... But it is the same for Group, Role, and > > Permission, and they have a setId() method. Why not for users... > > > > My use case is that I have info on user comming from outside Jetspeed, > > and i create a new JetspeedUser, and set all its attributes. All works > > fine, except for Id wich is used to retrieve his group-role. > > > Why not cast it to your impl class?
I don't reimplemented the JetspeedUserInterface since I don't have any need to do it, except for this case... I use the BaseJetspeedUser class. > > > > I've done the same for Roles, and all works fine, since their is a > > setId() method. > > > > > > Would it be a big problem to have such a method? > >> > THink I prefer the casting solution > > -- > David Sean Taylor > Bluesunrise Software > [EMAIL PROTECTED] > [office] +01 707 773-4646 > [mobile] +01 707 529 9194 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
