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 forGroupComputer
implementation 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 String
getAttributeForGroupComputation()
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
-
-
-
-
Constructor Detail
-
AbstractAttributeBasedGroupComputer
public AbstractAttributeBasedGroupComputer()
-
-
Method Detail
-
getAttributeForGroupComputation
protected abstract String getAttributeForGroupComputation()
-
getAllGroupIds
public List<String> getAllGroupIds()
Description copied from interface:GroupComputer
Return 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:GroupComputer
Returns the members for a give group.
-
getGroupsForUser
public List<String> getGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
Description copied from interface:GroupComputer
Returns the group names for a give User.
-
getParentsGroupNames
public List<String> getParentsGroupNames(String groupName)
Description copied from interface:GroupComputer
Return parent groups.
-
getSubGroupsNames
public List<String> getSubGroupsNames(String groupName)
Description copied from interface:GroupComputer
Returns children groups.
-
searchGroups
public List<String> searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
Description copied from class:AbstractGroupComputer
Default implementation that searches on all ids for a match.- Specified by:
searchGroups
in interfaceGroupComputer
- Overrides:
searchGroups
in classAbstractGroupComputer
-
-