mirror of
https://code.briarproject.org/briar/briar.git
synced 2026-02-12 18:59:06 +01:00
Retrieve all remote transports from the DB in a single call.
This commit is contained in:
@@ -115,9 +115,17 @@ public interface DatabaseComponent {
|
||||
/** Returns the IDs of all contacts. */
|
||||
Collection<ContactId> getContacts() throws DbException;
|
||||
|
||||
/** Returns all local transport properties. */
|
||||
Map<TransportId, Map<String, String>> getLocalTransports()
|
||||
throws DbException;
|
||||
|
||||
/** Returns the user's rating for the given author. */
|
||||
Rating getRating(AuthorId a) throws DbException;
|
||||
|
||||
/** Returns all remote transport properties. */
|
||||
Map<TransportId, Map<ContactId, Map<String, String>>> getRemoteTransports()
|
||||
throws DbException;
|
||||
|
||||
/** Returns the secret shared with the given contact. */
|
||||
byte[] getSharedSecret(ContactId c) throws DbException;
|
||||
|
||||
@@ -127,13 +135,6 @@ public interface DatabaseComponent {
|
||||
/** Returns the configuration for the given transport. */
|
||||
Map<String, String> getTransportConfig(TransportId t) throws DbException;
|
||||
|
||||
/** Returns all local transport properties. */
|
||||
Map<TransportId, Map<String, String>> getTransports() throws DbException;
|
||||
|
||||
/** Returns all transport properties for the given contact. */
|
||||
Map<TransportId, Map<String, String>> getTransports(ContactId c)
|
||||
throws DbException;
|
||||
|
||||
/** Returns the contacts to which the given group is visible. */
|
||||
Collection<ContactId> getVisibility(GroupId g) throws DbException;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user