Retrieve all remote transports from the DB in a single call.

This commit is contained in:
akwizgran
2011-10-10 22:35:46 +01:00
parent 4059fbf863
commit 68b82ae826
8 changed files with 207 additions and 176 deletions

View File

@@ -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;