|
Spring Social Yammer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.social.yammer.api.impl.AbstractYammerOperations
org.springframework.social.yammer.api.impl.UserTemplate
public class UserTemplate
| Field Summary |
|---|
| Fields inherited from interface org.springframework.social.yammer.api.UserOperations |
|---|
SORT_BY_FOLLOWERS, SORT_BY_MESSAGES |
| Constructor Summary | |
|---|---|
UserTemplate(org.springframework.web.client.RestTemplate restTemplate)
|
|
| Method Summary | |
|---|---|
YammerProfile |
getUser(long id)
Get user with the given user id |
YammerProfile |
getUser(java.lang.String userId)
|
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 |
| Methods inherited from class org.springframework.social.yammer.api.impl.AbstractYammerOperations |
|---|
buildUri, buildUri, buildUri |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public UserTemplate(org.springframework.web.client.RestTemplate restTemplate)
restTemplate - | Method Detail |
|---|
public java.util.List<YammerProfile> getUsers(int page)
UserOperations
getUsers in interface UserOperationspage - the page number in the result set
YammerProfiles matching criteria
public java.util.List<YammerProfile> getUsers(int page,
java.lang.String sortBy,
boolean reverse,
java.lang.Character letter)
UserOperations
getUsers in interface UserOperationspage - the page number in the result setsortBy - sorting key. Valid values are UserOperations.SORT_BY_FOLLOWERS (default) or UserOperations.SORT_BY_MESSAGESreverse - 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
YammerProfiles matching criteriapublic YammerProfile getUser(long id)
UserOperations
getUser in interface UserOperationsid - of user
YammerProfilepublic YammerProfile getUser(java.lang.String userId)
public void updateProfile(long userId,
UserInfo userInfo)
UserOperations
updateProfile in interface UserOperationsuserId - your user iduserInfo - your user infopublic YammerProfile getUserProfile()
UserOperations
getUserProfile in interface UserOperationsYammerProfile of the logged in userpublic YammerProfile getUserByEmail(java.lang.String email)
UserOperations
getUserByEmail in interface UserOperationsemail - address
YammerProfile with given e-mail or null if no user exists with that e-mail
|
Spring Social Yammer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||