Added a flag for making groups visible to future contacts.

This commit is contained in:
akwizgran
2013-04-13 19:27:39 +01:00
parent f2e01d88a8
commit bbdfe30e78
6 changed files with 162 additions and 13 deletions

View File

@@ -344,11 +344,18 @@ public interface DatabaseComponent {
/**
* Makes the given group visible to the given set of contacts and invisible
* to any other contacts.
* to any other current or future contacts.
*/
void setVisibility(GroupId g, Collection<ContactId> visible)
throws DbException;
/**
* Makes the given group visible or invisible to future contacts by default.
* If <tt>visible</tt> is true, the group is also made visible to all
* current contacts.
*/
void setVisibleToAll(GroupId g, boolean visible) throws DbException;
/**
* Subscribes to the given group, or returns false if the user already has
* the maximum number of subscriptions.