Skip to content

Commit

Permalink
MDL-63639 core_fileconverter: Add support for removal of context users
Browse files Browse the repository at this point in the history
This issue is part of the MDL-62560 Epic.
Mihail Geshoski authored and David Monllao committed Oct 22, 2018
1 parent acaacb6 commit 1ba1fcf
Showing 1 changed file with 21 additions and 2 deletions.
23 changes: 21 additions & 2 deletions files/converter/classes/privacy/provider.php
Original file line number Diff line number Diff line change
@@ -29,6 +29,8 @@
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 @@
* @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 @@ public static function get_contexts_for_userid(int $userid) : \core_privacy\loca
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 @@ public static function export_user_data(approved_contextlist $contextlist) {
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.
*

0 comments on commit 1ba1fcf

Please sign in to comment.