|
Jive Forums API (5.5.20.2-oracle) Developer Javadocs | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jivesoftware.forum.AvatarManagerFactory
public final class AvatarManagerFactory
Used to create Managers for Avatar feature. Also used for enabling disabling avatar feature, and for cache management.
Please use method for managing adding/removing items from the caches
Field Summary | |
---|---|
static Cache |
activeAvatarCache
|
static java.lang.String |
AVATAR_ENABLE_PROPERTY
|
static Cache |
avatarCache
|
static Cache |
reverseActiveAvatarCache
|
Method Summary | |
---|---|
static void |
addActiveAvatarToCache(Avatar avatar,
User user)
Adds an avatar to the active avatar caches for a specific user |
static void |
clearAvatarFromCache(Avatar avatar)
Clears an avatar from all the caches |
void |
destroy()
Notifies the manager to release any resources that may be holding on too. |
static void |
doInitialize()
|
static AvatarManager |
getInstance()
Returns a concrete instance of the Avatar interface. |
void |
initialize()
Initialize the manager. |
static boolean |
isAvatarsEnabled()
|
static void |
setAvatarsEnabled(boolean enabled)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String AVATAR_ENABLE_PROPERTY
public static Cache avatarCache
public static Cache activeAvatarCache
public static Cache reverseActiveAvatarCache
Method Detail |
---|
public static AvatarManager getInstance()
Avatar
interface.Note: in general this method intended to be called only by the DbForumFactory.
public void initialize()
JiveManager
This method is used internally by Jive during application startup and should not be called during normal usage of the class.
initialize
in interface JiveManager
public void destroy()
JiveManager
destroy
in interface JiveManager
public static void doInitialize()
public static void setAvatarsEnabled(boolean enabled)
public static boolean isAvatarsEnabled()
public static void addActiveAvatarToCache(Avatar avatar, User user)
avatar
- active avataruser
- user key for avatarpublic static void clearAvatarFromCache(Avatar avatar)
avatar
- avatar to clear from caches
|
Jive Forums Project Page | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |