Nuxeo Enterprise Platform 5.4

org.nuxeo.cm.core.usermanager
Class CaseManagementGroupComputer

java.lang.Object
  extended by org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
      extended by org.nuxeo.cm.core.usermanager.CaseManagementGroupComputer
All Implemented Interfaces:
org.nuxeo.ecm.platform.computedgroups.GroupComputer

public class CaseManagementGroupComputer
extends org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer

Group computer for case management, adding mailboxes ids to the user virtual groups so that it can be used for permissions resolution.

Author:
Anahide Tchertchian

Field Summary
static ThreadLocal<Boolean> disableRetrieveMailboxes
           
 
Constructor Summary
CaseManagementGroupComputer()
           
 
Method Summary
 List<String> getAllGroupIds()
          Returns an empty list for efficiency
 List<String> getGroupMembers(String groupName)
           
 List<String> getGroupsForUser(org.nuxeo.ecm.platform.usermanager.NuxeoPrincipalImpl nuxeoPrincipal)
          Method called at startup to compute users groups, so returns an empty list when local thread is flagged.
 List<String> getParentsGroupNames(String groupName)
           
 List<String> getSubGroupsNames(String groupName)
           
 boolean hasGroup(String name)
          Return false: no mailbox should be seen as a group
 List<String> searchGroups(Map<String,Serializable> filter, HashSet<String> fulltext)
          Returns an empty list as mailboxes are not searchable
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

disableRetrieveMailboxes

public static final ThreadLocal<Boolean> disableRetrieveMailboxes
Constructor Detail

CaseManagementGroupComputer

public CaseManagementGroupComputer()
Method Detail

getAllGroupIds

public List<String> getAllGroupIds()
                            throws Exception
Returns an empty list for efficiency

Throws:
Exception

searchGroups

public List<String> searchGroups(Map<String,Serializable> filter,
                                 HashSet<String> fulltext)
                          throws Exception
Returns an empty list as mailboxes are not searchable

Specified by:
searchGroups in interface org.nuxeo.ecm.platform.computedgroups.GroupComputer
Overrides:
searchGroups in class org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
Throws:
Exception

getGroupMembers

public List<String> getGroupMembers(String groupName)
                             throws Exception
Throws:
Exception

getGroupsForUser

public List<String> getGroupsForUser(org.nuxeo.ecm.platform.usermanager.NuxeoPrincipalImpl nuxeoPrincipal)
                              throws Exception
Method called at startup to compute users groups, so returns an empty list when local thread is flagged.

Throws:
Exception

getParentsGroupNames

public List<String> getParentsGroupNames(String groupName)
                                  throws Exception
Throws:
Exception

getSubGroupsNames

public List<String> getSubGroupsNames(String groupName)
                               throws Exception
Throws:
Exception

hasGroup

public boolean hasGroup(String name)
                 throws Exception
Return false: no mailbox should be seen as a group

Specified by:
hasGroup in interface org.nuxeo.ecm.platform.computedgroups.GroupComputer
Overrides:
hasGroup in class org.nuxeo.ecm.platform.computedgroups.AbstractGroupComputer
Throws:
Exception

Nuxeo Enterprise Platform 5.4

Copyright © 2011 Nuxeo SAS. All Rights Reserved.