You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@turbine.apache.org by Age Mooy <am...@home.nl> on 2003/01/07 12:58:18 UTC
Turbine security: how to get all Users for a named role or group ?
Hi,
I (think I) examined the complete security API of Turbine 2.2.x but there
doesn't seem to be a way to get all Users that have a specific Role or
Group. Am I missing something ?
The data model has a link table for this kind of info
(TURBINE_USER_GROUP_ROLE) but the UserGroupRolePeer class has no doSelect()
methods so I can't use that Peer to do joins on the Role, Group, and User
tables. There doesn't seem to be any type of join method in any of the
turbine.om.security Peer classes.
Is this something just that never gor implemented or is there some reason
for this missing functionality ?
Age
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: Turbine security: how to get all Users for a named role or group ?
Posted by Rodney Schneider <ro...@actf.com.au>.
On Tue, 7 Jan 2003 22:58, you wrote:
> Hi,
>
> I (think I) examined the complete security API of Turbine 2.2.x but
> there doesn't seem to be a way to get all Users that have a specific
> Role or Group. Am I missing something ?
>
> The data model has a link table for this kind of info
> (TURBINE_USER_GROUP_ROLE) but the UserGroupRolePeer class has no
> doSelect() methods so I can't use that Peer to do joins on the Role,
> Group, and User tables. There doesn't seem to be any type of join
> method in any of the turbine.om.security Peer classes.
>
> Is this something just that never gor implemented or is there some
> reason for this missing functionality ?
Hi Age,
You have to do the joins manually, similar to the examples in the
Criteria Howto:
http://jakarta.apache.org/turbine/torque/criteria-howto.html
I am not sure why this was never added to the SecurityService interface.
Regards,
-- Rodney
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>