|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmessaging.MessagingService
public abstract class MessagingService
Field Summary | |
---|---|
(package private) GroupService |
groupService
As messages imply group changes, the MessagingService must also communicate with the GroupService. |
(package private) Mailbox |
mailbox
Messages are stored and retrieved via the Mailbox repository component. |
(package private) NetworkService |
networkService
All messages are sent and received via the NetworkService, which is the one that contact/is contacted by the remote services. |
(package private) UserIO |
userIO
The user must be notified about new messages. |
Constructor Summary | |
---|---|
MessagingService()
|
Method Summary | |
---|---|
protected abstract void |
checkForMessages()
The MessagingService contacts the remote centralized Messaging service to retrieve any new messages. |
abstract List<Message> |
getAllMessages()
A wrapper over the method offered by Mailbox , it provides to other components a list of all the messages in the user's
mailbox. |
abstract List<Message> |
getMessages(MessageQueryCriteria criteria)
A wrapper over the method offered by Mailbox , it provides a subset of messages of the
logged in user based on the given criteria. |
protected abstract void |
informMessage(Message message)
Informs the GroupService about a message it has to process. |
abstract void |
receiveMessage(Message message)
The MessagingService receives a new Message from the remote centralized Messaging service. |
abstract void |
sendMessage(Message message)
Sends a message to another user and also stores it in the Mailbox. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
Mailbox mailbox
GroupService groupService
NetworkService networkService
UserIO userIO
Constructor Detail |
---|
public MessagingService()
Method Detail |
---|
public abstract void receiveMessage(Message message)
message
- - the message (invitation, ownership transfer, reply)public abstract void sendMessage(Message message)
message
- - the message (invitation, ownership transfer, reply)protected abstract void informMessage(Message message)
GroupService
about a message it has to process.
message
- protected abstract void checkForMessages()
public abstract List<Message> getAllMessages()
Mailbox
, it provides to other components a list of all the messages in the user's
mailbox.
public abstract List<Message> getMessages(MessageQueryCriteria criteria)
Mailbox
, it provides a subset of messages of the
logged in user based on the given criteria.
criteria
- - filtering constraints for the list of messages (certain interval, certain destination etc)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |