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
Base class for
GroupComputer implementation that uses User attribute to compute groups.- Author:
- Thierry Delprat
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturn all group ids.protected abstract StringgetGroupMembers(String groupName) Returns the members for a give group.getGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal) Returns the group names for a give User.getParentsGroupNames(String groupName) Return parent groups.getSubGroupsNames(String groupName) Returns children groups.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 Details
-
AbstractAttributeBasedGroupComputer
public AbstractAttributeBasedGroupComputer()
-
-
Method Details
-
getAttributeForGroupComputation
-
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
Description copied from interface:GroupComputerReturns the members for a give group. -
getGroupsForUser
Description copied from interface:GroupComputerReturns the group names for a give User. -
getParentsGroupNames
Description copied from interface:GroupComputerReturn parent groups. -
getSubGroupsNames
Description copied from interface:GroupComputerReturns children groups. -
searchGroups
Description copied from class:AbstractGroupComputerDefault implementation that searches on all ids for a match.- Specified by:
searchGroupsin interfaceGroupComputer- Overrides:
searchGroupsin classAbstractGroupComputer
-