◆ addFromCategory()
static void org.turro.mail.queue.AssistantQueueUtils.addFromCategory |
( |
String |
idCategory, |
|
|
AssistantSet |
assistants |
|
) |
| |
|
static |
Definition at line 39 of file AssistantQueueUtils.java.
40 if(!Strings.isBlank(idCategory)) {
41 QueueManager qm =
new QueueManager();
42 Collection<QueueOptions> subs = qm.getSubcribers(idCategory);
43 for(QueueOptions qo : subs) {
44 if(qo.getIdContact() !=
null && !QueuePeriod.DONT_SEND.equals(qo.getPeriod())) {
45 IContact c = Contacts.getContactById(qo.getIdContact());
47 assistants.addContact(c,
null);
◆ addFromCategoryWithAgreements()
static void org.turro.mail.queue.AssistantQueueUtils.addFromCategoryWithAgreements |
( |
String |
idCategory, |
|
|
AssistantSet |
assistants |
|
) |
| |
|
static |
Definition at line 54 of file AssistantQueueUtils.java.
55 if(!Strings.isBlank(idCategory)) {
56 IAgreements agreements = Plugins.loadImplementation(IAgreements.class,
"agreements");
57 NotificationCategory nc = Notifications.getCategory(idCategory);
58 QueueManager qm =
new QueueManager();
59 Collection<QueueOptions> subs = qm.getSubcribers(idCategory);
60 for(QueueOptions qo : subs) {
61 if(qo.getIdContact() !=
null && !QueuePeriod.DONT_SEND.equals(qo.getPeriod())) {
62 IContact c = Contacts.getContactById(qo.getIdContact());
64 agreements.setContact(c);
65 if(agreements.canSendEmails(nc)) {
66 assistants.addContact(c,
null);
The documentation for this class was generated from the following file: