Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2016-10-19 22:27:07 +0300
committerRoeland Jago Douma <roeland@famdouma.nl>2017-04-13 13:58:49 +0300
commit88299ec27c209a432f925f19970e581f46fc54cd (patch)
tree20039a2717e0084ff2d569b3b4ddbe61a2dad849 /lib/public/Share
parent7dcc98eb202c089a2966004ffb988166f3c4e3d7 (diff)
Added to public interface
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Share')
-rw-r--r--lib/public/Share/IManager.php30
1 files changed, 30 insertions, 0 deletions
diff --git a/lib/public/Share/IManager.php b/lib/public/Share/IManager.php
index a15020bbd69..45e0e9d80c2 100644
--- a/lib/public/Share/IManager.php
+++ b/lib/public/Share/IManager.php
@@ -192,6 +192,36 @@ interface IManager {
public function userDeletedFromGroup($uid, $gid);
/**
+ * Get access list to a path. This means
+ * all the users that can access a given path.
+ *
+ * Consider:
+ * -root
+ * |-folder1
+ * |-folder2
+ * |-fileA
+ *
+ * fileA is shared with user1
+ * folder2 is shared with group2 (user4 is a member of group2)
+ * folder1 is shared with user2
+ *
+ * Then the access list will to '/folder1/folder2/fileA' is:
+ * [
+ * users => ['user1', 'user2', 'user4'],
+ * public => bool
+ * remote => bool
+ * ]
+ *
+ * This is required for encryption/activity
+ *
+ * @param \OCP\Files\Node $path
+ * @param bool $recursive Should we check all parent folders as well
+ * @return array
+ * @since 9.2.0
+ */
+ public function getAccessList(\OCP\Files\Node $path, $recursive = true);
+
+ /**
* Instantiates a new share object. This is to be passed to
* createShare.
*