|
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.MessageTemplate
public class MessageTemplate
| Field Summary |
|---|
| Fields inherited from interface org.springframework.social.yammer.api.MessageOperations |
|---|
NO_THREADING, THREADED, THREADED_EXTENDED |
| Constructor Summary | |
|---|---|
MessageTemplate(org.springframework.web.client.RestTemplate restTemplate)
|
|
| Method Summary | |
|---|---|
void |
delete(long messageId)
Deletes a message, current user must be owner |
MessageInfo |
getMessages(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets messages from the company feed, essentially all messages posted in a Yammer network |
MessageInfo |
getMessagesAboutTopic(long topicId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets messages on a specified topic |
MessageInfo |
getMessagesFollowing(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets messages from groups, topics and users you are following |
MessageInfo |
getMessagesFromUser(long userId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets the message posted by a given user |
MessageInfo |
getMessagesInGroup(long groupId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
|
MessageInfo |
getMessagesInThread(long threadId,
long olderThan,
long newerThan,
int limit)
Get all messages for a thread |
MessageInfo |
getMessagesLikedByUser(long userId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets messages liked by a specified user |
MessageInfo |
getMessagesPrivate(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets your private messages |
MessageInfo |
getMessagesReceived(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets messages you've received |
MessageInfo |
getMessagesSent(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
Gets your sent messages |
void |
like(long messageId)
Lets the logged in user like a message |
MessageInfo |
postUpdate(java.lang.String message)
Post a textual message to your network |
MessageInfo |
postUpdate(java.lang.String message,
YammerPostDetails details)
Post an update to your network with details (ie attachments etc) |
void |
unlike(long messageId)
Unlike a message that has previously been liked by logged in user |
| 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 MessageTemplate(org.springframework.web.client.RestTemplate restTemplate)
restTemplate - | Method Detail |
|---|
public MessageInfo getMessages(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessages in interface MessageOperationsolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesFollowing(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesFollowing in interface MessageOperationsolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesSent(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesSent in interface MessageOperationsolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesPrivate(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesPrivate in interface MessageOperationsolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesAboutTopic(long topicId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesAboutTopic in interface MessageOperationstopicId - the id of the topic for which you want to see messagesolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesInGroup(long groupId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
public MessageInfo getMessagesInThread(long threadId,
long olderThan,
long newerThan,
int limit)
MessageOperations
getMessagesInThread in interface MessageOperationsthreadId - id of the thread for which messages will be returnedolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idlimit - the limit of number of messages returned (50 max)
public MessageInfo getMessagesFromUser(long userId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesFromUser in interface MessageOperationsuserId - the user id you want to see the messages forolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesLikedByUser(long userId,
long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesLikedByUser in interface MessageOperationsuserId - of the person who've liked the messagesolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADING
public MessageInfo getMessagesReceived(long olderThan,
long newerThan,
java.lang.String threaded,
int limit)
MessageOperations
getMessagesReceived in interface MessageOperationsolderThan - return only messages older than this message idnewerThan - return only messages newer than this message idthreaded - type of threaded view or null if no threaded view is required.
Valid values are:
MessageOperations.THREADED_EXTENDED: return first message of thread and two most recent messages of thread,
MessageOperations.THREADED: returns first message of each thread,
MessageOperations.NO_THREADING: no threadinglimit - the limit of number of messages returned (50 max)
MessageOperations.THREADED,
MessageOperations.THREADED_EXTENDED,
MessageOperations.NO_THREADINGpublic MessageInfo postUpdate(java.lang.String message)
MessageOperations
postUpdate in interface MessageOperations
public MessageInfo postUpdate(java.lang.String message,
YammerPostDetails details)
MessageOperations
postUpdate in interface MessageOperationsmessage - the text part of your messagedetails - additional details for your message
public void like(long messageId)
MessageOperations
like in interface MessageOperationsmessageId - id to likepublic void unlike(long messageId)
MessageOperations
unlike in interface MessageOperationsmessageId - id to unlikepublic void delete(long messageId)
MessageOperations
delete in interface MessageOperations
|
Spring Social Yammer | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||