Class AbstractAttributeBasedGroupComputer
- java.lang.Object
-
- org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
-
- org.nuxeo.ecm.platform.computedgroups.AbstractAttributeBasedGroupComputer
-
- All Implemented Interfaces:
GroupComputer
- Direct Known Subclasses:
CompanyGroupComputer
public abstract class AbstractAttributeBasedGroupComputer extends AbstractGroupComputer
Base class forGroupComputerimplementation that uses User attribute to compute groups.- Author:
- Thierry Delprat
-
-
Constructor Summary
Constructors Constructor Description AbstractAttributeBasedGroupComputer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description List<String>getAllGroupIds()Return all group ids.protected abstract StringgetAttributeForGroupComputation()List<String>getGroupMembers(String groupName)Returns the members for a give group.List<String>getGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)Returns the group names for a give User.List<String>getParentsGroupNames(String groupName)Return parent groups.List<String>getSubGroupsNames(String groupName)Returns children groups.List<String>searchGroups(Map<String,Serializable> filter, Set<String> fulltext)Default implementation that searches on all ids for a match.-
Methods inherited from class org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
getUM, hasGroup, searchGroups
-
-
-
-
Method Detail
-
getAttributeForGroupComputation
protected abstract String getAttributeForGroupComputation()
-
getAllGroupIds
public List<String> getAllGroupIds()
Description copied from interface:GroupComputerReturn all group ids. If you class can not efficiently compute this list, you can return an empty list. In this case you need to implement the searchGroups method.
-
getGroupMembers
public List<String> getGroupMembers(String groupName)
Description copied from interface:GroupComputerReturns the members for a give group.
-
getGroupsForUser
public List<String> getGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
Description copied from interface:GroupComputerReturns the group names for a give User.
-
getParentsGroupNames
public List<String> getParentsGroupNames(String groupName)
Description copied from interface:GroupComputerReturn parent groups.
-
getSubGroupsNames
public List<String> getSubGroupsNames(String groupName)
Description copied from interface:GroupComputerReturns children groups.
-
searchGroups
public List<String> searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
Description copied from class:AbstractGroupComputerDefault implementation that searches on all ids for a match.- Specified by:
searchGroupsin interfaceGroupComputer- Overrides:
searchGroupsin classAbstractGroupComputer
-
-