Clearspace API (1.10.16) Core Javadocs

com.jivesoftware.base
Class GroupManagerFactory

java.lang.Object
  extended by com.jivesoftware.base.GroupManagerFactory

public class GroupManagerFactory
extends java.lang.Object

A factory that returns a concrete instance of a group manager.


Field Summary
static com.jivesoftware.community.cache.Cache<java.lang.Long,Group> groupCache
          A cache for group objects.
static com.jivesoftware.community.cache.Cache<java.lang.String,java.lang.Long> groupIDCache
          A cache that maps group names to ID's.
static com.jivesoftware.community.cache.Cache<java.lang.String,java.util.List<java.lang.Long>> groupMemberCache
          A cache for the list of members in each group.
static com.jivesoftware.community.cache.Cache<java.lang.String,java.lang.Boolean> memberCheckCache
          Contains member checks
 
Method Summary
static void addListener(GroupListener listener)
          Method used internally by Jive.
 void destroy()
           
static void dispatchEvent(JiveEvent event)
          Method used internally by Jive.
static void doDestroy()
          Method used internally by Jive.
static void doInitialize()
           
static GroupManager getInstance()
          Returns a concrete instance of the group manager interface.
static void initCaches()
          Creates internal cache structures.
 void initialize(JiveContext jiveContext)
           
static void removeListener(GroupListener listener)
          Method used internally by Jive.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

groupCache

public static com.jivesoftware.community.cache.Cache<java.lang.Long,Group> groupCache
A cache for group objects. This cache is not instantiated until after this factory is initialized.


groupIDCache

public static com.jivesoftware.community.cache.Cache<java.lang.String,java.lang.Long> groupIDCache
A cache that maps group names to ID's. This cache is not instantiated until after this factory is initialized.


groupMemberCache

public static com.jivesoftware.community.cache.Cache<java.lang.String,java.util.List<java.lang.Long>> groupMemberCache
A cache for the list of members in each group. This cache is not instantiated until after this factory is initialized.


memberCheckCache

public static com.jivesoftware.community.cache.Cache<java.lang.String,java.lang.Boolean> memberCheckCache
Contains member checks

Method Detail

getInstance

public static GroupManager getInstance()
Returns a concrete instance of the group manager interface. This method will return null until this class has been initialized.

Note: in general, this method is not intended to be called by outside users of the API. Doing so is dangerous since the GroupManager implementation returned will not be secured by a protection proxy.

Returns:
a concrete implementation of a group manager.

initialize

public void initialize(JiveContext jiveContext)

destroy

public void destroy()

doDestroy

public static void doDestroy()
Method used internally by Jive. Do NOT use this method. Allows the class to be re-initialized.


doInitialize

public static void doInitialize()

initCaches

public static void initCaches()
Creates internal cache structures.


addListener

public static void addListener(GroupListener listener)
Method used internally by Jive. Do NOT use this method to register a listener for group events - use the GroupEventDispatcher to do that.


removeListener

public static void removeListener(GroupListener listener)
Method used internally by Jive. Do NOT use this method to unregister a listener for group events - use the GroupEventDispatcher to do that.


dispatchEvent

public static void dispatchEvent(JiveEvent event)
Method used internally by Jive.


Clearspace Project Page

Copyright © 1999-2007 Jive Software.