Added a method for getting one contact's private messages from the DB.

This commit is contained in:
akwizgran
2013-03-02 03:31:39 +00:00
parent a5da3694f9
commit 882420ebc2
8 changed files with 83 additions and 11 deletions

View File

@@ -174,6 +174,13 @@ public interface DatabaseComponent {
Collection<PrivateMessageHeader> getPrivateMessageHeaders()
throws DbException;
/**
* Returns the headers of all private messages to or from the given
* contact.
*/
Collection<PrivateMessageHeader> getPrivateMessageHeaders(ContactId c)
throws DbException;
/** Returns the user's rating for the given author. */
Rating getRating(AuthorId a) throws DbException;