Class ReportServiceImpl

java.lang.Object
com.markvarga21.studentmanager.service.report.impl.ReportServiceImpl
All Implemented Interfaces:
ReportService

@Service public class ReportServiceImpl extends Object implements ReportService
A service which handles error reporting.
  • Constructor Details

    • ReportServiceImpl

      public ReportServiceImpl()
  • Method Details

    • getAllReports

      public org.springframework.data.domain.Page<Report> getAllReports(Integer page, Integer size)
      Retrieves all reports.
      Specified by:
      getAllReports in interface ReportService
      Parameters:
      page - The actual page.
      size - The number of reports in a single page.
      Returns:
      A page containing a subset of reports.
    • sendReport

      public String sendReport(ReportMessage reportMessage)
      Sends a report to the system.
      Specified by:
      sendReport in interface ReportService
      Parameters:
      reportMessage - The report message object.
      Returns:
      An informational message.
    • deleteReport

      public void deleteReport(Long id)
      Deletes a report.
      Specified by:
      deleteReport in interface ReportService
      Parameters:
      id - The ID of the report.