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.boolean
hasGroup(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
-
-
-
-
Constructor Detail
-
UserMetadataGroupComputer
public UserMetadataGroupComputer(String xpath, String groupPattern)
-
-
Method Detail
-
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 groupId)
Description copied from interface:GroupComputer
Returns the members for a give group.
-
getGroupsForUser
public List<String> getGroupsForUser(NuxeoPrincipalImpl user)
Description copied from interface:GroupComputer
Returns the group names for a give User.
-
getParentsGroupNames
public List<String> getParentsGroupNames(String arg0)
Description copied from interface:GroupComputer
Return parent groups.
-
getSubGroupsNames
public List<String> getSubGroupsNames(String arg0)
Description copied from interface:GroupComputer
Returns children groups.
-
hasGroup
public boolean hasGroup(String groupId)
Description copied from class:AbstractGroupComputer
Default implementation that returns true if methodGroupComputer.getAllGroupIds()
contains given group name.- Specified by:
hasGroup
in interfaceGroupComputer
- Overrides:
hasGroup
in classAbstractGroupComputer
-
-