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]