Do you know why Eric says we moved away from Flux?

Anyway interesting enough I just checked my log file and found:

2004-06-23 19:07:06,312 [http-8080-Processor25] ERROR
org.apache.turbine.services.velocity.TurbineVelocityService - Class
org.apache.turbine.flux.tools.FluxTool.getUsers threw Exception
org.apache.turbine.util.security.DataBackendException: Not implemented
        at
org.apache.fulcrum.security.adapter.turbine.SecurityServiceAdapter.getUsers(
SecurityServiceAdapter.java:891)
        at
org.apache.turbine.services.security.TurbineSecurity.getUsers(TurbineSecurit
y.java:337)
        at
org.apache.turbine.flux.tools.FluxTool.getUsers(FluxTool.java:241)


... But the file is full of code, and getUsers is in fact implemented... So
why does it come up with this?

Alright I use Hibernate tough, so I probably cant use the Criteria like
that. Anyway you pretty much implement all your needed user management into
the FluxTool? 

/M

-----Original Message-----
From: Jeffery Painter [mailto:[EMAIL PROTECTED] 
Sent: 23. juni 2004 19:06
To: Turbine Users List
Subject: RE: A Hibernate/Turbine 2.3 security sample


I still use much of the flux tool code in most of my apps, but I have 
extended it a great deal.

the $flux.Users is really just calling the

        public User[] getUsers()

method on the flux tool.

You should be able to replicate this behavior in any tool you want as the 
method is pretty short.


    /**
     *  Select all users sorted by last name
     *
     [EMAIL PROTECTED]                The activeUsers value
     [EMAIL PROTECTED]  Exception  Description of the Exception
     */
    public User[] getSortedUsers() throws Exception {
        Criteria criteria = new Criteria();
        criteria.addAscendingOrderByColumn(TurbineUserPeer.LAST_NAME);
        return TurbineSecurity.getUsers(criteria);
    }


It is really just a call on the TurbineSecurity service.

  Jeff Painter



On Wed, 23 Jun 2004, ANSI Webmaster wrote:

> What do we use instead then? Do I call some $fulcrum.Users?
> 
> /M
> 
> -----Original Message-----
> From: Eric Pugh [mailto:[EMAIL PROTECTED] 
> Sent: 23. juni 2004 18:46
> To: Turbine Users List
> Subject: RE: A Hibernate/Turbine 2.3 security sample
> 
> The flux stuff is pretty old and out of date..  I don't know that it is
> worth spending much time on them...
> 
> > -----Original Message-----
> > From: ANSI Webmaster [mailto:[EMAIL PROTECTED]
> > Sent: Wednesday, June 23, 2004 6:06 PM
> > To: 'Turbine Users List'
> > Subject: RE: A Hibernate/Turbine 2.3 security sample
> >
> >
> > I got a simple question regarding the Flux tool...
> >
> > In the FluxUserList there is a line that says:
> >         #foreach ($user in $flux.Users)
> >
> > And in FluxGroupList
> >         #foreach ($group in $flux.Groups)
> >
> > ... But WHERE are those variables defined? I see them nowhere in the
Flux
> > component... The example Lester Ward provided, the Users doesn't work,
but
> > Group seems to do...
> >
> > But still, I can find no Users and no Groups in the Flux
> > component (same VM
> > used in the official TDK, where it looks like they're both working..??)
> >
> > /M
> >
> >

---------------------------------------------------------------------
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