From cb5ba9b8733f8f7ceba302bedd4c827f6de1ef1e Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Thu, 11 Oct 2018 11:22:10 +0800 Subject: [PATCH] MDL-63617 message_jabber: Add support for removal of context users This issue is part of the MDL-62560 Epic. --- .../jabber/classes/privacy/provider.php | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/message/output/jabber/classes/privacy/provider.php b/message/output/jabber/classes/privacy/provider.php index 1bb3161fb54..7319d6de9be 100644 --- a/message/output/jabber/classes/privacy/provider.php +++ b/message/output/jabber/classes/privacy/provider.php @@ -28,6 +28,8 @@ defined('MOODLE_INTERNAL') || die(); use \core_privacy\local\metadata\collection; use \core_privacy\local\request\contextlist; use \core_privacy\local\request\approved_contextlist; +use core_privacy\local\request\userlist; +use \core_privacy\local\request\approved_userlist; /** * Privacy class for requesting user data. @@ -38,6 +40,7 @@ use \core_privacy\local\request\approved_contextlist; */ class provider implements \core_privacy\local\metadata\provider, + \core_privacy\local\request\core_userlist_provider, \core_privacy\local\request\plugin\provider { /** @@ -66,6 +69,14 @@ class provider implements return new contextlist(); } + /** + * Get the list of users who have data within a context. + * + * @param userlist $userlist The userlist containing the list of users who have data in this context/plugin combination. + */ + public static function get_users_in_context(userlist $userlist) { + } + /** * Export all user data for the specified user, in the specified contexts. * @@ -82,6 +93,14 @@ class provider implements public static function delete_data_for_all_users_in_context(\context $context) { } + /** + * Delete multiple users within a single context. + * + * @param approved_userlist $userlist The approved context and user information to delete information for. + */ + public static function delete_data_for_users(approved_userlist $userlist) { + } + /** * Delete all user data for the specified user, in the specified contexts. *