public interface ProfilePreferencesLogic
| Modifier and Type | Method and Description |
|---|---|
ProfilePreferences |
getPreferencesRecordForUser(String userId)
Retrieve the preferences record from the database for this user.
|
ProfilePreferences |
getPreferencesRecordForUser(String userId,
boolean useCache)
Retrieve the preferences record from the database for this user but the caller has the option
on whether or not to use the cached version (PRFL-504)
|
boolean |
isPreferenceEnabled(String userUuid,
PreferenceType type)
Does this user have the specific preference enabled?
|
boolean |
savePreferencesRecord(ProfilePreferences profilePreferences)
Save the preferences record to the database
|
ProfilePreferences getPreferencesRecordForUser(String userId)
Defaults to using the cached version where possible
userId - uuid of the user to retrieve the record forProfilePreferences getPreferencesRecordForUser(String userId, boolean useCache)
userId - uuid of the user to retrieve the record foruseCache - whether or not to use the cacheboolean savePreferencesRecord(ProfilePreferences profilePreferences)
profilePreferences - the record for the userboolean isPreferenceEnabled(String userUuid, PreferenceType type)
userUuid - uuid of the usertype - PreferenceType enumCopyright © 2008-2016 The Sakai Foundation. All Rights Reserved.