Interface InsightReportService
public interface InsightReportService
- Since:
- 5.15
-
Method Summary
Modifier and TypeMethodDescriptionvoid
delete
(DeleteInsightReportRequest request) Delete a single report.get
(GetInsightReportRequest request) Retrieve a single report.com.atlassian.bitbucket.util.Page<InsightReport>
search
(SearchInsightReportRequest request, com.atlassian.bitbucket.util.PageRequest pageRequest) Retrieve a page of reports.set
(SetInsightReportRequest request) Create or update aninsight report
as described by the providedrequest
.
-
Method Details
-
delete
Delete a single report.- Parameters:
request
- request detailing the report to remove
-
get
Retrieve a single report.- Parameters:
request
- request that details which report to retrieve- Returns:
- the report if it can be found or an empty optional if the report does not (yet) exist
-
search
@Nonnull com.atlassian.bitbucket.util.Page<InsightReport> search(@Nonnull SearchInsightReportRequest request, @Nonnull com.atlassian.bitbucket.util.PageRequest pageRequest) Retrieve a page of reports. Returns zero or more reports that match the criteria in the request.- Parameters:
request
- request that details what reports to retrievepageRequest
- a request describing the page to retrieve- Returns:
- a (possibly empty)
page
containingreports
matching the request
-
set
Create or update aninsight report
as described by the providedrequest
. If a report with the key and commit id already exists it will be overwritten.- Parameters:
request
- the request describing the insight report to create or update- Returns:
- the newly created or updated insight report
- Throws:
com.atlassian.bitbucket.validation.ArgumentValidationException
- if any of the arguments did not pass validation. Check the message for details of what went wrong.com.atlassian.bitbucket.AuthorisationException
- if the user doesn't have permission to access the repository or is not permitted to update a report
-