BrightSide Workbench Full Report + Source Code
IElephantNotification.java
Go to the documentation of this file.
1 /*
2  * TurrĂ³ i Cutiller Foundation. License notice.
3  * Copyright (C) 2017 Lluis TurrĂ³ Cutiller <http://www.turro.org/>
4  *
5  * This program is free software: you can redistribute it and/or modify
6  * it under the terms of the GNU Affero General Public License as published by
7  * the Free Software Foundation, either version 3 of the License, or
8  * (at your option) any later version.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  * GNU Affero General Public License for more details.
14  *
15  * You should have received a copy of the GNU Affero General Public License
16  * along with this program. If not, see <http://www.gnu.org/licenses/>.
17  */
18 package org.turro.action.queue;
19 
20 import java.util.Collection;
21 import org.turro.plugin.contacts.IContact;
22 
27 public interface IElephantNotification {
28 
29  public Collection<NotificationCategory> getCategories();
30  public Collection<NotificationCategory> getAllCategories();
31  public Collection<String> getCategoryIds();
32  public Collection<String> getAllCategoryIds();
33  public NotificationCategory getCategory(String id);
34  public QueuePeriod period(String idCategory, IContact contact);
35  public void subscribe(String idCategory, IContact contact, QueuePeriod period);
36  public void subscribeIfNot(String idCategory, IContact contact, QueuePeriod period);
37  public void removeAll(String idCategory);
38  public void periodToAll(String idCategory, QueuePeriod period);
39  public void checkConstraints(String idCategory);
40 
41  public void reset();
42 
43 }
Collection< NotificationCategory > getCategories()
void subscribeIfNot(String idCategory, IContact contact, QueuePeriod period)
QueuePeriod period(String idCategory, IContact contact)
Collection< NotificationCategory > getAllCategories()
void subscribe(String idCategory, IContact contact, QueuePeriod period)
void periodToAll(String idCategory, QueuePeriod period)
NotificationCategory getCategory(String id)