summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2017-07-05 15:15:25 +0200
committerGitHub <noreply@github.com>2017-07-05 15:15:25 +0200
commit7d58bb7db513c2a488ce41efcd6833b9dfaa86da (patch)
tree3c9adb889eaf368e80c425f670ebbe148ebb3eec /lib/public
parentefa52ec1113eeccbd3935a8c96ea23c47ca190ab (diff)
parentf2b8535c7e6ab070465933ccee558dcfbeb7e8bb (diff)
downloadnextcloud-server-7d58bb7db513c2a488ce41efcd6833b9dfaa86da.tar.gz
nextcloud-server-7d58bb7db513c2a488ce41efcd6833b9dfaa86da.zip
Merge pull request #5342 from nextcloud/userlist-used-space
show used space in user list
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Files/Config/IUserMountCache.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/public/Files/Config/IUserMountCache.php b/lib/public/Files/Config/IUserMountCache.php
index cf30d8fb431..fca797d3b69 100644
--- a/lib/public/Files/Config/IUserMountCache.php
+++ b/lib/public/Files/Config/IUserMountCache.php
@@ -104,4 +104,16 @@ interface IUserMountCache {
* @since 9.0.0
*/
public function remoteStorageMounts($storageId);
+
+ /**
+ * Get the used space for users
+ *
+ * Note that this only includes the space in their home directory,
+ * not any incoming shares or external storages.
+ *
+ * @param IUser[] $users
+ * @return int[] [$userId => $userSpace]
+ * @since 13.0.0
+ */
+ public function getUsedSpaceForUsers(array $users);
}