"Daniel B. Ramagem" <[EMAIL PROTECTED]> writes:

> Flux is packaged into the TDK as an application.  When you build the newapp
> application you get a complete Turbine installation with both the "newapp"
> and "Flux" apps installed.  I believe you will be able to see Flux links
> from the very first page of "newapp".

I saw how it's worked into "newapp", but was wondering the right way
to incorporate it into some app I'm working.  I'm trying to start real
small and add stuff like DB access, Users, etc.


> The Flux application simplifies user management by providing a nice and
> simple interface to the Turbine security service (which uses classes  like
> org.apache.turbine.services.security.db.DBUserManager).  You don't need Flux
> to use the Turbine security schema though.

I've gotten a cheesy login type of thing working (extend the HowTo's
StrongScreen which checks data.getUser().hasLoggedIn(), and switch
templates to a Login.vm if not), but don't have a DB of users and the
DB peer objects, so I'm kinda stuck trying to understand the auth
mechanism.


> To try out the security schema in your test application, use the newapp Flux
> links to create and assign users to groups, roles, permissions.  Then in
> your templates get the AccessControlList object from the RunData object and
> perform your security checks by using the ACL's methods, like
> "hasPermission(String)".  Check out the JavaDocs for Turbine for complete
> detail on the ACL.

I could simply copy all of newapp and its flux stuff into mine, but
that doesn't help me understand. Ditto for the torque-oriented DB
creation stuff.  It's not obvious to me where all that stuff came from
in "newapp".  Flux seems to be part and parcel of newapp, but just in
different dir hierarchies; and I don't understand the auth mechanism
and DB stuff, how I can create an app from scratch and define the
schemas so ant can build the DB via torque...

So I've gotta create  a DB for this little app, with tables for
users/roles/etc,  plus whatever my app itself needs.   And then clone
the flux code from newapp to use it.  This is where I've gotten stuck.

Big learning curve.

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to