Package org.cyclos.impl.messaging
Interface MessageServiceLocal
-
- All Superinterfaces:
MessageService,Service
- All Known Implementing Classes:
MessageServiceImpl
public interface MessageServiceLocal extends MessageService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanSendInviteMessage()Returns true if the logged user is allowed to send invitation messagesbooleancanSendMessage(MessageDestination destination)Returns true if the logged user can send a message to the given destinationbooleancanSendMessageToUser(User user)Returns true if the logged user can send a message to the given destination user.booleancanViewMessages()Returns true if the the logged user can view his messages.voidremoveAll(User user)Clears all message boxes of the specified user completely, by physically deleting all the messages-
Methods inherited from interface org.cyclos.services.messaging.MessageService
countNewMessages, countUnreadMessages, getData, getSearchData, getSendData, getSendInviteMessageData, markAsRead, moveToTrash, removeAll, restoreAll, search, send, sendInviteMessage
-
-
-
-
Method Detail
-
canSendInviteMessage
boolean canSendInviteMessage()
Returns true if the logged user is allowed to send invitation messages
-
canSendMessage
boolean canSendMessage(MessageDestination destination)
Returns true if the logged user can send a message to the given destination- Parameters:
destination- The destination of the message. If null, it returns true if the logged user can send the message to at least one destination.
-
canSendMessageToUser
boolean canSendMessageToUser(User user)
Returns true if the logged user can send a message to the given destination user.
-
canViewMessages
boolean canViewMessages()
Returns true if the the logged user can view his messages. In case of an admin, the method returns true if he can view the system messages.
-
removeAll
void removeAll(User user)
Clears all message boxes of the specified user completely, by physically deleting all the messages
-
-