|
Spring Social Yammer | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserOperations
Sub-API for User related operations
Field Summary | |
---|---|
static java.lang.String |
SORT_BY_FOLLOWERS
Convenience constant for sorting by followers |
static java.lang.String |
SORT_BY_MESSAGES
Convenience constant for sorting by messages |
Method Summary | |
---|---|
YammerProfile |
getUser(long id)
Get user with the given user id |
YammerProfile |
getUserByEmail(java.lang.String email)
Get user by e-mail |
YammerProfile |
getUserProfile()
Get the user profile of the logged in user |
java.util.List<YammerProfile> |
getUsers(int page)
List users using the yammer defaults by followers. |
java.util.List<YammerProfile> |
getUsers(int page,
java.lang.String sortBy,
boolean reverse,
java.lang.Character letter)
List users |
void |
updateProfile(long userId,
UserInfo userInfo)
Update user profile |
Field Detail |
---|
static final java.lang.String SORT_BY_MESSAGES
static final java.lang.String SORT_BY_FOLLOWERS
Method Detail |
---|
YammerProfile getUserProfile()
YammerProfile
of the logged in userYammerProfile getUser(long id)
id
- of user
YammerProfile
org.springframework.social.ResourceNotFoundException
- if no user corresponds to that Id in your networkYammerProfile getUserByEmail(java.lang.String email)
email
- address
YammerProfile
with given e-mail or null
if no user exists with that e-mailjava.util.List<YammerProfile> getUsers(int page, java.lang.String sortBy, boolean reverse, java.lang.Character letter)
page
- the page number in the result setsortBy
- sorting key. Valid values are SORT_BY_FOLLOWERS
(default) or SORT_BY_MESSAGES
reverse
- true
if you want the results in reversed orderletter
- the letter you want the user to start with, or null
if you don't want to filter by letter
YammerProfile
s matching criteriajava.util.List<YammerProfile> getUsers(int page)
page
- the page number in the result set
YammerProfile
s matching criteriavoid updateProfile(long userId, UserInfo userInfo)
userId
- your user iduserInfo
- your user info
|
Spring Social Yammer | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |