Martin, here are the steps I already went through :
1. Modify the torque schema.xml :
I changed the name of the table user to MYUSER, but I specified
JavaName=TurbineUser, so that the generated classes keep the same name.
Added the 'title' field.
<table name="MYUSER" idMethod="idbroker" javaName="TurbineUser">
...
<column name="TITLE" size="99" type="VARCHAR" />
...
</table>
I rebuilt to generate the peer classes.
2. Create a MyUser interface and a MyUserImpl class
MyUser extends JetspeedUser and add the setTitle and getTitle methods, and
the static final String TITLE = "title".
MyUserImpl extends BaseJetspeedUser and implements MyUser :
public class MyUserImpl extends BaseJetspeedUser implements MyUser {
public String getTitle(){
return (String) getPerm(MyUser.TITLE);
}
public void setTitle(String title){
setPerm(PcsUser.TITLE, title);
}
}
3. Modifiy the JetspeedSecurity.* files
set
"services.JetspeedSecurity.user.class=myclasses.portal.om.security.MyUserImp
l"
Wherever this parameter appears.
I hope this can help you, and I hope this is the right way to do it :)
cheers
Pierre