|
|
|
|
The following issue has been resolved as FIXED.
|
|
Author: Thierry Delprat
Date: 27/04/07 19:18
Comment:
sorry for the delay :(
|
|
in org.nuxeo.ecm.webapp.security the getSuggestedGroups method retrieves all groups from the groupDirectory and the search if the name of the groups contains the pattern searched.
This works well if there are a few groups, but in a LDAP context there can be hundreds of groups. For my purpose, i limited the number of items a directory search can return : if the max number of item is reached no item is returned... (see NXP-800). In this case, the getSuggestedGroups method can't work.
I changed it so that it uses the same method as the getSuggestedUsers : it now uses a direct search via the searchGroups method of the UserManager.
===================================================
public List<NuxeoGroup> getSuggestedGroups() {
this.searchOverflow = false;
if ((this.searchFilter == null) || (this.searchFilter.length() == 0)) {
return new ArrayList<NuxeoGroup>();
}
List<NuxeoGroup> result;
try {
result = userManager.searchGroups(this.searchFilter);
} catch (ClientException e) {
e.printStackTrace();
return new ArrayList<NuxeoGroup>();
}
if(result.size()> MAX_SEARCH_RESULTS) {
this.searchOverflow = true;
return new ArrayList<NuxeoGroup>();
}
return result;
}
===================================================
|
|
|
|
![]() |
|
_______________________________________________
ECM-tickets mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/ecm-tickets