summaryrefslogtreecommitdiffstats
path: root/lib/public/app
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2015-02-23 16:03:32 +0100
committerVincent Petry <pvince81@owncloud.com>2015-02-23 16:03:32 +0100
commit4290e1990ec7d04a06298df9aad4c4fd8519f9aa (patch)
treedbb8c02e3f7a3d008b554931d8888f81dcb79b5c /lib/public/app
parent81760321765272f638bf50487518860374ffb7f0 (diff)
parent5542fafd3696033ea8bfdcc441c05522cf6a5736 (diff)
downloadnextcloud-server-4290e1990ec7d04a06298df9aad4c4fd8519f9aa.tar.gz
nextcloud-server-4290e1990ec7d04a06298df9aad4c4fd8519f9aa.zip
Merge pull request #13829 from owncloud/appmanager-list
Better caching for enabled apps
Diffstat (limited to 'lib/public/app')
-rw-r--r--lib/public/app/iappmanager.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/app/iappmanager.php b/lib/public/app/iappmanager.php
index a2f1c9c6607..54c9a35270f 100644
--- a/lib/public/app/iappmanager.php
+++ b/lib/public/app/iappmanager.php
@@ -20,6 +20,8 @@
*/
namespace OCP\App;
+use OCP\IUser;
+
interface IAppManager {
/**
* Check if an app is enabled for user
@@ -59,4 +61,19 @@ interface IAppManager {
* @param string $appId
*/
public function disableApp($appId);
+
+ /**
+ * List all apps enabled for a user
+ *
+ * @param \OCP\IUser $user
+ * @return string[]
+ */
+ public function getEnabledAppsForUser(IUser $user);
+
+ /**
+ * List all installed apps
+ *
+ * @return string[]
+ */
+ public function getInstalledApps();
}