Added getVisibleSubscriptions() method for managing group visibility.

This commit is contained in:
akwizgran
2013-01-29 17:09:06 +00:00
parent 33d0f19f26
commit ea339e76d6
4 changed files with 60 additions and 1 deletions

View File

@@ -174,6 +174,9 @@ public interface DatabaseComponent {
/** Returns the contacts to which the given group is visible. */
Collection<ContactId> getVisibility(GroupId g) throws DbException;
/** Returns the subscriptions that are visible to the given contact. */
Collection<GroupId> getVisibleSubscriptions(ContactId c) throws DbException;
/** Returns true if any messages are sendable to the given contact. */
boolean hasSendableMessages(ContactId c) throws DbException;