24 private $bulkManagement;
29 private $notificationManagement;
34 private $accessValidator;
49 parent::__construct($context);
50 $this->bulkManagement = $bulkManagement;
51 $this->notificationManagement = $notificationManagement;
52 $this->accessValidator = $accessValidator;
60 return $this->_authorization->isAllowed(
'Magento_Logging::system_magento_logging_bulk_operations')
61 && $this->accessValidator->isAllowed($this->
getRequest()->getParam(
'uuid'));
69 $bulkUuid = $this->
getRequest()->getParam(
'uuid');
70 $isAjax = $this->
getRequest()->getParam(
'isAjax');
71 $operationsToRetry = (array)$this->
getRequest()->getParam(
'operations_to_retry', []);
73 foreach ($operationsToRetry as $operationData) {
74 if (isset($operationData[
'error_code'])) {
75 $errorCodes[] = (int)$operationData[
'error_code'];
79 $affectedOperations = $this->bulkManagement->retryBulk($bulkUuid, $errorCodes);
80 $this->notificationManagement->ignoreBulks([$bulkUuid]);
82 $this->messageManager->addSuccessMessage(
83 __(
'%1 item(s) have been scheduled for update."', $affectedOperations)
86 $result = $this->resultRedirectFactory->create();
91 $result->setHttpResponseCode(200);
92 $response = new \Magento\Framework\DataObject();
__construct(Context $context, BulkManagement $bulkManagement, BulkNotificationManagement $notificationManagement, AccessValidator $accessValidator)