Sean Legassick wrote:

> On 2000.11.20 12:50:17 +0000 Rafal Krzewski wrote:
> > <proposal>
> > Default schema of TURBINE_USER table contains the minimal
> > subset of user information that is useful to the widest
> > range of applications possible.
> >
> > The following fields are included:
> >
> > first name
> > last name
> > email address
> >
> > If application needs to process more information about
> > an user the following actions can be performed
>
> Rafal,
>

Not exactly about the proposal, but we have a problem porting Jetspeed to the
new security branch.

data.getUser() returns a User. We want to edit information using old ways (i.e.
the database). What would be the right way?

- Update fields in the User object and let Turbine save it to the DB. I think
that we are not using anything that is not in the new schema, so this should be
a way. That looks simple, but I'm not sure on how to do it.

- Use the database (the old actions code did this). In this case, we miss the
getId() method in User. We need to cast a User to a TurbineUser to get this
method. Would it be safe to assume this? Else, would it be safe to assume that
every kind of user will have some sort of unique numeric id, and thus add this
method to the User interface? (That would be a very simple patch, if it makes
sense.)

The code we are porting is relatively old. We don't understand so well the new
model... The situation is not ideal, as you can see :)

>
> I'm +1 on your proposal - almost every app will need to store its own data
> alongside user's anyway... preferences etc...
>
> By the way, did you ever start knocking up an FSD for the admin app - I now
> have a pretty good idea of what needs doing but I'd like to see any
> preparatory work you may have done...
>
> --
> Sean Legassick
> [EMAIL PROTECTED]
>
> ------------------------------------------------------------
> To subscribe:        [EMAIL PROTECTED]
> To unsubscribe:      [EMAIL PROTECTED]
> Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
> Problems?:           [EMAIL PROTECTED]



------------------------------------------------------------
To subscribe:        [EMAIL PROTECTED]
To unsubscribe:      [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?:           [EMAIL PROTECTED]

Reply via email to