diff options
author | Joas Schilling <coding@schilljs.com> | 2019-09-04 16:50:52 +0200 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2019-11-12 17:36:58 +0100 |
commit | 520042bbd0512e19717d18705c3b045b2d8400a7 (patch) | |
tree | 286e21a2dd06feca025a7dabe2dcbb63d65c5498 /lib/public/Share | |
parent | c79a56481bc4bd9fb94b0dfbf483537400c76569 (diff) | |
download | nextcloud-server-520042bbd0512e19717d18705c3b045b2d8400a7.tar.gz nextcloud-server-520042bbd0512e19717d18705c3b045b2d8400a7.zip |
Allow to accept group shares
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/public/Share')
-rw-r--r-- | lib/public/Share/IManager.php | 12 | ||||
-rw-r--r-- | lib/public/Share/IShareProvider.php | 10 |
2 files changed, 22 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php index 8bb7291d6ba..3127c74be5e 100644 --- a/lib/public/Share/IManager.php +++ b/lib/public/Share/IManager.php @@ -54,6 +54,7 @@ interface IManager { * Update a share. * The target of the share can't be changed this way: use moveShare * The share can't be removed this way (permission 0): use deleteShare + * The state can't be changed this way: use acceptShare * * @param IShare $share * @return IShare The share object @@ -63,6 +64,17 @@ interface IManager { public function updateShare(IShare $share); /** + * Accept a share. + * + * @param IShare $share + * @param string $recipientId + * @return IShare The share object + * @throws \InvalidArgumentException + * @since 18.0.0 + */ + public function acceptShare(IShare $share, string $recipientId): IShare; + + /** * Delete a share * * @param IShare $share diff --git a/lib/public/Share/IShareProvider.php b/lib/public/Share/IShareProvider.php index c8815928269..49ab4bef3e6 100644 --- a/lib/public/Share/IShareProvider.php +++ b/lib/public/Share/IShareProvider.php @@ -64,6 +64,16 @@ interface IShareProvider { public function update(\OCP\Share\IShare $share); /** + * Accept a share. + * + * @param IShare $share + * @param string $recipient + * @return IShare The share object + * @since 17.0.0 + */ +// public function acceptShare(IShare $share, string $recipient): IShare; + + /** * Delete a share * * @param \OCP\Share\IShare $share |