BrightSide Workbench Full Report + Source Code
org.turro.admin.ParticipationsReport Class Reference
Inheritance diagram for org.turro.admin.ParticipationsReport:
Collaboration diagram for org.turro.admin.ParticipationsReport:

Public Member Functions

boolean isInRole ()
 
String getDescription ()
 
void generate ()
 

Detailed Description

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

Definition at line 49 of file ParticipationsReport.java.

Member Function Documentation

◆ generate()

void org.turro.admin.ParticipationsReport.generate ( )

Implements org.turro.admin.IAdminReport.

Definition at line 62 of file ParticipationsReport.java.

62  {
63  IContact contact = Authentication.getIContact();
64  MailSenders.getHeavy()
65  .addContact(contact)
66  .onStart(s -> MessageQueue.pushMessage(contact, I_.get("Report will be sent by email")))
67  .onCancel(s -> MessageQueue.pushMessage(contact, I_.get("Task already running")))
68  .onBuild(s -> participationToCSV((IMailSender) s))
69  .send(I_.get(getDescription()), I_.get(getDescription()));
70  }
Here is the call graph for this function:

◆ getDescription()

String org.turro.admin.ParticipationsReport.getDescription ( )

Implements org.turro.admin.IAdminReport.

Definition at line 57 of file ParticipationsReport.java.

57  {
58  return "Participations in dossiers";
59  }
Here is the caller graph for this function:

◆ isInRole()

boolean org.turro.admin.ParticipationsReport.isInRole ( )

Implements org.turro.admin.IAdminReport.

Definition at line 52 of file ParticipationsReport.java.

52  {
53  return Authentication.isAdministrator();
54  }
Here is the call graph for this function:

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