User/Group properties

View: New views
2 Messages — Rating Filter:   Alert me  

User/Group properties

by Fred-45 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi all,

Is there any way to retrieve all groups or users having a given property ?

Fred.

*DISCLAIMER*
This e-mail (including any attachments) may contain information which is privileged or confidential or constitute non-public information.It is to be conveyed only to the intended recipient(s).If you received this e-mail in error, please notify the sender immediately by e-mail or telephone and delete the e-mail from your system without reading, copying or disclosing its contents to any other person.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email


Re: User/Group properties

by Grégory Joseph :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Fred,

There isn't such thing at the moment. Not directly that is. You could
always "listAllUsers" or "listAllGroups", and filter from them, but in
most case it won't be desirable to actually load all users I guess. If
you have a very limited amount of users, I suppose that would be ok,
but would totally not scale.

It should be pretty easy to implement for the hibernate
implementation. (Using hql). I'm not sure how it could work the day we
have an ldap implementation, though.
At the moment, I guess the most obvious place to add such a
functionality would be the UserDAO and GroupDAO classes, although the
UserPropertyAccessor class might also be *kind of* a candidate. I'd
say go for the DAOs if you want to provide a patch.
<thinking-aloud-slightly-of-topic>
It's been a while I've been thinking about splitting the DAOs
(especially the UserDAO) into several components, to be more flexible
in terms of where to store what. This will make sense once we have
ldap: for instance, you could load the users from your ldap server,
but groups and properties could still be stored in a database, if you
can't change your ldap schema.
</thinking-aloud-slightly-of-topic>

So, if you have other ideas on how to implement this, go ahead or
let's discuss it on the dev list if you want, but I'll be happy to
apply your patches ! ;-)

Cheers,

greg

On 26/09/06, Fred <fburlet@...> wrote:
>
> Hi all,
>
> Is there any way to retrieve all groups or users having a given property ?
>
> Fred.

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email