messaging
Class Mailbox

java.lang.Object
  extended by messaging.Mailbox

public abstract class Mailbox
extends Object

Implements a user's mailbox, a repository-type element, providing the set of Message objects of sent or received by an user. The Mailbox is linked to the logged-in user's account.


Constructor Summary
Mailbox()
           
 
Method Summary
abstract  void addMessages(List<Message> messages)
          Adds newly received messages to the mailbox.
abstract  List<Message> getAllMessages()
          Returns a list of all messages of the logged in user.
abstract  List<Message> getMessages(MessageQueryCriteria criteria)
          Returns a subset of messages of the logged in user based on the given criteria.
abstract  void removeMessage(Message message)
          Removes (deletes) a message from the mailbox.
abstract  void updateMessage(Message message)
          Updates the information stored for the message (it might have been change locally or on another device).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Mailbox

public Mailbox()
Method Detail

addMessages

public abstract void addMessages(List<Message> messages)
Adds newly received messages to the mailbox.


removeMessage

public abstract void removeMessage(Message message)
Removes (deletes) a message from the mailbox.


getAllMessages

public abstract List<Message> getAllMessages()
Returns a list of all messages of the logged in user.

Returns:
a list of Message objects

getMessages

public abstract List<Message> getMessages(MessageQueryCriteria criteria)
Returns a subset of messages of the logged in user based on the given criteria.

Parameters:
criteria - - filtering constraints for the list of messages (certain interval, certain destination etc)
Returns:
a list of Message objects

updateMessage

public abstract void updateMessage(Message message)
Updates the information stored for the message (it might have been change locally or on another device).

Parameters:
message -