Exposed getMessageHeaders() through DatabaseComponent interface.

This commit is contained in:
akwizgran
2011-10-26 15:18:02 +01:00
parent d2bac9a4f8
commit 097d11f471
3 changed files with 29 additions and 0 deletions

View File

@@ -16,6 +16,7 @@ import net.sf.briar.api.protocol.Batch;
import net.sf.briar.api.protocol.Group;
import net.sf.briar.api.protocol.GroupId;
import net.sf.briar.api.protocol.Message;
import net.sf.briar.api.protocol.MessageHeader;
import net.sf.briar.api.protocol.MessageId;
import net.sf.briar.api.protocol.Offer;
import net.sf.briar.api.protocol.SubscriptionUpdate;
@@ -128,6 +129,9 @@ public interface DatabaseComponent {
Map<TransportId, TransportProperties> getLocalTransports()
throws DbException;
/** Returns the headers of all messages in the given group. */
Collection<MessageHeader> getMessageHeaders(GroupId g) throws DbException;
/** Returns the user's rating for the given author. */
Rating getRating(AuthorId a) throws DbException;