org.olat.instantMessaging
Class ImPrefsManager

java.lang.Object
  extended by org.olat.instantMessaging.ImPrefsManager

public class ImPrefsManager
extends java.lang.Object

Description:
load and set instant messaging preferences. Manager is used when logging in or looping over all users for awareness information. The later case need to be threadsave.

Initial Date: 11.08.2007

Author:
patrickb, guido

Method Summary
static ImPrefsManager getInstance()
          singleton, return instance
 ImPreferences loadOrCreatePropertiesFor(Identity identity)
          create new property for user with default IM prefs, or load an existing IM prefs from the property store.
 void updatePropertiesFor(Identity identity, ImPreferences toUpdate)
          update / save changed IM Preferences.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static ImPrefsManager getInstance()
singleton, return instance

Returns:

loadOrCreatePropertiesFor

public ImPreferences loadOrCreatePropertiesFor(Identity identity)
create new property for user with default IM prefs, or load an existing IM prefs from the property store.

Parameters:
identity -
Returns:

updatePropertiesFor

public void updatePropertiesFor(Identity identity,
                                ImPreferences toUpdate)
update / save changed IM Preferences. Preferences must already exist

Parameters:
identity -
toUpdate -