|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfilePreferencesLogic
An interface for dealing with ProfilePreferences in Profile2
| Method Summary | |
|---|---|
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? used for querying all of the preferences |
boolean |
savePreferencesRecord(ProfilePreferences profilePreferences)
Save the preferences record to the database |
| Method Detail |
|---|
ProfilePreferences getPreferencesRecordForUser(String userId)
Defaults to using the cached version where possible
userId - uuid of the user to retrieve the record for
ProfilePreferences getPreferencesRecordForUser(String userId,
boolean useCache)
userId - uuid of the user to retrieve the record foruseCache - whether or not to use the cache
boolean savePreferencesRecord(ProfilePreferences profilePreferences)
profilePreferences - the record for the user
boolean isPreferenceEnabled(String userUuid,
PreferenceType type)
userUuid - uuid of the usertype - PreferenceType enum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||