use of org.olat.core.util.prefs.Preferences in project openolat by klemens.
the class MessageListController method saveViewSettings.
private void saveViewSettings(UserRequest ureq, String viewMode) {
Preferences prefs = ureq.getUserSession().getGuiPreferences();
prefs.putAndSave(GUI_PREFS_VIEWMODE_CLASS, GUI_PREFS_VIEWMODE_KEY, viewMode);
}
use of org.olat.core.util.prefs.Preferences in project openolat by klemens.
the class MessageListController method getViewSettings.
private String getViewSettings(UserRequest ureq) {
Preferences prefs = ureq.getUserSession().getGuiPreferences();
Object setting = prefs.get(GUI_PREFS_VIEWMODE_CLASS, GUI_PREFS_VIEWMODE_KEY);
if (VIEWMODE_THREAD.equals(setting) || VIEWMODE_FLAT.equals(setting) || VIEWMODE_MESSAGE.equals(setting)) {
return (String) setting;
}
return VIEWMODE_THREAD;
}
Aggregations