|
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.GroupTemplate
public class GroupTemplate
| Field Summary |
|---|
| Fields inherited from interface org.springframework.social.yammer.api.GroupOperations |
|---|
SORT_BY_CREATED_AT, SORT_BY_CREATOR, SORT_BY_MEMBERS, SORT_BY_MESSAGES, SORT_BY_PRIVACY |
| Constructor Summary | |
|---|---|
GroupTemplate(org.springframework.web.client.RestTemplate restTemplate)
|
|
| Method Summary | |
|---|---|
void |
createGroup(java.lang.String name,
boolean isPrivate)
Create a new group |
Group |
getGroup(long groupId)
Returns the group with the given id |
java.util.List<Group> |
getGroups(int page,
java.lang.Character letter,
java.lang.String sortBy,
boolean reverse)
Retrieves a list of groups as specified by the parameters. |
void |
joinGroup(long groupId)
Join a group with given group id |
void |
leaveGroup(long groupId)
Join group with given group id |
void |
updateGroup(long groupId,
java.lang.String name,
boolean isPrivate)
Method returns 401 from Yammer, so it isn't visible in GroupOperations yet |
| 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 GroupTemplate(org.springframework.web.client.RestTemplate restTemplate)
| Method Detail |
|---|
public java.util.List<Group> getGroups(int page,
java.lang.Character letter,
java.lang.String sortBy,
boolean reverse)
GroupOperations
getGroups in interface GroupOperationspage - number. First page = 1letter - return groups beginning with the given lettersortBy - sort key. Valid values are "creator" | "members" | "privacy" |
"created_at" | "messages".
Use convenience constantsreverse - indicating whether sort should be reversed
List of Groupspublic Group getGroup(long groupId)
GroupOperations
getGroup in interface GroupOperations
public void createGroup(java.lang.String name,
boolean isPrivate)
GroupOperations
createGroup in interface GroupOperationsname - of groupisPrivate - whether the group is public (anyone can join) or private
public void updateGroup(long groupId,
java.lang.String name,
boolean isPrivate)
groupId - name - isPrivate - public void joinGroup(long groupId)
GroupOperations
joinGroup in interface GroupOperationspublic void leaveGroup(long groupId)
GroupOperations
leaveGroup in interface GroupOperations
|
Spring Social Yammer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||