MDL-63924 privacy: Add shared user providers to subsytsems

This commit is contained in:
Andrew Nicols 2018-11-08 15:32:39 +08:00
parent a14a44ee13
commit a07e8d7023
20 changed files with 80 additions and 23 deletions

View file

@ -34,7 +34,10 @@ defined('MOODLE_INTERNAL') || die();
*/
interface portfolio_provider extends
// The portfolio_provider should be implemented by plugins which only provide information to a subsystem.
\core_privacy\local\request\plugin\subsystem_provider {
\core_privacy\local\request\plugin\subsystem_provider,
// The implementation for prtfolios is handled in the subsystem itself.
\core_privacy\local\request\shared_userlist_provider {
/**
* Export all portfolio data from each portfolio plugin for the specified userid and context.

View file

@ -45,7 +45,9 @@ class provider implements
\core_privacy\local\request\plugin\provider,
\core_privacy\local\request\core_userlist_provider,
// The portfolio subsystem will be called by other components.
\core_privacy\local\request\subsystem\plugin_provider {
\core_privacy\local\request\subsystem\plugin_provider,
\core_privacy\local\request\shared_userlist_provider {
/**
* Returns meta data about this system.