@@ -72,11 +72,9 @@ discard block |
||
| 72 | 72 | /** |
| 73 | 73 | * send server-to-server share to remote server |
| 74 | 74 | * |
| 75 | - * @param Address $shareWithAddress |
|
| 76 | 75 | * @param Address $ownerAddress |
| 77 | 76 | * @param Address $sharedByAddress |
| 78 | 77 | * @param string $token |
| 79 | - * @param string $shareWith |
|
| 80 | 78 | * @param string $name |
| 81 | 79 | * @param int $remote_id |
| 82 | 80 | * |
@@ -319,6 +317,11 @@ discard block |
||
| 319 | 317 | return $result; |
| 320 | 318 | } |
| 321 | 319 | |
| 320 | + /** |
|
| 321 | + * @param string $token |
|
| 322 | + * @param string $name |
|
| 323 | + * @param integer $remote_id |
|
| 324 | + */ |
|
| 322 | 325 | protected function sendOcmRemoteShare(Address $shareWithAddress, Address $ownerAddress, Address $sharedByAddress, $token, $name, $remote_id) { |
| 323 | 326 | $fields = [ |
| 324 | 327 | 'shareWith' => $shareWithAddress->getCloudId(), |
@@ -347,6 +350,11 @@ discard block |
||
| 347 | 350 | return false; |
| 348 | 351 | } |
| 349 | 352 | |
| 353 | + /** |
|
| 354 | + * @param string $token |
|
| 355 | + * @param string $name |
|
| 356 | + * @param integer $remote_id |
|
| 357 | + */ |
|
| 350 | 358 | protected function sendPreOcmRemoteShare(Address $shareWithAddress, Address $ownerAddress, Address $sharedByAddress, $token, $name, $remote_id) { |
| 351 | 359 | $fields = [ |
| 352 | 360 | 'shareWith' => $shareWithAddress->getUserId(), |
@@ -36,7 +36,6 @@ |
||
| 36 | 36 | use OCP\IRequest; |
| 37 | 37 | use OCP\IURLGenerator; |
| 38 | 38 | use OCP\IUserManager; |
| 39 | -use OCP\Share\IShare; |
|
| 40 | 39 | |
| 41 | 40 | /** |
| 42 | 41 | * Class OcmController |
@@ -39,7 +39,6 @@ |
||
| 39 | 39 | use OCP\Constants; |
| 40 | 40 | use OCP\IRequest; |
| 41 | 41 | use OCP\IUserManager; |
| 42 | -use OCP\Share\IShare; |
|
| 43 | 42 | |
| 44 | 43 | /** |
| 45 | 44 | * Class RequestHandlerController |