-
Type: Improvement
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 5.7.3
-
Component/s: Security / Rights
-
Upgrade notes:
Add 2 new descriptors in the computer extension point.
There is two simples use cases where we don't want to add java code as this is always the same logic:
- Computed Groups based on User Metadata. For instance in the LDAP user reference database, each user has a rank (for army for instance). For instance, we would like that if the user is a General, the user belongs to the rank_General group.
- Computed groups based on a metadata of a list of documents where the user is referenced.
Here is an example of contribution:
<extension point="computer" target="org.nuxeo.ecm.platform.computedgroups.ComputedGroupsServiceImpl"> <!-- userAttibute --> <userMetadataGroupComputer enabled="false" xpath="company" groupPattern="grade_%s" name="grade_cg"/> <!-- documentMetadata --> <documentMetadataGroupComuter xpath="dc:title" whereClause="dc:creator = '%s'" groupPattern="creator_%s" name="creator_cg"/> </extension>