MDL-64017 message_email: updated privacy provider

This commit is contained in:
Mark Nelson
2019-04-18 14:28:09 +08:00
parent 97c85a001c
commit 9bc1b8f8da
2 changed files with 13 additions and 0 deletions
@@ -51,6 +51,15 @@ class provider implements
* @return collection A listing of user data stored through this system.
*/
public static function get_metadata(collection $collection) : collection {
$messageemailmessages = [
'useridto' => 'privacy:metadata:message_email_messages:useridto',
'conversationid' => 'privacy:metadata:message_email_messages:conversationid',
'messageid' => 'privacy:metadata:message_email_messages:messageid',
];
// Note - this data gets deleted once the scheduled task runs.
$collection->add_database_table('message_email_messages',
$messageemailmessages, 'privacy:metadata:message_email_messages');
$collection->link_external_location('smtp', [
'recipient' => 'privacy:metadata:recipient',
'userfrom' => 'privacy:metadata:userfrom',
@@ -31,6 +31,10 @@ $string['privacy:metadata:attachname'] = 'The name of the attached file (extensi
$string['privacy:metadata:externalpurpose'] = 'This information is sent to an external SMTP server to be ultimately delivered as an email to the recipient.';
$string['privacy:metadata:fullmessage'] = 'The full message in a given format.';
$string['privacy:metadata:fullmessagehtml'] = 'The full version of the message.';
$string['privacy:metadata:message_email_messages'] = 'The list of users enrolled via an LTI provider';
$string['privacy:metadata:message_email_messages:conversationid'] = 'The id of the conversation being sent to';
$string['privacy:metadata:message_email_messages:messageid'] = 'The id of the message being sent';
$string['privacy:metadata:message_email_messages:useridto'] = 'The user receiving the message.';
$string['privacy:metadata:recipient'] = 'The recipient of the message.';
$string['privacy:metadata:replyto'] = 'The email address to reply to.';
$string['privacy:metadata:replytoname'] = 'Name of reply to recipient.';