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]
