diff options
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 |