Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2021-03-05 10:49:43 +0300
committerGitHub <noreply@github.com>2021-03-05 10:49:43 +0300
commit54cffefed47f7688800dbbb0d2115ddff02ebbef (patch)
treedf707ce13120ac23532370ecf5ead6173b0916a0 /lib/public
parente6ef096e520c512064db3448696c7a3ab8f47147 (diff)
parent2796ef80ff53684c6b276b054bb2d3b6039a4ef6 (diff)
Merge pull request #25660 from hosting-de/feature/add-backend-list-groups
Show group backends in occ group:list --info and group:info
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/Group/Backend/INamedBackend.php36
-rw-r--r--lib/public/IGroup.php8
2 files changed, 44 insertions, 0 deletions
diff --git a/lib/public/Group/Backend/INamedBackend.php b/lib/public/Group/Backend/INamedBackend.php
new file mode 100644
index 00000000000..b6aaea328c4
--- /dev/null
+++ b/lib/public/Group/Backend/INamedBackend.php
@@ -0,0 +1,36 @@
+<?php
+/**
+ * @copyright Copyright (c) 2021, hosting.de, Johannes Leuker <j.leuker@hosting.de>.
+ *
+ * @author Johannes Leuker <j.leuker@hosting.de>.
+ *
+ * @license AGPL-3.0
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+
+namespace OCP\Group\Backend;
+
+/**
+ * @since 22.0.0
+ */
+interface INamedBackend {
+
+ /**
+ * Backend name to be shown in group management
+ * @return string the name of the backend to be shown
+ * @since 22.0.0
+ */
+ public function getBackendName(): string;
+}
diff --git a/lib/public/IGroup.php b/lib/public/IGroup.php
index ead240cc1a2..014302347ed 100644
--- a/lib/public/IGroup.php
+++ b/lib/public/IGroup.php
@@ -130,6 +130,14 @@ interface IGroup {
public function searchDisplayName($search, $limit = null, $offset = null);
/**
+ * Get the names of the backends the group is connected to
+ *
+ * @return string[]
+ * @since 22.0.0
+ */
+ public function getBackendNames();
+
+ /**
* delete the group
*
* @return bool