chg: [processors] Added adequate severity for some inbox/outbox processors

pull/121/head
Sami Mokaddem 2022-11-15 11:14:25 +01:00
parent 1626037239
commit 407f827e24
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
4 changed files with 6 additions and 0 deletions

View File

@ -179,6 +179,7 @@ class IncomingConnectionRequestProcessor extends LocalToolInboxProcessor impleme
public function __construct() { public function __construct() {
parent::__construct(); parent::__construct();
$this->severity = $this->Inbox::SEVERITY_WARNING;
$this->description = __('Handle Phase I of inter-connection when another cerebrate instance performs the request.'); $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() { public function __construct() {
parent::__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.'); $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() { public function __construct() {
parent::__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.'); $this->description = __('Handle Phase II of MISP inter-connection when initial request has been declined by the remote cerebrate.');
} }

View File

@ -28,6 +28,7 @@ class DataExchangeProcessor extends SynchronisationInboxProcessor implements Gen
public function __construct() { public function __construct() {
parent::__construct(); parent::__construct();
$this->severity = $this->Inbox::SEVERITY_WARNING;
$this->description = __('Handle exchange of data between two cerebrate instances'); $this->description = __('Handle exchange of data between two cerebrate instances');
$this->Users = TableRegistry::getTableLocator()->get('Users'); $this->Users = TableRegistry::getTableLocator()->get('Users');
} }

View File

@ -31,6 +31,7 @@ class RegistrationProcessor extends UserInboxProcessor implements GenericInboxPr
public function __construct() { public function __construct() {
parent::__construct(); parent::__construct();
$this->severity = $this->Inbox::SEVERITY_WARNING;
$this->description = __('Handle user account for this cerebrate instance'); $this->description = __('Handle user account for this cerebrate instance');
} }

View File

@ -70,6 +70,7 @@ class ResendFailedMessageProcessor extends BroodsOutboxProcessor implements Gene
public function __construct() { public function __construct() {
parent::__construct(); parent::__construct();
$this->description = __('Handle re-sending messages that failed to be received from other cerebrate instances.'); $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->Broods = TableRegistry::getTableLocator()->get('Broods');
$this->LocalTools = \Cake\ORM\TableRegistry::getTableLocator()->get('LocalTools'); $this->LocalTools = \Cake\ORM\TableRegistry::getTableLocator()->get('LocalTools');
} }