Hi,

Have you taken a look at the Criteria HOWTO? Criteria are a way of using
WHERE SQL clauses from the Peers.

http://jakarta.apache.org/turbine/turbine-2/howto/criteria-howto.html

The example in the HOWTO is for getting roles that match a permission or
vice versa.

If you need more help, feel free to ask.

Hope this helps,
Jeff
----- Original Message -----
From: "Chris Chew" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 01, 2002 10:23 AM
Subject: Get users with a given role


> Hello.
>
> I am having trouble figuring out how to get a list of
> users with a particular role using the security
> service.  I was hoping for something like:
>
> public ArrayList getUsersWithRole(String role);
>
>
> Can anybody point me in the right direction, or am I
> going to have to extend something?  If I have to start
> extending, are there any suggestions or strategies
> that you would suggest?
>
> Thank you for the help, and the Turbine!
>
> Chris
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - your guide to health and wellness
> http://health.yahoo.com
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>


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

Reply via email to