summaryrefslogtreecommitdiffstats
path: root/lib/public/Group/Backend/IIsAdminBackend.php
diff options
context:
space:
mode:
authorRoeland Jago Douma <roeland@famdouma.nl>2018-03-25 21:04:03 +0200
committerRoeland Jago Douma <roeland@famdouma.nl>2018-04-23 11:49:28 +0200
commitcf0501d632ade26aae8600e53a26455822bd7eec (patch)
tree2dfaae2a45b5a91beaab5a4d84a7db95e62f5718 /lib/public/Group/Backend/IIsAdminBackend.php
parent3ff041f86d936524674d2def257ddc4b15a2c105 (diff)
downloadnextcloud-server-cf0501d632ade26aae8600e53a26455822bd7eec.tar.gz
nextcloud-server-cf0501d632ade26aae8600e53a26455822bd7eec.zip
Make the group backends also possible using interfaces
Just like for the user backends the group backends should also be properly done using interfaces. This adds the interfaces and abstract class to get started Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/public/Group/Backend/IIsAdminBackend.php')
-rw-r--r--lib/public/Group/Backend/IIsAdminBackend.php36
1 files changed, 36 insertions, 0 deletions
diff --git a/lib/public/Group/Backend/IIsAdminBackend.php b/lib/public/Group/Backend/IIsAdminBackend.php
new file mode 100644
index 00000000000..e253a293dc9
--- /dev/null
+++ b/lib/public/Group/Backend/IIsAdminBackend.php
@@ -0,0 +1,36 @@
+<?php
+declare(strict_types=1);
+/**
+ * @copyright Copyright (c) 2018 Roeland Jago Douma <roeland@famdouma.nl>
+ *
+ * @author Roeland Jago Douma <roeland@famdouma.nl>
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * 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
+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace OCP\Group\Backend;
+
+/**
+ * @since 14.0.0
+ */
+interface IIsAdminBackend {
+
+ /**
+ * @since 14.0.0
+ */
+ public function isAdmin(string $uid): bool;
+}