diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-02-02 14:47:29 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2015-02-16 15:15:35 +0100 |
commit | 2b58e8489fcb5eff0e2312209beca038bfe9b40a (patch) | |
tree | a86ba1a304e63e71f8a075a6401fa6449e0551be /lib/public/app | |
parent | 9c47ab91f2c27ced6b80ce44003809358da76ee2 (diff) | |
download | nextcloud-server-2b58e8489fcb5eff0e2312209beca038bfe9b40a.tar.gz nextcloud-server-2b58e8489fcb5eff0e2312209beca038bfe9b40a.zip |
Add getInstalledApps and getAppsForUser to the app manager
Diffstat (limited to 'lib/public/app')
-rw-r--r-- | lib/public/app/iappmanager.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/public/app/iappmanager.php b/lib/public/app/iappmanager.php index ebd84a1ce9d..c79dcf9a573 100644 --- a/lib/public/app/iappmanager.php +++ b/lib/public/app/iappmanager.php @@ -9,6 +9,8 @@ namespace OCP\App; +use OCP\IUser; + interface IAppManager { /** * Check if an app is enabled for user @@ -48,4 +50,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 getAppsEnabledForUser(IUser $user); + + /** + * List all installed apps + * + * @return string[] + */ + public function getInstalledApps(); } |