Interface ReportService
- All Known Implementing Classes:
ReportServiceImpl
@Service
public interface ReportService
A service which is used to operate on reports.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteReport
(Long id) Retrieves all reports.org.springframework.data.domain.Page<Report>
getAllReports
(Integer page, Integer size) Retrieves all reports.sendReport
(ReportMessage reportMessage) Sends a report to the system.
-
Method Details
-
sendReport
Sends a report to the system.- Parameters:
reportMessage
- The report message object.- Returns:
- An informational message.
- Throws:
jakarta.mail.MessagingException
-
deleteReport
Retrieves all reports.- Parameters:
id
- The ID of the report.
-
getAllReports
Retrieves all reports.- Parameters:
page
- The page number.size
- The number of reports on a single page.- Returns:
- A page containing a subset of reports.
-