summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-08-31 15:54:35 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-08-31 15:54:35 +0200
commit4024960a0ec1dbb6a3496e24b1387c6fa260a293 (patch)
tree79ecee1dcc52f0296546debcdf6dd8ae8b499f29 /lib/public
parent8009df0b60c71bac41e4ead9ec8e4e92812e0d75 (diff)
parent0a1e5aebf1198cc155862fad8c890121f5f379e9 (diff)
downloadnextcloud-server-4024960a0ec1dbb6a3496e24b1387c6fa260a293.tar.gz
nextcloud-server-4024960a0ec1dbb6a3496e24b1387c6fa260a293.zip
Merge pull request #10780 from owncloud/config-public
Extend public config interface
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iconfig.php33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/public/iconfig.php b/lib/public/iconfig.php
index 4865f8bc85b..755da09ee6b 100644
--- a/lib/public/iconfig.php
+++ b/lib/public/iconfig.php
@@ -51,6 +51,13 @@ interface IConfig {
*/
public function getSystemValue($key, $default = '');
+ /**
+ * Delete a system wide defined value
+ *
+ * @param string $key the key of the value, under which it was saved
+ */
+ public function deleteSystemValue($key);
+
/**
* Writes a new app wide value
@@ -72,6 +79,14 @@ interface IConfig {
*/
public function getAppValue($appName, $key, $default = '');
+ /**
+ * Delete an app wide defined value
+ *
+ * @param string $appName the appName that we stored the value under
+ * @param string $key the key of the value, under which it was saved
+ */
+ public function deleteAppValue($appName, $key);
+
/**
* Set a user defined value
@@ -94,4 +109,22 @@ interface IConfig {
* @return string
*/
public function getUserValue($userId, $appName, $key, $default = '');
+
+ /**
+ * Get the keys of all stored by an app for the user
+ *
+ * @param string $userId the userId of the user that we want to store the value under
+ * @param string $appName the appName that we stored the value under
+ * @return string[]
+ */
+ public function getUserKeys($userId, $appName);
+
+ /**
+ * Delete a user value
+ *
+ * @param string $userId the userId of the user that we want to store the value under
+ * @param string $appName the appName that we stored the value under
+ * @param string $key the key under which the value is being stored
+ */
+ public function deleteUserValue($userId, $appName, $key);
}