|
Spring Social Yammer | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageOperations
Sub-API for all message related operations
Field Summary | |
---|---|
static java.lang.String |
NO_THREADING
Convenience constant not threading Will return first message of each thread and the last two messages of each thread. |
static java.lang.String |
THREADED
Convenience constant for viewing messages by thread. |
static java.lang.String |
THREADED_EXTENDED
Convenience constant for viewing messages as extended threads. |
Method Summary | |
---|---|
void |
delete(long messageId)
Deletes a message, current user must be owner |
MessageInfo |
getMessages(long olderThan,
long newerThan,
java.lang.String threadedView,
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 threadedView,
int limit)
Gets messages on a specified topic |
MessageInfo |
getMessagesFollowing(long olderThan,
long newerThan,
java.lang.String threadedView,
int limit)
Gets messages from groups, topics and users you are following |
MessageInfo |
getMessagesFromUser(long userId,
long olderThan,
long newerThan,
java.lang.String threadedView,
int limit)
Gets the message posted by a given user |
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 threadedView,
int limit)
Gets messages liked by a specified user |
MessageInfo |
getMessagesPrivate(long olderThan,
long newerThan,
java.lang.String threadedView,
int limit)
Gets your private messages |
MessageInfo |
getMessagesReceived(long olderThan,
long newerThan,
java.lang.String threadedView,
int limit)
Gets messages you've received |
MessageInfo |
getMessagesSent(long olderThan,
long newerThan,
java.lang.String threadedView,
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 |
Field Detail |
---|
static final java.lang.String THREADED
static final java.lang.String THREADED_EXTENDED
static final java.lang.String NO_THREADING
Method Detail |
---|
MessageInfo getMessages(long olderThan, long newerThan, java.lang.String threadedView, int limit)
olderThan
- return only messages older than this message idnewerThan
- return only messages newer than this message idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
void like(long messageId)
messageId
- id to likevoid unlike(long messageId)
messageId
- id to unlikeMessageInfo getMessagesFromUser(long userId, long olderThan, long newerThan, java.lang.String threadedView, int limit)
userId
- 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 idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesPrivate(long olderThan, long newerThan, java.lang.String threadedView, int limit)
olderThan
- return only messages older than this message idnewerThan
- return only messages newer than this message idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesSent(long olderThan, long newerThan, java.lang.String threadedView, int limit)
olderThan
- return only messages older than this message idnewerThan
- return only messages newer than this message idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesFollowing(long olderThan, long newerThan, java.lang.String threadedView, int limit)
olderThan
- return only messages older than this message idnewerThan
- return only messages newer than this message idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesReceived(long olderThan, long newerThan, java.lang.String threadedView, int limit)
olderThan
- return only messages older than this message idnewerThan
- return only messages newer than this message idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesAboutTopic(long topicId, long olderThan, long newerThan, java.lang.String threadedView, int limit)
topicId
- 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 idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesLikedByUser(long userId, long olderThan, long newerThan, java.lang.String threadedView, int limit)
userId
- of the person who've liked the messagesolderThan
- return only messages older than this message idnewerThan
- return only messages newer than this message idthreadedView
- type of threaded view or null if no threaded view is required.
Valid values are:
THREADED_EXTENDED
: return first message of thread and two most recent messages of thread,
THREADED
: returns first message of each thread,
NO_THREADING
: no threadinglimit
- the limit of number of messages returned (50 max)
THREADED
,
THREADED_EXTENDED
,
NO_THREADING
MessageInfo getMessagesInThread(long threadId, long olderThan, long newerThan, int limit)
threadId
- 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)
MessageInfo postUpdate(java.lang.String message, YammerPostDetails details)
message
- the text part of your messagedetails
- additional details for your message
MessageInfo postUpdate(java.lang.String message)
message
-
void delete(long messageId)
messageId
-
org.springframework.social.OperationNotPermittedException
- if the message does not exist or you are not the owner of that message
|
Spring Social Yammer | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |