diff options
author | Robin Appelman <robin@icewind.nl> | 2019-02-22 16:36:25 +0100 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2019-02-25 16:06:09 +0100 |
commit | db750898ee3cb165218f4428265ab9dc258c93c2 (patch) | |
tree | 5a9e6472b98992b35b62ca7d5d1b1273f8466f48 /lib/public/Group | |
parent | d7538f9a61a2af288d82fc257524aee5c2f86769 (diff) | |
download | nextcloud-server-db750898ee3cb165218f4428265ab9dc258c93c2.tar.gz nextcloud-server-db750898ee3cb165218f4428265ab9dc258c93c2.zip |
allow group backends to mark that a group should now be shown in search dialogs
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/public/Group')
-rw-r--r-- | lib/public/Group/Backend/IHideFromCollaborationBackend.php | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/lib/public/Group/Backend/IHideFromCollaborationBackend.php b/lib/public/Group/Backend/IHideFromCollaborationBackend.php new file mode 100644 index 00000000000..81afbc3d568 --- /dev/null +++ b/lib/public/Group/Backend/IHideFromCollaborationBackend.php @@ -0,0 +1,38 @@ +<?php declare(strict_types=1); +/** + * @copyright Copyright (c) 2019 Robin Appelman <robin@icewind.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 16.0.0 + * + * Allow the backend to mark groups to be excluded from being shown in search dialogs + */ +interface IHideFromCollaborationBackend { + /** + * Check if a group should be hidden from search dialogs + * + * @param string $groupId + * @return bool + * @since 16.0.0 + */ + public function hideGroup(string $groupId): bool; +} |