19 package org.turro.dossier.util;
21 import java.util.Collection;
22 import java.util.EnumSet;
23 import org.turro.action.queue.IElephantNotification;
24 import org.turro.action.queue.NotificationCategory;
25 import org.turro.action.queue.NotificationRole;
26 import org.turro.action.queue.QueuePeriod;
27 import org.turro.annotation.ElephantNotification;
28 import org.turro.elephant.entities.db.QueueOptions;
29 import org.turro.mail.queue.NotificationCategoryMap;
30 import org.turro.mail.queue.QueueManager;
31 import org.turro.plugin.contacts.IContact;
72 return qo !=
null ? qo.
getPeriod() :
null;
113 public static final String
115 DOSSIER_NOTIFICATION =
"/dossier",
116 MY_ISSUES_NOTIFICATION =
"/my-issues";
119 if(_categories ==
null) {
122 "Project notification",
"Project generated notifications",
127 "Dossier notification",
"Dossier generated notifications",
132 "My issues notifier",
"Current workload, composed by pending issues.",
Collection< NotificationCategory > getCategories()
void checkConstraints(String idCategory)
static final String PROJECT_NOTIFICATION
void periodToAll(String idCategory, QueuePeriod period)
NotificationCategory getCategory(String id)
void subscribe(String idCategory, IContact contact, QueuePeriod period)
Collection< String > getCategoryIds()
Collection< NotificationCategory > getAllCategories()
void removeAll(String idCategory)
void subscribeIfNot(String idCategory, IContact contact, QueuePeriod period)
QueuePeriod period(String idCategory, IContact contact)
Collection< String > getAllCategoryIds()
NotificationCategory addCategory(String id, String name, String description, EnumSet< QueuePeriod > allowedPeriods, boolean unique, QueuePeriod defaultPeriod, IElephantNotification notification, NotificationRole role, Set< NotificationConstraint > constraints, boolean publishable)
void setPeriod(IContact contact, String idCategory, QueuePeriod queuePeriod, boolean override)
QueueOptions getConfiguration(IContact contact, String idCategory)
void setPeriodToAll(String idCategory, QueuePeriod period)
void removeOptions(String idCategory)