summaryrefslogtreecommitdiffstats
path: root/lib/public/files/config
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2016-01-22 16:02:21 +0100
committerRobin Appelman <icewind@owncloud.com>2016-01-27 12:53:44 +0100
commit644a8ab797fb39847638048c887c2c358c962f62 (patch)
tree0df146d42ce05465c8a979777fb211d5e9148f96 /lib/public/files/config
parent308396b770f3b1b41ba31ff0ee889d485b14d14a (diff)
downloadnextcloud-server-644a8ab797fb39847638048c887c2c358c962f62.tar.gz
nextcloud-server-644a8ab797fb39847638048c887c2c358c962f62.zip
add IUserMountCache->getMountsForFileId
Diffstat (limited to 'lib/public/files/config')
-rw-r--r--lib/public/files/config/iusermountcache.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/lib/public/files/config/iusermountcache.php b/lib/public/files/config/iusermountcache.php
index f722ad16310..77f58cd8670 100644
--- a/lib/public/files/config/iusermountcache.php
+++ b/lib/public/files/config/iusermountcache.php
@@ -40,6 +40,8 @@ interface IUserMountCache {
public function registerMounts(IUser $user, array $mounts);
/**
+ * Get all cached mounts for a user
+ *
* @param IUser $user
* @return ICachedMountInfo[]
* @since 9.0.0
@@ -47,6 +49,8 @@ interface IUserMountCache {
public function getMountsForUser(IUser $user);
/**
+ * Get all cached mounts by storage
+ *
* @param int $numericStorageId
* @return ICachedMountInfo[]
* @since 9.0.0
@@ -54,6 +58,8 @@ interface IUserMountCache {
public function getMountsForStorageId($numericStorageId);
/**
+ * Get all cached mounts by root
+ *
* @param int $rootFileId
* @return ICachedMountInfo[]
* @since 9.0.0
@@ -61,6 +67,15 @@ interface IUserMountCache {
public function getMountsForRootId($rootFileId);
/**
+ * Get all cached mounts that contain a file
+ *
+ * @param int $fileId
+ * @return ICachedMountInfo[]
+ * @since 9.0.0
+ */
+ public function getMountsForFileId($fileId);
+
+ /**
* Remove all cached mounts for a user
*
* @param IUser $user