Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.computedgroups
Class AbstractGroupComputer

java.lang.Object
  extended by org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
All Implemented Interfaces:
GroupComputer
Direct Known Subclasses:
AbstractAttributeBasedGroupComputer

public abstract class AbstractGroupComputer
extends Object
implements GroupComputer

Base class for GroupComputer implementation. Provides a naive implementation for searchGroups method.

Author:
Thierry Delprat

Constructor Summary
AbstractGroupComputer()
           
 
Method Summary
 boolean hasGroup(String name)
          Default implementation that returns true if method GroupComputer.getAllGroupIds() contains given group name.
 List<String> searchGroups(Map<String,Serializable> filter, Set<String> fulltext)
          Default implementation that searches on all ids for a match.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.nuxeo.ecm.platform.computedgroups.GroupComputer
getAllGroupIds, getGroupMembers, getGroupsForUser, getParentsGroupNames, getSubGroupsNames
 

Constructor Detail

AbstractGroupComputer

public AbstractGroupComputer()
Method Detail

searchGroups

public List<String> searchGroups(Map<String,Serializable> filter,
                                 Set<String> fulltext)
                          throws Exception
Default implementation that searches on all ids for a match.

Specified by:
searchGroups in interface GroupComputer
Throws:
Exception

hasGroup

public boolean hasGroup(String name)
                 throws Exception
Default implementation that returns true if method GroupComputer.getAllGroupIds() contains given group name.

Specified by:
hasGroup in interface GroupComputer
Throws:
Exception

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.