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

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 44 of file StudentsReport.java.

Member Function Documentation

◆ generate()

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

Implements org.turro.admin.IAdminReport.

Definition at line 57 of file StudentsReport.java.

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

◆ getDescription()

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

Implements org.turro.admin.IAdminReport.

Definition at line 52 of file StudentsReport.java.

52  {
53  return "Students by center";
54  }
Here is the caller graph for this function:

◆ isInRole()

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

Implements org.turro.admin.IAdminReport.

Definition at line 47 of file StudentsReport.java.

47  {
48  return Authentication.isAdministrator();
49  }
Here is the call graph for this function:

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