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
-
Method Summary
Modifier and TypeMethodDescriptionReturn all group ids.protected abstract String
getGroupMembers
(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: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
Description copied from interface:GroupComputer
Returns the members for a give group. -
getGroupsForUser
Description copied from interface:GroupComputer
Returns the group names for a give User. -
getParentsGroupNames
Description copied from interface:GroupComputer
Return parent groups. -
getSubGroupsNames
Description copied from interface:GroupComputer
Returns children groups. -
searchGroups
Description copied from class:AbstractGroupComputer
Default implementation that searches on all ids for a match.- Specified by:
searchGroups
in interfaceGroupComputer
- Overrides:
searchGroups
in classAbstractGroupComputer
-