|
Clearspace API (1.7.0) Core Javadocs | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jivesoftware.community.AvatarManagerFactory
public final class AvatarManagerFactory
A factory that returns a concrete instance of an AvatarManager. Also used for enabling
or disabling avatar feature, and for cache management.
Diract access of the caches is discouraged - it's best to use the available methods for
adding/removing items from an avatar cache.
| Field Summary | |
|---|---|
static com.jivesoftware.community.cache.Cache<java.lang.Object,java.lang.Object> |
activeAvatarCache
|
static java.lang.String |
AVATAR_ENABLE_PROPERTY
|
static com.jivesoftware.community.cache.Cache<java.lang.Object,java.lang.Object> |
avatarCache
|
static com.jivesoftware.community.cache.Cache<java.lang.Object,java.lang.Object> |
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()
|
static void |
doInitialize()
|
static AvatarManager |
getInstance()
Returns a concrete instance of the Avatar interface. |
void |
initialize(JiveContext jiveContext)
|
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 com.jivesoftware.community.cache.Cache<java.lang.Object,java.lang.Object> avatarCache
public static com.jivesoftware.community.cache.Cache<java.lang.Object,java.lang.Object> activeAvatarCache
public static com.jivesoftware.community.cache.Cache<java.lang.Object,java.lang.Object> reverseActiveAvatarCache
| Method Detail |
|---|
public static AvatarManager getInstance()
Avatar interface.Note: in general this method intended to be called only by the JiveContext.
public void initialize(JiveContext jiveContext)
public void destroy()
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
|
Clearspace Project Page | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||