summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/share/ishare.php16
1 files changed, 12 insertions, 4 deletions
diff --git a/lib/public/share/ishare.php b/lib/public/share/ishare.php
index 5a82436c720..074f4117584 100644
--- a/lib/public/share/ishare.php
+++ b/lib/public/share/ishare.php
@@ -24,8 +24,7 @@ namespace OCP\Share;
use OCP\Files\File;
use OCP\Files\Folder;
use OCP\Files\Node;
-use OCP\IUser;
-use OCP\IGroup;
+use OCP\Files\NotFoundException;
/**
* Interface IShare
@@ -55,21 +54,30 @@ interface IShare {
/**
* Set the node of the file/folder that is shared
*
- * @param File|Folder $path
+ * @param Node $node
* @return \OCP\Share\IShare The modified object
* @since 9.0.0
*/
- public function setNode(Node $path);
+ public function setNode(Node $node);
/**
* Get the node of the file/folder that is shared
*
* @return File|Folder
* @since 9.0.0
+ * @throws NotFoundException
*/
public function getNode();
/**
+ * Set file id for lazy evaluation of the node
+ * @param int $fileId
+ * @return \OCP\Share\IShare The modified object
+ * @since 9.0.0
+ */
+ public function setNodeId($fileId);
+
+ /**
* Set the shareType
*
* @param int $shareType