‪TYPO3CMS  ‪main
TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController Class Reference

Public Member Functions

 __construct (protected readonly ModelService $modelService, protected readonly PolicyProvider $policyProvider, protected readonly ReportRepository $reportRepository, protected readonly ResolutionRepository $resolutionRepository, protected readonly EventDispatcherInterface $eventDispatcher, protected readonly HashService $hashService,)
 
 handleRequest (ServerRequestInterface $request)
 

Protected Member Functions

 dispatchAction (ServerRequestInterface $request)
 
 fetchReportsAction (?Scope $scope)
 
 muteReportAction (string ... $summaries)
 
 deleteReportAction (string ... $summaries)
 
 deleteReportsAction (?Scope $scope)
 
 handleReportAction (UuidV4 $uuid)
 
 mutateReportAction (Scope $scope, MutationSuggestion $suggestion, string ... $initiators)
 
 dispatchInvestigateMutationsEvent (Report $report)
 
 generateResolutionSummary (Scope $scope, MutationSuggestion $suggestion)
 
 resolveReportUuids (Report ... $reports)
 
 isSystemMaintainer ()
 

Detailed Description

AJAX endpoint for the CSP backend module, providing access to persisted CSP reports & resolutions.

This is a specific Backend Controller implementation and is not considered part of the Public TYPO3 API.

Definition at line 48 of file CspAjaxController.php.

Constructor & Destructor Documentation

◆ __construct()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::__construct ( protected readonly ModelService  $modelService,
protected readonly PolicyProvider  $policyProvider,
protected readonly ReportRepository  $reportRepository,
protected readonly ResolutionRepository  $resolutionRepository,
protected readonly EventDispatcherInterface  $eventDispatcher,
protected readonly HashService  $hashService 
)

Definition at line 50 of file CspAjaxController.php.

Member Function Documentation

◆ deleteReportAction()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::deleteReportAction ( string ...  $summaries)
protected

◆ deleteReportsAction()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::deleteReportsAction ( ?Scope  $scope)
protected

◆ dispatchAction()

◆ dispatchInvestigateMutationsEvent()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::dispatchInvestigateMutationsEvent ( Report  $report)
protected

◆ fetchReportsAction()

◆ generateResolutionSummary()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::generateResolutionSummary ( Scope  $scope,
MutationSuggestion  $suggestion 
)
protected

◆ handleReportAction()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::handleReportAction ( UuidV4  $uuid)
protected

◆ handleRequest()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::handleRequest ( ServerRequestInterface  $request)

◆ isSystemMaintainer()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::isSystemMaintainer ( )
protected

◆ mutateReportAction()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::mutateReportAction ( Scope  $scope,
MutationSuggestion  $suggestion,
string ...  $initiators 
)
protected

◆ muteReportAction()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::muteReportAction ( string ...  $summaries)
protected

◆ resolveReportUuids()

TYPO3\CMS\Backend\Security\ContentSecurityPolicy\CspAjaxController::resolveReportUuids ( Report ...  $reports)
protected