Class AbstractGroupComputer
- java.lang.Object
-
- org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
-
- All Implemented Interfaces:
GroupComputer
- Direct Known Subclasses:
AbstractAttributeBasedGroupComputer,DocumentMetadataGroupComputer,MultiTenantGroupComputer,ShibbolethGroupComputer,UserMetadataGroupComputer
public abstract class AbstractGroupComputer extends Object implements GroupComputer
Base class forGroupComputerimplementation. Provides a naive implementation for searchGroups method.- Author:
- Thierry Delprat
-
-
Constructor Summary
Constructors Constructor Description AbstractGroupComputer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected UserManagergetUM()booleanhasGroup(String name)Default implementation that returns true if methodGroupComputer.getAllGroupIds()contains given group name.List<String>searchGroups(Map<String,Serializable> filter, Set<String> fulltext)Default implementation that searches on all ids for a match.List<String>searchGroups(QueryBuilder queryBuilder)Searches for groups.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.ecm.platform.computedgroups.GroupComputer
getAllGroupIds, getGroupMembers, getGroupsForUser, getParentsGroupNames, getSubGroupsNames
-
-
-
-
Method Detail
-
getUM
protected UserManager getUM()
-
searchGroups
public List<String> searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
Default implementation that searches on all ids for a match.- Specified by:
searchGroupsin interfaceGroupComputer
-
searchGroups
public List<String> searchGroups(QueryBuilder queryBuilder)
Description copied from interface:GroupComputerSearches for groups.- Specified by:
searchGroupsin interfaceGroupComputer- Parameters:
queryBuilder- the query- Returns:
- the list of computed group ids
-
hasGroup
public boolean hasGroup(String name)
Default implementation that returns true if methodGroupComputer.getAllGroupIds()contains given group name.- Specified by:
hasGroupin interfaceGroupComputer
-
-