well, I am not really sure why scarab is not using the .setProperties(..)
but it functions exactly as you expected to.

Akmal
----- Original Message -----
From: "Daniel Rubin" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Saturday, July 26, 2003 11:54 PM
Subject: intake Group setProperties and scarab ManagerUser.java


> I think I must be misunderstanding the function of the method
> .setProperties( Object )
> in the intake class Group. I imagined it to iterate through the fields
> of the Group and then try to set the corresponding properties in the
> Object... so for example :
>
> the field UserName in the Group instance would be used in a call to
> Object.setUserName( ___ )
>
> I am unable to get it to work as I describe in my own application so I
> went looking through scarab and find that in the case below the
> functionality I am hoping intake provides is not made use of. The 'su'
> object's properties are explicitly set one after another...
>
> ------
> 1  register = intake.get("Register", IntakeTool.DEFAULT_KEY, false);
>
> 2  su  = (ScarabUser) TurbineSecurity.getAnonymousUser();
> 3  //su.setUserName(data.getParameters().getString("UserName"));
> 4  su.setUserName(register.get("Email").toString());
> 5  su.setFirstName(register.get("FirstName").toString());
> 6  su.setLastName(register.get("LastName").toString());
> 7  su.setEmail(register.get("Email").toString());
> 8  su.setPassword(register.get("Password").toString().trim());
> -----
>
> I am hoping to replace lines 4 to 8 with something like
> 'register.setProperties( su )'. The fact that scarab doesn't do this
> makes me think that I've got the wrong end of the stick.
>
> Please help set me straight :) Turbine seems quite super. Thanks list.
>
>   - Daniel
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to