From 0c088088de02ca91bf60a2e114fdead925fb9cf9 Mon Sep 17 00:00:00 2001 From: Mihail Geshoski Date: Wed, 17 Oct 2018 08:56:59 +0800 Subject: [PATCH] MDL-63678 ltiservice_gradebookservices: Support removal of context users This issue is part of the MDL-62560 Epic. --- .../classes/privacy/provider.php | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/mod/lti/service/gradebookservices/classes/privacy/provider.php b/mod/lti/service/gradebookservices/classes/privacy/provider.php index 878fe6bd991..70dd92fed6d 100644 --- a/mod/lti/service/gradebookservices/classes/privacy/provider.php +++ b/mod/lti/service/gradebookservices/classes/privacy/provider.php @@ -27,6 +27,8 @@ namespace ltiservice_gradebookservices\privacy; 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; defined('MOODLE_INTERNAL') || die(); @@ -37,8 +39,9 @@ defined('MOODLE_INTERNAL') || die(); * @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\plugin\provider { + \core_privacy\local\metadata\provider, + \core_privacy\local\request\core_userlist_provider, + \core_privacy\local\request\plugin\provider { /** * Returns meta data about this system. @@ -68,6 +71,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. * @@ -84,6 +95,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. *