public interface ProfilePrivacyLogic
| Modifier and Type | Method and Description |
|---|---|
ProfilePrivacy |
getPrivacyRecordForUser(String userId)
Retrieve the profile privacy record from the database for this user.
|
ProfilePrivacy |
getPrivacyRecordForUser(String userId,
boolean useCache)
Retrieve the privacy 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 |
isActionAllowed(String userX,
String userY,
PrivacyType type)
Has the user allowed the other user to perform a certain action or view a piece of content?
|
boolean |
isBirthYearVisible(String uuid)
Has the user allowed viewing of their birth year in their profile.
|
boolean |
savePrivacyRecord(ProfilePrivacy profilePrivacy)
Save the profile privacy record to the database
|
ProfilePrivacy getPrivacyRecordForUser(String userId)
Defaults to using the cached version where possible
userId - uuid of the user to retrieve the record forProfilePrivacy getPrivacyRecordForUser(String userId, boolean useCache)
userId - uuid of the user to retrieve the record foruseCache - whether or not to use the cacheboolean savePrivacyRecord(ProfilePrivacy profilePrivacy)
profilePrivacy - the record for the userboolean isActionAllowed(String userX, String userY, PrivacyType type)
Most profile privacy actions are dealt with here.
userX - the uuid of the user that will have the action performed on themuserY - uuid of user requesting to do the actiontype - PrivacyType enumboolean isBirthYearVisible(String uuid)
uuid - the uuid of the user we are queryingCopyright © 2008–2014 The Sakai Foundation. All rights reserved.