Add method for getting cooked message from DB.

This commit is contained in:
akwizgran
2018-08-24 16:18:38 +01:00
parent 3db35f7061
commit 0fce224d88
6 changed files with 81 additions and 3 deletions

View File

@@ -263,6 +263,15 @@ public interface DatabaseComponent {
*/
Collection<LocalAuthor> getLocalAuthors(Transaction txn) throws DbException;
/**
* Returns the message with the given ID.
* <p/>
* Read-only.
*
* @throws MessageDeletedException if the message has been deleted
*/
Message getMessage(Transaction txn, MessageId m) throws DbException;
/**
* Returns the IDs of all delivered messages in the given group.
* <p/>