@Component public class

DefaultInsightReportService

extends Object
implements InternalInsightReportService
java.lang.Object
   ↳ com.atlassian.bitbucket.internal.codeinsights.report.DefaultInsightReportService

Summary

Public Constructors
@Autowired DefaultInsightReportService(AuthenticationContext authenticationContext, EventPublisher eventPublisher, I18nService i18nService, InsightReportDao insightReportDao, InsightReportDataValidator insightDataValidator, PermissionService permissionService, PermissionValidationService permissionValidationService, OAuthRequestVerifierFactory requestVerifierFactory, ScmService scmService, TransactionTemplate transactionTemplate)
Public Methods
void delete(DeleteInsightReportRequest request)
int deleteExpiredReports(Date date)
Deletes all InsightReport reports that were created before the given date.
@Nonnull Optional<InsightReport> get(GetInsightReportRequest request)
@EventListener void onRepositoryDeleted(RepositoryDeletedEvent event)
@Nonnull Page<InsightReport> search(SearchInsightReportRequest request, PageRequest pageRequest)
@Nonnull InsightReport set(SetInsightReportRequest request)
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.bitbucket.codeinsights.report.InsightReportService
From interface com.atlassian.bitbucket.internal.codeinsights.report.InternalInsightReportService

Public Constructors

@Autowired public DefaultInsightReportService (AuthenticationContext authenticationContext, EventPublisher eventPublisher, I18nService i18nService, InsightReportDao insightReportDao, InsightReportDataValidator insightDataValidator, PermissionService permissionService, PermissionValidationService permissionValidationService, OAuthRequestVerifierFactory requestVerifierFactory, ScmService scmService, TransactionTemplate transactionTemplate)

Public Methods

public void delete (DeleteInsightReportRequest request)

public int deleteExpiredReports (Date date)

Deletes all InsightReport reports that were created before the given date.

Parameters
date reports created before the given date will be deleted
Returns
  • the number of deleted reports

@Nonnull public Optional<InsightReport> get (GetInsightReportRequest request)

@EventListener public void onRepositoryDeleted (RepositoryDeletedEvent event)

@Nonnull public Page<InsightReport> search (SearchInsightReportRequest request, PageRequest pageRequest)

@Nonnull public InsightReport set (SetInsightReportRequest request)