Class ReportServiceImpl
java.lang.Object
com.markvarga21.studentmanager.service.report.impl.ReportServiceImpl
- All Implemented Interfaces:
ReportService
A service which handles error reporting.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteReport
(Long id) Deletes a report.org.springframework.data.domain.Page<Report>
getAllReports
(Integer page, Integer size) Retrieves all reports.sendReport
(ReportMessage reportMessage) Sends a report to the system.
-
Constructor Details
-
ReportServiceImpl
public ReportServiceImpl()
-
-
Method Details
-
getAllReports
Retrieves all reports.- Specified by:
getAllReports
in interfaceReportService
- Parameters:
page
- The actual page.size
- The number of reports in a single page.- Returns:
- A page containing a subset of reports.
-
sendReport
Sends a report to the system.- Specified by:
sendReport
in interfaceReportService
- Parameters:
reportMessage
- The report message object.- Returns:
- An informational message.
-
deleteReport
Deletes a report.- Specified by:
deleteReport
in interfaceReportService
- Parameters:
id
- The ID of the report.
-