|
|
|
| The following comment has been added to this issue: |
[ Permlink ] |
|
Author: Florent Guillaume
Date: 04/07/07 15:50
Comment:
Actually using an EL for the criteria is probably not a good solution, as it's too general, and we will want to introspect the criteria to be able to express it as a filter when doing queries. Consider the following use case:
3. list the members of the group "company_foo"
To do that, we have to do a query (in the user directory) with a filter of "company == foo".
So it's probably best to express the criteria as:
<and>
<condition op="eq" property="companyId" value="foo"/>
</and>
(or something like that, this is just an example -- we use such xml in several places already so it would be best to unify it).
|
|
We need virtual groups that are assigned automatically to a user upon log in according to some criteria.
1. assign a given group to a user if the user fits some criteria,
2. assign a group with a dynamic name based on some user properties if the user fits some criteria.
The criteria can be based on some rules written in an EL (like for action conditions for instance,where we use Jexl, see DefaultActionFilter).
The dynamic group name can use a simple variable replacement, like "company_${user.companyId}" for instance.
|
|
|
|
![]() |
|
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets