Class DocumentMetadataGroupComputer
- java.lang.Object
-
- org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
-
- org.nuxeo.ecm.platform.computedgroups.DocumentMetadataGroupComputer
-
- All Implemented Interfaces:
GroupComputer
public class DocumentMetadataGroupComputer extends AbstractGroupComputer
Configurable Group Computer based on Metadata of Documents. Documents Selection is managed by NXQL where clause.- Since:
- 5.7.3
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected classDocumentMetadataGroupComputer.GetDocumentsFromUsername
-
Constructor Summary
Constructors Constructor Description DocumentMetadataGroupComputer(String whereClause, String groupPattern, String xpath)
-
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 groupID)Return parent groups.List<String>getSubGroupsNames(String groupID)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 groupID)
Description copied from interface:GroupComputerReturn parent groups.
-
getSubGroupsNames
public List<String> getSubGroupsNames(String groupID)
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
-
-