|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ProfileStatusLogic
An interface for dealing with ProfileStatus in Profile2
| Method Summary | |
|---|---|
boolean |
clearUserStatus(String userId)
Clear user status |
int |
getStatusUpdatesCount(String userUuid)
Get the number of status updates this user has made. |
ProfileStatus |
getUserStatus(String userUuid)
Get the status (message and date) for a user |
ProfileStatus |
getUserStatus(String userUuid,
ProfilePrivacy privacy)
Get the status (message and date) for a user |
boolean |
setUserStatus(ProfileStatus profileStatus)
Set user status |
boolean |
setUserStatus(String userId,
String status)
Set user status |
| Method Detail |
|---|
ProfileStatus getUserStatus(String userUuid)
Only returns a status object for those that are up to and including one week old. This could be configurable.
The privacy settings will be retrieved, and checked against the current requesting user to see if the status is allowed to be shown.
userUuid - uuid of the user to get their status for
ProfileStatus getUserStatus(String userUuid,
ProfilePrivacy privacy)
Only returns a status object for those that are up to and including one week old. This could be configurable.
The supplied privacy settings will be checked against the current requesting user to see if the status is allowed to be shown.
userUuid - uuid of the user to get their status forprivacy - ProfilePrivacy object for the user.
boolean setUserStatus(String userId,
String status)
userId - uuid of the userstatus - status to be setboolean setUserStatus(ProfileStatus profileStatus)
profileStatus - ProfileStatus object for the userboolean clearUserStatus(String userId)
userId - uuid of the userint getStatusUpdatesCount(String userUuid)
userUuid - uuid of the user
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||