summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/private/share20/defaultshareprovider.php10
-rw-r--r--lib/private/share20/manager.php10
-rw-r--r--lib/public/share/imanager.php5
-rw-r--r--lib/public/share/ishareprovider.php10
4 files changed, 9 insertions, 26 deletions
diff --git a/lib/private/share20/defaultshareprovider.php b/lib/private/share20/defaultshareprovider.php
index 43dc6090a35..b91ac24d44f 100644
--- a/lib/private/share20/defaultshareprovider.php
+++ b/lib/private/share20/defaultshareprovider.php
@@ -454,15 +454,7 @@ class DefaultShareProvider implements IShareProvider {
}
/**
- * Get all shares by the given user. Sharetype and path can be used to filter.
- *
- * @param string $userId
- * @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder $node
- * @param bool $reshares Also get the shares where $user is the owner instead of just the shares where $user is the initiator
- * @param int $limit The maximum number of shares to be returned, -1 for all shares
- * @param int $offset
- * @return Share[]
+ * @inheritdoc
*/
public function getSharesBy($userId, $shareType, $node, $reshares, $limit, $offset) {
$qb = $this->dbConn->getQueryBuilder();
diff --git a/lib/private/share20/manager.php b/lib/private/share20/manager.php
index 6f370eea424..047d9d3e8f5 100644
--- a/lib/private/share20/manager.php
+++ b/lib/private/share20/manager.php
@@ -834,15 +834,7 @@ class Manager implements IManager {
}
/**
- * Get shares shared by (initiated) by the provided user.
- *
- * @param string $userId
- * @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder $path
- * @param bool $reshares
- * @param int $limit The maximum number of returned results, -1 for all results
- * @param int $offset
- * @return \OCP\Share\IShare[]
+ * @inheritdoc
*/
public function getSharesBy($userId, $shareType, $path = null, $reshares = false, $limit = 50, $offset = 0) {
if ($path !== null &&
diff --git a/lib/public/share/imanager.php b/lib/public/share/imanager.php
index edb76c46de4..86a31e1f06d 100644
--- a/lib/public/share/imanager.php
+++ b/lib/public/share/imanager.php
@@ -21,6 +21,7 @@
namespace OCP\Share;
+use OCP\Files\Node;
use OCP\IUser;
use OCP\Share\Exceptions\ShareNotFound;
@@ -91,7 +92,7 @@ interface IManager {
*
* @param string $userId
* @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder $path
+ * @param Node|null $path
* @param bool $reshares
* @param int $limit The maximum number of returned results, -1 for all results
* @param int $offset
@@ -106,7 +107,7 @@ interface IManager {
*
* @param string $userId
* @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder|null $node
+ * @param Node|null $node
* @param int $limit The maximum number of shares returned, -1 for all
* @param int $offset
* @return IShare[]
diff --git a/lib/public/share/ishareprovider.php b/lib/public/share/ishareprovider.php
index b339ce63d34..d00b9da7b59 100644
--- a/lib/public/share/ishareprovider.php
+++ b/lib/public/share/ishareprovider.php
@@ -21,10 +21,8 @@
namespace OCP\Share;
-use OC\Share20\Exception\ShareNotFound;
-use OC\Share20\Exception\BackendError;
+use OCP\Share\Exceptions\ShareNotFound;
use OCP\Files\Node;
-use OCP\IUser;
/**
* Interface IShareProvider
@@ -97,7 +95,7 @@ interface IShareProvider {
*
* @param string $userId
* @param int $shareType
- * @param \OCP\Files\File|\OCP\Files\Folder $node
+ * @param Node|null $node
* @param bool $reshares Also get the shares where $user is the owner instead of just the shares where $user is the initiator
* @param int $limit The maximum number of shares to be returned, -1 for all shares
* @param int $offset
@@ -120,11 +118,11 @@ interface IShareProvider {
/**
* Get shares for a given path
*
- * @param \OCP\Files\Node $path
+ * @param Node $path
* @return \OCP\Share\IShare[]
* @since 9.0.0
*/
- public function getSharesByPath(\OCP\Files\Node $path);
+ public function getSharesByPath(Node $path);
/**
* Get shared with the given user