mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Fixed issues found as a result of ALF-9636: SVC 67: Lucene removal: Sanity test Share UI with Lucene turned off
Fixed ALF-9686: It's impossible to find any group at the Manage Space Users page Fixed ALF-9673: It's impossible to find any site Fixed ALF-9669: Site invite fails using SOLR while building email - need to remove query use in invite. NOTE: Searches from the UI are now consistent in that by default a canned query based search (consistent results) are performed by default for people, group, user & site searches, to force a lucene based search that support the "contains" type query users must prefix their search with *, this is no longer added by default by the UI. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@29628 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -32,6 +32,8 @@ import javax.faces.event.ActionEvent;
|
||||
import javax.transaction.UserTransaction;
|
||||
|
||||
import org.alfresco.model.ContentModel;
|
||||
import org.alfresco.query.PagingRequest;
|
||||
import org.alfresco.query.PagingResults;
|
||||
import org.alfresco.service.cmr.repository.NodeRef;
|
||||
import org.alfresco.service.cmr.security.AuthorityService;
|
||||
import org.alfresco.service.cmr.security.AuthorityType;
|
||||
@@ -448,8 +450,23 @@ public class GroupsDialog extends BaseDialogBean
|
||||
}
|
||||
else
|
||||
{
|
||||
boolean immediate = (this.filterMode.equals(FILTER_CHILDREN));
|
||||
Set<String> authorities = this.authService.findAuthorities(AuthorityType.GROUP, this.group, immediate, search, AuthorityService.ZONE_APP_DEFAULT);
|
||||
List<String> authorities;
|
||||
|
||||
if (search != null && search.startsWith("*"))
|
||||
{
|
||||
// if the search term starts with a wildcard use Lucene based search to find groups (results will be inconsistent)
|
||||
boolean immediate = (this.filterMode.equals(FILTER_CHILDREN));
|
||||
Set<String> results = this.authService.findAuthorities(AuthorityType.GROUP, this.group, immediate, search, AuthorityService.ZONE_APP_DEFAULT);
|
||||
authorities = new ArrayList<String>(results);
|
||||
}
|
||||
else
|
||||
{
|
||||
// all other searches use the canned query so search results are consistent
|
||||
PagingResults<String> pagedResults = this.authService.getAuthorities(AuthorityType.GROUP,
|
||||
AuthorityService.ZONE_APP_DEFAULT, search, true, true, new PagingRequest(10000));
|
||||
authorities = pagedResults.getPage();
|
||||
}
|
||||
|
||||
groups = new ArrayList<Map<String,String>>(authorities.size());
|
||||
for (String authority : authorities)
|
||||
{
|
||||
|
Reference in New Issue
Block a user