Merge branch '605-add-database-method-for-retrieving-a-contact-by-local-and-remote-author-ids' into 'master'

Add database method for retrieving a contact by local and remote author IDs

Closes #605

See merge request !302
This commit is contained in:
akwizgran
2016-09-01 20:00:27 +00:00
7 changed files with 197 additions and 11 deletions

View File

@@ -176,6 +176,14 @@ public interface DatabaseComponent {
*/
Collection<Contact> getContacts(Transaction txn) throws DbException;
/**
* Returns a possibly empty collection of contacts with the given author ID.
* <p/>
* Read-only.
*/
Collection<Contact> getContactsByAuthorId(Transaction txn, AuthorId remote)
throws DbException;
/**
* Returns all contacts associated with the given local pseudonym.
* <p/>