public interface MessageServiceLocal extends MessageService
| Modifier and Type | Method and Description |
|---|---|
boolean |
canSendInviteMessage()
Returns true if the logged user is allowed to send invitation messages
|
boolean |
canSendMessage(MessageDestination destination)
Returns true if the logged user can send a message to the given destination
|
boolean |
canSendMessageToUser(User user)
Returns true if the logged user can send a message to the given destination user.
|
boolean |
canViewMessages()
Returns true if the the logged user can view his messages.
|
void |
removeAll(User user)
Clears all message boxes of the specified user completely, by physically deleting all the messages
|
countNewMessages, countUnreadMessages, getData, getSearchData, getSendData, getSendInviteMessageData, markAsRead, moveToTrash, removeAll, restoreAll, search, send, sendInviteMessageboolean canSendInviteMessage()
boolean canSendMessage(MessageDestination destination)
destination - The destination of the message. If null, it returns true if the logged user can send
the message to at least one destination.boolean canSendMessageToUser(User user)
boolean canViewMessages()
void removeAll(User user)