diff options
author | Bjoern Schiessle <bjoern@schiessle.org> | 2018-05-28 17:13:19 +0200 |
---|---|---|
committer | Bjoern Schiessle <bjoern@schiessle.org> | 2018-07-02 11:29:28 +0200 |
commit | bbce8c3ea1c73726f233961fe7bdb16b8a08bb67 (patch) | |
tree | e3f345e7e2e6f5d21947013331af1f83593fb20a /lib/public/Federation | |
parent | daba042d269bfd701c78e014c0ad7794975d2133 (diff) | |
download | nextcloud-server-bbce8c3ea1c73726f233961fe7bdb16b8a08bb67.tar.gz nextcloud-server-bbce8c3ea1c73726f233961fe7bdb16b8a08bb67.zip |
adjust to latest api version
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'lib/public/Federation')
4 files changed, 20 insertions, 7 deletions
diff --git a/lib/public/Federation/ICloudFederationFactory.php b/lib/public/Federation/ICloudFederationFactory.php index e33608bcab0..8c6925c2b61 100644 --- a/lib/public/Federation/ICloudFederationFactory.php +++ b/lib/public/Federation/ICloudFederationFactory.php @@ -33,15 +33,15 @@ interface ICloudFederationFactory { * @param string $owner provider specific UID of the user who owns the resource * @param string $ownerDisplayName display name of the user who shared the item * @param string $sharedBy provider specific UID of the user who shared the resource - * @param $sharedByDisplayName display name of the user who shared the resource - * @param array $protocol (e,.g. ['name' => 'webdav', 'options' => ['username' => 'john', 'permissions' => 31]]) + * @param string $sharedByDisplayName display name of the user who shared the resource + * @param string $sharedSecret used to authenticate requests across servers * @param string $shareType ('group' or 'user' share) * @param $resourceType ('file', 'calendar',...) * @return ICloudFederationShare * * @since 14.0.0 */ - public function getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $protocol, $shareType, $resourceType); + public function getCloudFederationShare($shareWith, $name, $description, $providerId, $owner, $ownerDisplayName, $sharedBy, $sharedByDisplayName, $sharedSecret, $shareType, $resourceType); /** * get a Cloud FederationNotification object to prepare a notification you diff --git a/lib/public/Federation/ICloudFederationNotification.php b/lib/public/Federation/ICloudFederationNotification.php index dcdb5b73bd0..c68cd7b5e4d 100644 --- a/lib/public/Federation/ICloudFederationNotification.php +++ b/lib/public/Federation/ICloudFederationNotification.php @@ -28,11 +28,13 @@ interface ICloudFederationNotification { * * @param string $notificationType (e.g. SHARE_ACCEPTED) * @param string $resourceType (e.g. file, calendar, contact,...) - * @param array $message + * @param $providerId id of the share + * @param array $notification , payload of the notification * + * @return * @since 14.0.0 */ - public function setMessage($notificationType, $resourceType, array $message); + public function setMessage($notificationType, $resourceType, $providerId, array $notification); /** * get message, ready to send out diff --git a/lib/public/Federation/ICloudFederationProvider.php b/lib/public/Federation/ICloudFederationProvider.php index 0d87d76ee55..f11ed4fde33 100644 --- a/lib/public/Federation/ICloudFederationProvider.php +++ b/lib/public/Federation/ICloudFederationProvider.php @@ -62,13 +62,14 @@ interface ICloudFederationProvider { * notification received from another server * * @param string $notificationType (e.g SHARE_ACCEPTED) - * @param array $message provider specific notification + * @param string $providerId share ID + * @param array $notification provider specific notification * * @throws ShareNotFoundException * @throws ActionNotSupportedException * * @since 14.0.0 */ - public function notificationReceived($notificationType, array $message); + public function notificationReceived($notificationType, $providerId, array $notification); } diff --git a/lib/public/Federation/ICloudFederationShare.php b/lib/public/Federation/ICloudFederationShare.php index ce5065c70b8..b721ffb1681 100644 --- a/lib/public/Federation/ICloudFederationShare.php +++ b/lib/public/Federation/ICloudFederationShare.php @@ -222,6 +222,16 @@ interface ICloudFederationShare { public function getShareType(); /** + * get share Secret + * + * @return string + * + * @since 14.0.0 + */ + public function getShareSecret(); + + + /** * get protocol specification * * @return array |