|
@@ 381-389 (lines=9) @@
|
| 378 |
|
* @param Circle $circle |
| 379 |
|
* @param FederatedLink $link |
| 380 |
|
*/ |
| 381 |
|
private function checkUpdateLinkFromRemoteLinkRequestSent(Circle $circle, FederatedLink &$link) { |
| 382 |
|
|
| 383 |
|
if ($link->getStatus() !== FederatedLink::STATUS_REQUEST_SENT) { |
| 384 |
|
return; |
| 385 |
|
} |
| 386 |
|
|
| 387 |
|
$link->setStatus(FederatedLink::STATUS_REQUEST_DECLINED); |
| 388 |
|
$this->eventsService->onLinkRequestRejected($circle, $link); |
| 389 |
|
} |
| 390 |
|
|
| 391 |
|
|
| 392 |
|
/** |
|
@@ 396-404 (lines=9) @@
|
| 393 |
|
* @param Circle $circle |
| 394 |
|
* @param FederatedLink $link |
| 395 |
|
*/ |
| 396 |
|
private function checkUpdateLinkFromRemoteLinkRequested(Circle $circle, FederatedLink &$link) { |
| 397 |
|
|
| 398 |
|
if ($link->getStatus() !== FederatedLink::STATUS_LINK_REQUESTED) { |
| 399 |
|
return; |
| 400 |
|
} |
| 401 |
|
|
| 402 |
|
$link->setStatus(FederatedLink::STATUS_LINK_REMOVE); |
| 403 |
|
$this->eventsService->onLinkRequestCanceled($circle, $link); |
| 404 |
|
} |
| 405 |
|
|
| 406 |
|
|
| 407 |
|
/** |
|
@@ 411-419 (lines=9) @@
|
| 408 |
|
* @param Circle $circle |
| 409 |
|
* @param FederatedLink $link |
| 410 |
|
*/ |
| 411 |
|
private function checkUpdateLinkFromRemoteLinkDown(Circle $circle, FederatedLink &$link) { |
| 412 |
|
|
| 413 |
|
if ($link->getStatus() < FederatedLink::STATUS_LINK_DOWN) { |
| 414 |
|
return; |
| 415 |
|
} |
| 416 |
|
|
| 417 |
|
$link->setStatus(FederatedLink::STATUS_LINK_DOWN); |
| 418 |
|
$this->eventsService->onLinkDown($circle, $link); |
| 419 |
|
} |
| 420 |
|
|
| 421 |
|
|
| 422 |
|
/** |