|
@@ 544-552 (lines=9) @@
|
| 541 |
|
* @param Circle $circle |
| 542 |
|
* @param FederatedLink $link |
| 543 |
|
*/ |
| 544 |
|
private function checkUpdateLinkFromRemoteLinkRequestSent(Circle $circle, FederatedLink &$link) { |
| 545 |
|
|
| 546 |
|
if ($link->getStatus() !== FederatedLink::STATUS_REQUEST_SENT) { |
| 547 |
|
return; |
| 548 |
|
} |
| 549 |
|
|
| 550 |
|
$link->setStatus(FederatedLink::STATUS_REQUEST_DECLINED); |
| 551 |
|
$this->eventsService->onLinkRequestRejected($circle, $link); |
| 552 |
|
} |
| 553 |
|
|
| 554 |
|
|
| 555 |
|
/** |
|
@@ 559-567 (lines=9) @@
|
| 556 |
|
* @param Circle $circle |
| 557 |
|
* @param FederatedLink $link |
| 558 |
|
*/ |
| 559 |
|
private function checkUpdateLinkFromRemoteLinkRequested(Circle $circle, FederatedLink &$link) { |
| 560 |
|
|
| 561 |
|
if ($link->getStatus() !== FederatedLink::STATUS_LINK_REQUESTED) { |
| 562 |
|
return; |
| 563 |
|
} |
| 564 |
|
|
| 565 |
|
$link->setStatus(FederatedLink::STATUS_LINK_REMOVE); |
| 566 |
|
$this->eventsService->onLinkRequestCanceled($circle, $link); |
| 567 |
|
} |
| 568 |
|
|
| 569 |
|
|
| 570 |
|
/** |
|
@@ 574-582 (lines=9) @@
|
| 571 |
|
* @param Circle $circle |
| 572 |
|
* @param FederatedLink $link |
| 573 |
|
*/ |
| 574 |
|
private function checkUpdateLinkFromRemoteLinkDown(Circle $circle, FederatedLink &$link) { |
| 575 |
|
|
| 576 |
|
if ($link->getStatus() < FederatedLink::STATUS_LINK_DOWN) { |
| 577 |
|
return; |
| 578 |
|
} |
| 579 |
|
|
| 580 |
|
$link->setStatus(FederatedLink::STATUS_LINK_DOWN); |
| 581 |
|
$this->eventsService->onLinkDown($circle, $link); |
| 582 |
|
} |
| 583 |
|
|
| 584 |
|
|
| 585 |
|
/** |