19 package org.turro.push.sender;
21 import java.util.Collection;
22 import java.util.function.Consumer;
23 import org.turro.action.Contacts;
24 import org.turro.action.IPushSender;
25 import org.turro.assistant.Assistant;
26 import org.turro.assistant.AssistantSet;
27 import org.turro.assistant.Assistants;
28 import org.turro.entities.Entities;
29 import org.turro.plugin.contacts.IContact;
30 import org.turro.security.SecurityGroup;
40 protected Consumer
onStart, onCancel, onBuild, onFinish;
98 this.assistants.add(assistant);
105 this.assistants.add(assistant);
148 public void send(String title, String message) {
149 doSend(title, message,
null, onFinish);
153 public void send(String title, String message, String link) {
154 doSend(title, message, link, onFinish);
157 protected abstract void doSend(String title, String message, String link, Consumer onFinish);
void addUser(String name, String email, Object relationEntity)
void addContacts(Collection< IContact > contacts)
void addContact(IContact contact, Object relationEntity)
static void addAssistants(String role, AssistantSet list, Object data)
static IElephantEntity getController(String path)
AbstractPushSender onFinish(Consumer command)
AbstractPushSender addUser(String name, String email)
AbstractPushSender addBySyndication(String syndication)
AbstractPushSender addAssistant(Assistant assistant)
AbstractPushSender addByRole(String role)
AbstractPushSender onStart(Consumer command)
AbstractPushSender addAdministrators()
AbstractPushSender addByEntity(Object entity, Object data)
AbstractPushSender addAssistants(AssistantSet assistants)
AbstractPushSender addByEntity(String path, Object data)
AbstractPushSender addByEntity(Object entity, boolean deep, Object data)
AbstractPushSender onCancel(Consumer command)
void send(String title, String message, String link)
abstract void doSend(String title, String message, String link, Consumer onFinish)
final AssistantSet assistants
AssistantSet getAssistants()
AbstractPushSender addByEntity(String path, boolean deep, Object data)
AbstractPushSender addContacts(Collection< IContact > contacts)
AbstractPushSender onBuild(Consumer command)
AbstractPushSender addContact(IContact contact)
void send(String title, String message)