summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorLukas Reschke <lukas@statuscode.ch>2017-11-09 00:04:25 +0100
committerGitHub <noreply@github.com>2017-11-09 00:04:25 +0100
commit989a8a3668ee2f8214bc0391b8d38f1e9b99bde0 (patch)
tree9d23b314ae0214bb902cb50f167aef786447d3e3 /lib/public
parentf9d8eb2a2ed22f630b38a3849725039ae84c63b9 (diff)
parent3f0cb130421b4626041d3d60f0bde9e5da9d5dcc (diff)
downloadnextcloud-server-989a8a3668ee2f8214bc0391b8d38f1e9b99bde0.tar.gz
nextcloud-server-989a8a3668ee2f8214bc0391b8d38f1e9b99bde0.zip
Merge pull request #6220 from nextcloud/cached-mount-info-filepath
Allow getting the filepath when getting cached mounts by fileid
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Config/ICachedMountFieInfo.php43
-rw-r--r--lib/public/Files/Config/IUserMountCache.php2
2 files changed, 44 insertions, 1 deletions
diff --git a/lib/public/Files/Config/ICachedMountFieInfo.php b/lib/public/Files/Config/ICachedMountFieInfo.php
new file mode 100644
index 00000000000..e884b975503
--- /dev/null
+++ b/lib/public/Files/Config/ICachedMountFieInfo.php
@@ -0,0 +1,43 @@
+<?php
+/**
+ * @copyright Copyright (c) 2017 Robin Appelman <robin@icewind.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCP\Files\Config;
+
+/**
+ * Holds information about a mount for a user
+ *
+ * @since 13.0.0
+ */
+interface ICachedMountFileInfo extends ICachedMountInfo {
+ /**
+ * Return the path for the file within the cached mount
+ *
+ * @return string
+ * @since 13.0.0
+ */
+ public function getInternalPath();
+
+ /**
+ * @return string
+ * @since 13.0.0
+ */
+ public function getPath();
+}
diff --git a/lib/public/Files/Config/IUserMountCache.php b/lib/public/Files/Config/IUserMountCache.php
index 4c573350f95..507fff80882 100644
--- a/lib/public/Files/Config/IUserMountCache.php
+++ b/lib/public/Files/Config/IUserMountCache.php
@@ -74,7 +74,7 @@ interface IUserMountCache {
*
* @param int $fileId
* @param string|null $user optionally restrict the results to a single user @since 12.0.0
- * @return ICachedMountInfo[]
+ * @return ICachedMountFileInfo[]
* @since 9.0.0
*/
public function getMountsForFileId($fileId, $user = null);