> -----Original Message----- > From: Javed Mahmud [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, December 04, 2002 5:39 PM > To: [EMAIL PROTECTED] > Subject: Extending User?? > > > Hello there,, > I am a bit confused in how to extend the TUBINE_USER Table. > So far I have seen two kinds of approach in this mailing list was > wondering which one is the best way to do or they both need to be done in > order to add a field in the TURBINE_USER Table. > Following are the approaches: > See:
http://jakarta.apache.org/jetspeed/site/security.html Often you may need to extend the Jetspeed User to support extra columns for your own database implementation. Here are the steps to do so: 1. Modify build/torque/security_schema.xml, adding the new columns to the Torque XML schema. 2. Modify build/torque/build.properties to generate DDL for your particular database (database=) 3. Rebuild Jetspeed to auto-generate the DDL script for your db, and generate the OM objects The OM objects are generated to the org/apache/jetspeed/om/security/turbine package. The destination package is configurable in build/torque/build.properties. The DDL script is written to src/sql/security-schema.sql. 4. Extend JetspeedUser to, for ex, MyUser, and cast to it whenever you need to access your new columns For an overview of modifying Torque schemas, see: Torque Schemas 5. Modify JetspeedSecurity.properties: services.JetspeedSecurity.user.class=myclasses.portal.om.security.MyUser -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
