From 407f827e24dcbd2479688740965446a07483e6e9 Mon Sep 17 00:00:00 2001 From: Sami Mokaddem Date: Tue, 15 Nov 2022 11:14:25 +0100 Subject: [PATCH] chg: [processors] Added adequate severity for some inbox/outbox processors --- libraries/default/InboxProcessors/LocalToolInboxProcessor.php | 3 +++ .../default/InboxProcessors/SynchronisationInboxProcessor.php | 1 + libraries/default/InboxProcessors/UserInboxProcessor.php | 1 + libraries/default/OutboxProcessors/BroodsOutboxProcessor.php | 1 + 4 files changed, 6 insertions(+) diff --git a/libraries/default/InboxProcessors/LocalToolInboxProcessor.php b/libraries/default/InboxProcessors/LocalToolInboxProcessor.php index 2dacab8..b2d84b0 100644 --- a/libraries/default/InboxProcessors/LocalToolInboxProcessor.php +++ b/libraries/default/InboxProcessors/LocalToolInboxProcessor.php @@ -179,6 +179,7 @@ class IncomingConnectionRequestProcessor extends LocalToolInboxProcessor impleme public function __construct() { parent::__construct(); + $this->severity = $this->Inbox::SEVERITY_WARNING; $this->description = __('Handle Phase I of inter-connection when another cerebrate instance performs the request.'); } @@ -291,6 +292,7 @@ class AcceptedRequestProcessor extends LocalToolInboxProcessor implements Generi public function __construct() { parent::__construct(); + $this->severity = $this->Inbox::SEVERITY_WARNING; $this->description = __('Handle Phase II of inter-connection when initial request has been accepted by the remote cerebrate.'); } @@ -367,6 +369,7 @@ class DeclinedRequestProcessor extends LocalToolInboxProcessor implements Generi public function __construct() { parent::__construct(); + $this->severity = $this->Inbox::SEVERITY_WARNING; $this->description = __('Handle Phase II of MISP inter-connection when initial request has been declined by the remote cerebrate.'); } diff --git a/libraries/default/InboxProcessors/SynchronisationInboxProcessor.php b/libraries/default/InboxProcessors/SynchronisationInboxProcessor.php index 2a243cd..d95154e 100644 --- a/libraries/default/InboxProcessors/SynchronisationInboxProcessor.php +++ b/libraries/default/InboxProcessors/SynchronisationInboxProcessor.php @@ -28,6 +28,7 @@ class DataExchangeProcessor extends SynchronisationInboxProcessor implements Gen public function __construct() { parent::__construct(); + $this->severity = $this->Inbox::SEVERITY_WARNING; $this->description = __('Handle exchange of data between two cerebrate instances'); $this->Users = TableRegistry::getTableLocator()->get('Users'); } diff --git a/libraries/default/InboxProcessors/UserInboxProcessor.php b/libraries/default/InboxProcessors/UserInboxProcessor.php index abb9550..96656c1 100644 --- a/libraries/default/InboxProcessors/UserInboxProcessor.php +++ b/libraries/default/InboxProcessors/UserInboxProcessor.php @@ -31,6 +31,7 @@ class RegistrationProcessor extends UserInboxProcessor implements GenericInboxPr public function __construct() { parent::__construct(); + $this->severity = $this->Inbox::SEVERITY_WARNING; $this->description = __('Handle user account for this cerebrate instance'); } diff --git a/libraries/default/OutboxProcessors/BroodsOutboxProcessor.php b/libraries/default/OutboxProcessors/BroodsOutboxProcessor.php index 9bf79ae..8bde905 100644 --- a/libraries/default/OutboxProcessors/BroodsOutboxProcessor.php +++ b/libraries/default/OutboxProcessors/BroodsOutboxProcessor.php @@ -70,6 +70,7 @@ class ResendFailedMessageProcessor extends BroodsOutboxProcessor implements Gene public function __construct() { parent::__construct(); $this->description = __('Handle re-sending messages that failed to be received from other cerebrate instances.'); + $this->severity = $this->Inbox::SEVERITY_WARNING; $this->Broods = TableRegistry::getTableLocator()->get('Broods'); $this->LocalTools = \Cake\ORM\TableRegistry::getTableLocator()->get('LocalTools'); }