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

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 ResponsesReport.java.

Member Function Documentation

◆ generate()

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

Implements org.turro.admin.IAdminReport.

Definition at line 57 of file ResponsesReport.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.ResponsesReport.getDescription ( )

Implements org.turro.admin.IAdminReport.

Definition at line 52 of file ResponsesReport.java.

52  {
53  return "Responses to challenges by student";
54  }
Here is the caller graph for this function:

◆ isInRole()

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

Implements org.turro.admin.IAdminReport.

Definition at line 47 of file ResponsesReport.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: