diff options
author | Roeland Jago Douma <rullzer@users.noreply.github.com> | 2021-03-05 08:49:43 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-05 08:49:43 +0100 |
commit | 54cffefed47f7688800dbbb0d2115ddff02ebbef (patch) | |
tree | df707ce13120ac23532370ecf5ead6173b0916a0 /lib/public | |
parent | e6ef096e520c512064db3448696c7a3ab8f47147 (diff) | |
parent | 2796ef80ff53684c6b276b054bb2d3b6039a4ef6 (diff) | |
download | nextcloud-server-54cffefed47f7688800dbbb0d2115ddff02ebbef.tar.gz nextcloud-server-54cffefed47f7688800dbbb0d2115ddff02ebbef.zip |
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.php | 36 | ||||
-rw-r--r-- | lib/public/IGroup.php | 8 |
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 |