@@ 313-319 (lines=7) @@ | ||
310 | } |
|
311 | ||
312 | switch ($notificationType) { |
|
313 | case FileNotification::NOTIFICATION_TYPE_SHARE_ACCEPTED: |
|
314 | $this->ocmMiddleware->assertOutgoingSharingEnabled(); |
|
315 | $share = $this->ocmMiddleware->getValidShare( |
|
316 | $providerId, $notification['sharedSecret'] |
|
317 | ); |
|
318 | $this->fedShareManager->acceptShare($share); |
|
319 | break; |
|
320 | case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED: |
|
321 | $this->ocmMiddleware->assertOutgoingSharingEnabled(); |
|
322 | $share = $this->ocmMiddleware->getValidShare( |
|
@@ 320-326 (lines=7) @@ | ||
317 | ); |
|
318 | $this->fedShareManager->acceptShare($share); |
|
319 | break; |
|
320 | case FileNotification::NOTIFICATION_TYPE_SHARE_DECLINED: |
|
321 | $this->ocmMiddleware->assertOutgoingSharingEnabled(); |
|
322 | $share = $this->ocmMiddleware->getValidShare( |
|
323 | $providerId, $notification['sharedSecret'] |
|
324 | ); |
|
325 | $this->fedShareManager->declineShare($share); |
|
326 | break; |
|
327 | case FileNotification::NOTIFICATION_TYPE_REQUEST_RESHARE: |
|
328 | $this->ocmMiddleware->assertOutgoingSharingEnabled(); |
|
329 | $this->ocmMiddleware->assertNotNull( |