public interface MessageService
| Modifier and Type | Interface and Description |
|---|---|
static class |
MessageService.NotImplementedMessageService |
| Modifier and Type | Method and Description |
|---|---|
Future<Void> |
createMessage(UserId userId,
String appId,
String msgCollId,
Message message,
SecurityToken token)
Posts a message to the user's specified message collection, to be sent to the set of recipients specified in
the message.
|
Future<MessageCollection> |
createMessageCollection(UserId userId,
MessageCollection msgCollection,
SecurityToken token)
Creates a new message collection for the given arguments
|
Future<Void> |
deleteMessageCollection(UserId userId,
String msgCollId,
SecurityToken token)
Deletes a message collection for the given arguments
|
Future<Void> |
deleteMessages(UserId userId,
String msgCollId,
List<String> ids,
SecurityToken token)
Deletes a set of messages for a given user/message collection
|
Future<RestfulCollection<MessageCollection>> |
getMessageCollections(UserId userId,
Set<String> fields,
CollectionOptions options,
SecurityToken token)
Returns a list of message collections corresponding to the given user
|
Future<RestfulCollection<Message>> |
getMessages(UserId userId,
String msgCollId,
Set<String> fields,
List<String> msgIds,
CollectionOptions options,
SecurityToken token)
Returns a list of messages that correspond to the passed in data
|
Future<Void> |
modifyMessage(UserId userId,
String msgCollId,
String messageId,
Message message,
SecurityToken token)
Modifies/Updates a specific message with new data
|
Future<Void> |
modifyMessageCollection(UserId userId,
MessageCollection msgCollection,
SecurityToken token)
Modifies/Updates a message collection for the given arguments
|
Future<RestfulCollection<MessageCollection>> getMessageCollections(UserId userId, Set<String> fields, CollectionOptions options, SecurityToken token) throws ProtocolException
userId - The User to fetch forfields - The fields to fetch for the message collectionsoptions - Pagination, etaltoken - Given security token for this requestProtocolException - when invalid parameters are givenFuture<MessageCollection> createMessageCollection(UserId userId, MessageCollection msgCollection, SecurityToken token) throws ProtocolException
userId - The userId to create the message collection formsgCollection - A message collection that is to be createdtoken - A security token for this requestProtocolException - when invalid parameters are given or not implementedFuture<Void> modifyMessageCollection(UserId userId, MessageCollection msgCollection, SecurityToken token) throws ProtocolException
userId - The userId to modify the message collection formsgCollection - Data for the message collection to be modifiedtoken - A security token for this requestProtocolException - when invalid parameters are given or not implementedFuture<Void> deleteMessageCollection(UserId userId, String msgCollId, SecurityToken token) throws ProtocolException
userId - The userId to create the message collection formsgCollId - Data for the message collection to be modifiedtoken - A security token for this requestProtocolException - when invalid parameters are given, the message collection does not exist or not implementedFuture<RestfulCollection<Message>> getMessages(UserId userId, String msgCollId, Set<String> fields, List<String> msgIds, CollectionOptions options, SecurityToken token) throws ProtocolException
userId - The User to fetch formsgCollId - The message Collection ID to fetch from, default @allfields - The fields to fetch for the messagesmsgIds - An explicit set of message ids to fetchoptions - Options to control the fetchtoken - Given security token for this requestProtocolException - when invalid parameters are givenFuture<Void> createMessage(UserId userId, String appId, String msgCollId, Message message, SecurityToken token) throws ProtocolException
userId - The user posting the message.appId - The app idmsgCollId - The message collection Id to post to, default @outboxmessage - The message to posttoken - A valid security token @return a response item containing any errors/ProtocolException - when invalid parameters are givenFuture<Void> deleteMessages(UserId userId, String msgCollId, List<String> ids, SecurityToken token) throws ProtocolException
userId - The User to delete formsgCollId - The Message Collection ID to delete from, default @allids - List of IDs to deletetoken - Given Security Token for this requestProtocolExceptionFuture<Void> modifyMessage(UserId userId, String msgCollId, String messageId, Message message, SecurityToken token) throws ProtocolException
userId - The User to modify formsgCollId - The Message Collection ID to modify from, default @allmessageId - The messageId to modifymessage - The message details to modifytoken - Given Security Token for this requestProtocolException - for invalid parameters or missing messages or usersCopyright © 2007-2012. All Rights Reserved.