public interface MessageManager
Modifier and Type | Method and Description |
---|---|
void |
createMessage(String userId,
String msgCollectionId,
Message message)
Posts a message to the user's specified message collection, to be sent to the set of recipients
specified in the message
|
void |
createMessage(String userId,
String appId,
String msgCollectionId,
Message message)
Posts a message to the user's specified message collection, to be sent to the set of recipients
specified in the message
|
void |
createMessageCollection(String userId,
MessageCollection msgCollection,
String messageCollectionId)
Creates a MessageCollection of the the user with given id and attributes
|
void |
deleteMessageCollection(String userId,
String messageCollectionId)
Deletes a message collection for the given arguments
|
void |
deleteMessages(String userId,
String msgCollectionId,
List<String> messageIds)
Deletes a set of messages for a given user/message collection
|
MessageCollection[] |
getMessageCollections(String userId,
Set<String> fields,
FilterOptions options)
Returns an array of message collections corresponding to the given user details
|
Message[] |
getMessages(String userId,
String msgCollectionId,
Set<String> fields,
List<String> msgIds,
FilterOptions options)
Returns an array of messages that correspond to the passed in data
|
void |
modifyMessage(String userId,
String msgCollId,
String messageId,
Message message)
Modifies/Updates a specific message with new data
|
void |
modifyMessageCollection(String userId,
MessageCollection msgCollection,
String messageCollectionId)
Modifies/Updates a message collection for the given arguments
|
MessageCollection[] getMessageCollections(String userId, Set<String> fields, FilterOptions options) throws SocialMessageException
userId
- The userId to fetch forfields
- The fields to fetch for the message collectionsoptions
- Pagination detailsSocialMessageException
void createMessageCollection(String userId, MessageCollection msgCollection, String messageCollectionId) throws SocialMessageException
userId
- The userId to which the collection belongs tomsgCollection
- The MessageCollection object to retrieve the attrobutesmessageCollectionId
- The id of the message collectionSocialMessageException
void deleteMessageCollection(String userId, String messageCollectionId) throws SocialMessageException
userId
- The userId to create the message collection formessageCollectionId
- The message Collection ID to be removedSocialMessageException
void modifyMessageCollection(String userId, MessageCollection msgCollection, String messageCollectionId) throws SocialMessageException
userId
- The userId to modify the message collection formsgCollection
- Data for the message collection to be modifiedmessageCollectionId
- The message Collection ID to modifySocialMessageException
Message[] getMessages(String userId, String msgCollectionId, Set<String> fields, List<String> msgIds, FilterOptions options) throws SocialMessageException
userId
- The userId of the person to fetch message formsgCollectionId
- 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 fetchSocialMessageException
void createMessage(String userId, String msgCollectionId, Message message) throws SocialMessageException
userId
- The user posting the messagemsgCollectionId
- The message collection Id to post to, default @outboxmessage
- The message objectSocialMessageException
void createMessage(String userId, String appId, String msgCollectionId, Message message) throws SocialMessageException
userId
- The user posting the messageappId
- The app idmsgCollectionId
- The message collection Id to post to, default @outboxmessage
- The message to postSocialMessageException
void deleteMessages(String userId, String msgCollectionId, List<String> messageIds) throws SocialMessageException
userId
- The userId of the person whose messages to be deletedmsgCollectionId
- The Message Collection ID to delete from, default @allmessageIds
- List of messageIds to deleteSocialMessageException
void modifyMessage(String userId, String msgCollId, String messageId, Message message) throws SocialMessageException
userId
- The userId of the person whose messaged to be modifiedmsgCollId
- The Message Collection ID to modify from, default @allmessageId
- The messageId to modifymessage
- The message details to modifySocialMessageException
Copyright © 2024 WSO2. All Rights Reserved.