BrightSide Workbench Full Report + Source Code
org.turro.push.sender.PushPool Class Reference
Inheritance diagram for org.turro.push.sender.PushPool:
Collaboration diagram for org.turro.push.sender.PushPool:

Protected Member Functions

void doSend (String title, String message, String link, Consumer onFinish)
 

Additional Inherited Members

- Public Member Functions inherited from org.turro.push.sender.AbstractPushSender
AbstractPushSender addAdministrators ()
 
AbstractPushSender addBySyndication (String syndication)
 
AbstractPushSender addByRole (String role)
 
AbstractPushSender addByEntity (Object entity, Object data)
 
AbstractPushSender addByEntity (Object entity, boolean deep, Object data)
 
AbstractPushSender addByEntity (String path, Object data)
 
AbstractPushSender addByEntity (String path, boolean deep, Object data)
 
AbstractPushSender addContact (IContact contact)
 
AbstractPushSender addContacts (Collection< IContact > contacts)
 
AbstractPushSender addAssistant (Assistant assistant)
 
AbstractPushSender addAssistants (AssistantSet assistants)
 
AbstractPushSender addUser (String name, String email)
 
AbstractPushSender onStart (Consumer command)
 
AbstractPushSender onCancel (Consumer command)
 
AbstractPushSender onBuild (Consumer command)
 
AbstractPushSender onFinish (Consumer command)
 
AssistantSet getAssistants ()
 
void send (String title, String message)
 
void send (String title, String message, String link)
 
- Public Member Functions inherited from org.turro.action.IContactSender< IPushSender >
addAdministrators ()
 
addByEntity (Object entity, Object data)
 
addByEntity (Object entity, boolean deep, Object data)
 
addByEntity (String path, Object data)
 
addByEntity (String path, boolean deep, Object data)
 
addByRole (String role)
 
addBySyndication (String syndication)
 
addContact (IContact contact)
 
addContacts (Collection< IContact > contacts)
 
addAssistant (Assistant assistant)
 
addAssistants (AssistantSet assistants)
 
addUser (String name, String email)
 
AssistantSet getAssistants ()
 
default void copyFrom (IContactSender sender)
 
- Public Attributes inherited from org.turro.push.sender.AbstractPushSender
final AssistantSet assistants = new AssistantSet()
 
- Protected Attributes inherited from org.turro.push.sender.AbstractPushSender
Consumer onStart
 

Detailed Description

Author
Lluis TurrĂ³ Cutiller lluis.nosp@m.@tur.nosp@m.ro.or.nosp@m.g

Definition at line 37 of file PushPool.java.

Member Function Documentation

◆ doSend()

void org.turro.push.sender.PushPool.doSend ( String  title,
String  message,
String  link,
Consumer  onFinish 
)
protected

Reimplemented from org.turro.push.sender.AbstractPushSender.

Definition at line 40 of file PushPool.java.

40  {
41  if(!assistants.isEmpty()) {
42  try {
43  link = Strings.isBlank(link) ? ElephantContext.getServerUrl("http") : URLUtil.absolute(ElephantContext.getServerUrl("http"), link);
44  String payload = PushMessage.title(title).message(message).click(link).json();
45  new PushPoolSender(assistants, payload).send(null);
46  } catch (URISyntaxException | MalformedURLException ex) {
47  Logger.getLogger(PushPool.class.getName()).log(Level.SEVERE, null, ex);
48  }
49  }
50  }
Here is the call graph for this function:

The documentation for this class was generated from the following file: