Refactor the Introduction Client to avoid circular dependencies

This injects the IntroducerManager and the IntroduceeManger for easier testing
This commit is contained in:
Torsten Grote
2016-04-05 13:32:09 -03:00
parent 0f9338f5e9
commit d205f3b0d8
7 changed files with 161 additions and 150 deletions

View File

@@ -45,22 +45,4 @@ public interface IntroductionManager {
Collection<IntroductionMessage> getIntroductionMessages(ContactId contactId)
throws DbException;
/** Marks an introduction message as read or unread. */
void setReadFlag(MessageId m, boolean read) throws DbException;
/** Get the session state for the given session ID */
BdfDictionary getSessionState(Transaction txn, GroupId groupId,
byte[] sessionId) throws DbException, FormatException;
/** Gets the group used for introductions with Contact c */
Group getIntroductionGroup(Contact c);
/** Get the local group used to store session states */
Group getLocalGroup();
/** Send an introduction message */
void sendMessage(Transaction txn, BdfDictionary message)
throws DbException, FormatException;
}