summaryrefslogtreecommitdiffstats
path: root/lib/public/share/imanager.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@owncloud.com>2016-02-02 21:02:09 +0100
committerRoeland Jago Douma <rullzer@owncloud.com>2016-02-03 19:25:29 +0100
commit96662c4d0d50cc94ac43ecfceebef9de9a55d9ec (patch)
treef7f1e0df0118e845a40123d26dd53765873acf95 /lib/public/share/imanager.php
parenteb904c7aa9c9fc7235c82d7a7b522b46291ea5f2 (diff)
downloadnextcloud-server-96662c4d0d50cc94ac43ecfceebef9de9a55d9ec.tar.gz
nextcloud-server-96662c4d0d50cc94ac43ecfceebef9de9a55d9ec.zip
[Share 2.0] Fix shareManager
Diffstat (limited to 'lib/public/share/imanager.php')
-rw-r--r--lib/public/share/imanager.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/lib/public/share/imanager.php b/lib/public/share/imanager.php
index 15b9f34764e..4d79f97c31a 100644
--- a/lib/public/share/imanager.php
+++ b/lib/public/share/imanager.php
@@ -69,27 +69,27 @@ interface IManager {
* handle this.
*
* @param IShare $share
- * @param IUser $recipient
+ * @param string $recipientId
* @since 9.0.0
*/
- public function deleteFromSelf(IShare $share, IUser $recipient);
+ public function deleteFromSelf(IShare $share, $recipientId);
/**
* Move the share as a recipient of the share.
* This is updating the share target. So where the recipient has the share mounted.
*
* @param IShare $share
- * @param IUser $recipient
+ * @param string $recipientId
* @return IShare
* @throws \InvalidArgumentException If $share is a link share or the $recipient does not match
* @since 9.0.0
*/
- public function moveShare(IShare $share, IUser $recipient);
+ public function moveShare(IShare $share, $recipientId);
/**
* Get shares shared by (initiated) by the provided user.
*
- * @param IUser $user
+ * @param string $userId
* @param int $shareType
* @param \OCP\Files\File|\OCP\Files\Folder $path
* @param bool $reshares
@@ -98,13 +98,13 @@ interface IManager {
* @return IShare[]
* @since 9.0.0
*/
- public function getSharesBy(IUser $user, $shareType, $path = null, $reshares = false, $limit = 50, $offset = 0);
+ public function getSharesBy($userId, $shareType, $path = null, $reshares = false, $limit = 50, $offset = 0);
/**
* Get shares shared with $user.
* Filter by $node if provided
*
- * @param IUser $user
+ * @param string $userId
* @param int $shareType
* @param File|Folder|null $node
* @param int $limit The maximum number of shares returned, -1 for all
@@ -112,7 +112,7 @@ interface IManager {
* @return IShare[]
* @since 9.0.0
*/
- public function getSharedWith(IUser $user, $shareType, $node = null, $limit = 50, $offset = 0);
+ public function getSharedWith($userId, $shareType, $node = null, $limit = 50, $offset = 0);
/**
* Retrieve a share by the share id.
@@ -223,10 +223,10 @@ interface IManager {
/**
* Check if sharing is disabled for the given user
*
- * @param IUser $user
+ * @param string $userId
* @return bool
* @since 9.0.0
*/
- public function sharingDisabledForUser(IUser $user);
+ public function sharingDisabledForUser($userId);
}