Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.computedgroups
Interface GroupComputer

All Known Implementing Classes:
AbstractAttributeBasedGroupComputer, AbstractGroupComputer, CompanyGroupComputer

public interface GroupComputer

Interface that must be implemented by all contributed GroupComputers.

Author:
Thierry Delprat

Method Summary
 List<String> getAllGroupIds()
          Return all group ids.
 List<String> getGroupMembers(String groupName)
          Returns the members for a give group.
 List<String> getGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
          Returns the group names for a give User.
 List<String> getParentsGroupNames(String groupName)
          Return parent groups.
 List<String> getSubGroupsNames(String groupName)
          Returns children groups.
 boolean hasGroup(String name)
          Returns true if the given group exists.
 List<String> searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
          Searches for a group.
 

Method Detail

getGroupsForUser

List<String> getGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
                              throws Exception
Returns the group names for a give User.

Throws:
Exception

getAllGroupIds

List<String> getAllGroupIds()
                            throws Exception
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.

Throws:
Exception

getGroupMembers

List<String> getGroupMembers(String groupName)
                             throws Exception
Returns the members for a give group.

Throws:
Exception

getParentsGroupNames

List<String> getParentsGroupNames(String groupName)
                                  throws Exception
Return parent groups.

Throws:
Exception

getSubGroupsNames

List<String> getSubGroupsNames(String groupName)
                               throws Exception
Returns children groups.

Throws:
Exception

searchGroups

List<String> searchGroups(Map<String,Serializable> filter,
                          Set<String> fulltext)
                          throws Exception
Searches for a group. (This method is used in particular from UI to search/select a group).

Throws:
Exception

hasGroup

boolean hasGroup(String name)
                 throws Exception
Returns true if the given group exists.

Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.