com.xpn.xwiki.user.impl.exo
Class ExoGroupServiceImpl

java.lang.Object
  extended by com.xpn.xwiki.user.impl.exo.ExoGroupServiceImpl
All Implemented Interfaces:
XWikiGroupService

public class ExoGroupServiceImpl
extends java.lang.Object
implements XWikiGroupService


Field Summary
private  XWikiCache groupCache
           
private static org.exoplatform.services.organization.OrganizationService organizationService
           
 
Constructor Summary
ExoGroupServiceImpl()
           
 
Method Summary
 void addUserToGroup(java.lang.String user, java.lang.String database, java.lang.String group)
           
 void flushCache()
           
protected  org.exoplatform.services.organization.GroupHandler getGroupHandler()
           
protected  org.exoplatform.services.organization.MembershipHandler getMembershipHandler()
           
protected  org.exoplatform.services.organization.MembershipTypeHandler getMembershipTypeHandler()
           
static org.exoplatform.services.organization.OrganizationService getOrganizationService()
           
protected  org.exoplatform.services.organization.UserHandler getUserHandler()
           
 void init(XWiki xwiki)
           
 java.util.List listAllGroups(XWikiContext context)
           
 java.util.Collection listGroupsForUser(java.lang.String username, XWikiContext context)
           
 java.util.List listMemberForGroup(java.lang.String group, XWikiContext context)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

organizationService

private static org.exoplatform.services.organization.OrganizationService organizationService

groupCache

private XWikiCache groupCache
Constructor Detail

ExoGroupServiceImpl

public ExoGroupServiceImpl()
Method Detail

getGroupHandler

protected org.exoplatform.services.organization.GroupHandler getGroupHandler()

getOrganizationService

public static org.exoplatform.services.organization.OrganizationService getOrganizationService()

getUserHandler

protected org.exoplatform.services.organization.UserHandler getUserHandler()

getMembershipHandler

protected org.exoplatform.services.organization.MembershipHandler getMembershipHandler()

getMembershipTypeHandler

protected org.exoplatform.services.organization.MembershipTypeHandler getMembershipTypeHandler()

init

public void init(XWiki xwiki)
Specified by:
init in interface XWikiGroupService

flushCache

public void flushCache()
Specified by:
flushCache in interface XWikiGroupService

listGroupsForUser

public java.util.Collection listGroupsForUser(java.lang.String username,
                                              XWikiContext context)
                                       throws XWikiException
Specified by:
listGroupsForUser in interface XWikiGroupService
Throws:
XWikiException

addUserToGroup

public void addUserToGroup(java.lang.String user,
                           java.lang.String database,
                           java.lang.String group)
                    throws XWikiException
Specified by:
addUserToGroup in interface XWikiGroupService
Throws:
XWikiException

listMemberForGroup

public java.util.List listMemberForGroup(java.lang.String group,
                                         XWikiContext context)
                                  throws XWikiException
Specified by:
listMemberForGroup in interface XWikiGroupService
Throws:
XWikiException

listAllGroups

public java.util.List listAllGroups(XWikiContext context)
                             throws XWikiException
Specified by:
listAllGroups in interface XWikiGroupService
Throws:
XWikiException


Copyright 2003 Ludovic Dubost