aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Group/Database.php
diff options
context:
space:
mode:
authorJohannes Leuker <j.leuker@hosting.de>2021-02-09 14:50:38 +0100
committerJohannes Leuker <j.leuker@hosting.de>2021-03-01 16:02:08 +0100
commit2796ef80ff53684c6b276b054bb2d3b6039a4ef6 (patch)
tree29336019d1ad40fedae19f39ca67da5455ae2266 /lib/private/Group/Database.php
parent9fd72b0d3a4ebfad2291a18aefc51e999fbb0744 (diff)
downloadnextcloud-server-2796ef80ff53684c6b276b054bb2d3b6039a4ef6.tar.gz
nextcloud-server-2796ef80ff53684c6b276b054bb2d3b6039a4ef6.zip
Show group backends in occ group:list --info and group:info
Signed-off-by: Johannes Leuker <j.leuker@hosting.de>
Diffstat (limited to 'lib/private/Group/Database.php')
-rw-r--r--lib/private/Group/Database.php13
1 files changed, 12 insertions, 1 deletions
diff --git a/lib/private/Group/Database.php b/lib/private/Group/Database.php
index c49f3bce596..29fcb503b10 100644
--- a/lib/private/Group/Database.php
+++ b/lib/private/Group/Database.php
@@ -55,6 +55,7 @@ use OCP\Group\Backend\IGetDisplayNameBackend;
use OCP\Group\Backend\IGroupDetailsBackend;
use OCP\Group\Backend\IRemoveFromGroupBackend;
use OCP\Group\Backend\ISetDisplayNameBackend;
+use OCP\Group\Backend\INamedBackend;
use OCP\IDBConnection;
/**
@@ -69,7 +70,8 @@ class Database extends ABackend implements
IGetDisplayNameBackend,
IGroupDetailsBackend,
IRemoveFromGroupBackend,
- ISetDisplayNameBackend {
+ ISetDisplayNameBackend,
+ INamedBackend {
/** @var string[] */
private $groupCache = [];
@@ -502,4 +504,13 @@ class Database extends ABackend implements
return true;
}
+
+ /**
+ * Backend name to be shown in group management
+ * @return string the name of the backend to be shown
+ * @since 21.0.0
+ */
+ public function getBackendName(): string {
+ return 'Database';
+ }
}