Add method to get a pending contact.

This commit is contained in:
akwizgran
2019-05-27 13:15:54 +01:00
parent f979d44c96
commit 79632908d4
8 changed files with 87 additions and 9 deletions

View File

@@ -87,6 +87,12 @@ public interface ContactManager {
PendingContact addPendingContact(String link, String alias)
throws DbException, FormatException;
/**
* Returns the pending contact with the given ID.
*/
PendingContact getPendingContact(Transaction txn, PendingContactId p)
throws DbException;
/**
* Returns a list of {@link PendingContact PendingContacts} and their
* {@link PendingContactState states}.

View File

@@ -411,6 +411,14 @@ public interface DatabaseComponent extends TransactionManager {
*/
long getNextSendTime(Transaction txn, ContactId c) throws DbException;
/**
* Returns the pending contact with the given ID.
* <p/>
* Read-only.
*/
PendingContact getPendingContact(Transaction txn, PendingContactId p)
throws DbException;
/**
* Returns all pending contacts.
* <p/>