From f359a735422b91d74602daa64e2fa10e473abbea Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Fri, 12 Oct 2018 13:43:23 +0800 Subject: [PATCH] MDL-63639 core_fileconverter: Add support for removal of context users This issue is part of the MDL-62560 Epic. --- files/converter/classes/privacy/provider.php | 23 ++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/files/converter/classes/privacy/provider.php b/files/converter/classes/privacy/provider.php index cd1874b6309..7e37956be4b 100644 --- a/files/converter/classes/privacy/provider.php +++ b/files/converter/classes/privacy/provider.php @@ -29,6 +29,8 @@ defined('MOODLE_INTERNAL') || die(); use context; use core_privacy\local\metadata\collection; use core_privacy\local\request\approved_contextlist; +use core_privacy\local\request\userlist; +use core_privacy\local\request\approved_userlist; /** * Data provider class. @@ -39,8 +41,9 @@ use core_privacy\local\request\approved_contextlist; * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ class provider implements - \core_privacy\local\metadata\provider, - \core_privacy\local\request\subsystem\provider { + \core_privacy\local\metadata\provider, + \core_privacy\local\request\core_userlist_provider, + \core_privacy\local\request\subsystem\provider { /** * Returns metadata. @@ -69,6 +72,14 @@ class provider implements return new \core_privacy\local\request\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. * @@ -85,6 +96,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. *