Class UserMetadataGroupComputer
- java.lang.Object
-
- org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
-
- org.nuxeo.ecm.platform.computedgroups.UserMetadataGroupComputer
-
- All Implemented Interfaces:
GroupComputer
public class UserMetadataGroupComputer extends AbstractGroupComputer
Configurable Group Computer based on metadata of the user.- Since:
- 5.7.3
-
-
Constructor Summary
Constructors Constructor Description UserMetadataGroupComputer(String xpath, String groupPattern)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getAllGroupIds()Return all group ids.List<String>getGroupMembers(String groupId)Returns the members for a give group.List<String>getGroupsForUser(NuxeoPrincipalImpl user)Returns the group names for a give User.List<String>getParentsGroupNames(String arg0)Return parent groups.List<String>getSubGroupsNames(String arg0)Returns children groups.booleanhasGroup(String groupId)Default implementation that returns true if methodGroupComputer.getAllGroupIds()contains given group name.-
Methods inherited from class org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
getUM, searchGroups, searchGroups
-
-
-
-
Field Detail
-
log
public static final Log log
-
-
Method Detail
-
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 groupId)
Description copied from interface:GroupComputerReturns the members for a give group.
-
getGroupsForUser
public List<String> getGroupsForUser(NuxeoPrincipalImpl user)
Description copied from interface:GroupComputerReturns the group names for a give User.
-
getParentsGroupNames
public List<String> getParentsGroupNames(String arg0)
Description copied from interface:GroupComputerReturn parent groups.
-
getSubGroupsNames
public List<String> getSubGroupsNames(String arg0)
Description copied from interface:GroupComputerReturns children groups.
-
hasGroup
public boolean hasGroup(String groupId)
Description copied from class:AbstractGroupComputerDefault implementation that returns true if methodGroupComputer.getAllGroupIds()contains given group name.- Specified by:
hasGroupin interfaceGroupComputer- Overrides:
hasGroupin classAbstractGroupComputer
-
-