summaryrefslogtreecommitdiffstats
path: root/lib/public
diff options
context:
space:
mode:
authorMorris Jobke <hey@morrisjobke.de>2014-12-12 17:25:03 +0100
committerMorris Jobke <hey@morrisjobke.de>2014-12-19 10:17:17 +0100
commit6da33e1ea7bb340e22330941d2a980a1414210b0 (patch)
tree3717d08e21cb02a149ae109f4efeecb83ba582c1 /lib/public
parent5c6e08213e6ed52517f9f729ae91a2973f09c182 (diff)
downloadnextcloud-server-6da33e1ea7bb340e22330941d2a980a1414210b0.tar.gz
nextcloud-server-6da33e1ea7bb340e22330941d2a980a1414210b0.zip
introduce names for user backends - IUserBackend
* LDAP with multiple servers also proved backendName
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/iuserbackend.php27
1 files changed, 27 insertions, 0 deletions
diff --git a/lib/public/iuserbackend.php b/lib/public/iuserbackend.php
new file mode 100644
index 00000000000..79b5740ee93
--- /dev/null
+++ b/lib/public/iuserbackend.php
@@ -0,0 +1,27 @@
+<?php
+/**
+ * Copyright (c) 2014 Morris Jobke <hey@morrisjobke.de>
+ * This file is licensed under the Affero General Public License version 3 or
+ * later.
+ * See the COPYING-README file.
+ */
+
+/**
+ * Public interface of ownCloud for apps to use.
+ * User Interface version 2
+ *
+ */
+
+// use OCP namespace for all classes that are considered public.
+// This means that they should be used by apps instead of the internal ownCloud classes
+namespace OCP;
+
+interface IUserBackend {
+
+ /**
+ * Backend name to be shown in user management
+ * @return string the name of the backend to be shown
+ */
+ public function getBackendName();
+
+}