eXo JCR :: Ext :: Services 1.15.11-GA

org.exoplatform.services.jcr.ext.organization
Class GroupHandlerImpl

java.lang.Object
  extended by org.exoplatform.services.jcr.ext.organization.JCROrgServiceHandler
      extended by org.exoplatform.services.jcr.ext.organization.GroupHandlerImpl
All Implemented Interfaces:
org.exoplatform.services.organization.GroupEventListenerHandler, org.exoplatform.services.organization.GroupHandler

public class GroupHandlerImpl
extends JCROrgServiceHandler
implements org.exoplatform.services.organization.GroupHandler, org.exoplatform.services.organization.GroupEventListenerHandler

Created by The eXo Platform SAS Date: 24.07.2008

Version:
$Id: GroupHandlerImpl.java 79575 2012-02-17 13:23:37Z aplotnikov $
Author:
Peter Nedonosko

Nested Class Summary
static class GroupHandlerImpl.GroupProperties
          Class contains names of group properties.
 
Field Summary
protected  List<org.exoplatform.services.organization.GroupEventListener> listeners
          The list of listeners to broadcast events.
 
Fields inherited from class org.exoplatform.services.jcr.ext.organization.JCROrgServiceHandler
cache, groupHandler, LOG, membershipHandler, service, typeHandler, userHandler, userProfileHandler, utils
 
Fields inherited from interface org.exoplatform.services.organization.GroupHandler
POST_CREATE_GROUP_EVENT, POST_DELETE_GROUP_EVENT, POST_UPDATE_GROUP_EVENT, PRE_CREATE_GROUP_EVENT, PRE_DELETE_GROUP_EVENT, PRE_UPDATE_GROUP_EVENT
 
Method Summary
 void addChild(org.exoplatform.services.organization.Group parent, org.exoplatform.services.organization.Group child, boolean broadcast)
          
 void addGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener)
          
 void createGroup(org.exoplatform.services.organization.Group group, boolean broadcast)
          
 org.exoplatform.services.organization.Group createGroupInstance()
          
 org.exoplatform.services.organization.Group findGroupById(String groupId)
          
 Collection findGroupByMembership(String userName, String membershipType)
          
 Collection findGroups(org.exoplatform.services.organization.Group parent)
          
 Collection findGroupsOfUser(String user)
          
 Collection getAllGroups()
          
 List<org.exoplatform.services.organization.GroupEventListener> getGroupListeners()
          
 org.exoplatform.services.organization.Group removeGroup(org.exoplatform.services.organization.Group group, boolean broadcast)
          
 void removeGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener)
          Remove registered listener.
 void saveGroup(org.exoplatform.services.organization.Group group, boolean broadcast)
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

listeners

protected final List<org.exoplatform.services.organization.GroupEventListener> listeners
The list of listeners to broadcast events.

Method Detail

addChild

public void addChild(org.exoplatform.services.organization.Group parent,
                     org.exoplatform.services.organization.Group child,
                     boolean broadcast)
              throws Exception

Specified by:
addChild in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

createGroup

public void createGroup(org.exoplatform.services.organization.Group group,
                        boolean broadcast)
                 throws Exception

Specified by:
createGroup in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

createGroupInstance

public org.exoplatform.services.organization.Group createGroupInstance()

Specified by:
createGroupInstance in interface org.exoplatform.services.organization.GroupHandler

findGroupById

public org.exoplatform.services.organization.Group findGroupById(String groupId)
                                                          throws Exception

Specified by:
findGroupById in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

findGroupByMembership

public Collection findGroupByMembership(String userName,
                                        String membershipType)
                                 throws Exception

Specified by:
findGroupByMembership in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

findGroups

public Collection findGroups(org.exoplatform.services.organization.Group parent)
                      throws Exception

Specified by:
findGroups in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

findGroupsOfUser

public Collection findGroupsOfUser(String user)
                            throws Exception

Specified by:
findGroupsOfUser in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

getAllGroups

public Collection getAllGroups()
                        throws Exception

Specified by:
getAllGroups in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

removeGroup

public org.exoplatform.services.organization.Group removeGroup(org.exoplatform.services.organization.Group group,
                                                               boolean broadcast)
                                                        throws Exception

Specified by:
removeGroup in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

saveGroup

public void saveGroup(org.exoplatform.services.organization.Group group,
                      boolean broadcast)
               throws Exception

Specified by:
saveGroup in interface org.exoplatform.services.organization.GroupHandler
Throws:
Exception

removeGroupEventListener

public void removeGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener)
Remove registered listener.

Specified by:
removeGroupEventListener in interface org.exoplatform.services.organization.GroupHandler
Parameters:
listener - The registered listener for removing

addGroupEventListener

public void addGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener)

Specified by:
addGroupEventListener in interface org.exoplatform.services.organization.GroupHandler

getGroupListeners

public List<org.exoplatform.services.organization.GroupEventListener> getGroupListeners()

Specified by:
getGroupListeners in interface org.exoplatform.services.organization.GroupEventListenerHandler

eXo JCR :: Ext :: Services 1.15.11-GA

Copyright © 2014 eXo Platform SAS. All Rights Reserved.