split tenant specific notification to external and exiting user

This commit is contained in:
amentis 2024-06-21 14:05:31 +03:00
parent 9de176d3eb
commit 61d6f86ae8
8 changed files with 382 additions and 7 deletions

View File

@ -48,9 +48,12 @@ notification:
- #publicContactSupportType - #publicContactSupportType
type: B542B606-ACC6-4629-ADEF-4D8EE2F01222 type: B542B606-ACC6-4629-ADEF-4D8EE2F01222
contacts: [ email ] contacts: [ email ]
- #tenantSpecificInvitationUserType - #tenantSpecificInvitationExternalUserType
type: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be type: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be
contacts: [ email ] contacts: [ email ]
- #tenantSpecificInvitationExistingUserType
type: b3809c17-d1e4-420a-919c-828564114191
contacts: [ inapp, email ]
message: message:
email: email:
flows: flows:
@ -389,18 +392,45 @@ notification:
bcc-mode: 0 bcc-mode: 0
allow-attachments: false allow-attachments: false
cipher-fields: [ ] cipher-fields: [ ]
- #tenantSpecificInvitationUserType - #tenantSpecificInvitationExternalUserType
key: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be key: 497dada5-eccc-4bc0-9e0b-63e22b4eb0be
subject-path: classpath:notification_templates/tenantspecificinvitationuser/email/subject.{language}.txt subject-path: classpath:notification_templates/tenantspecificinvitationexternaluser/email/subject.{language}.txt
subject-field-options: subject-field-options:
mandatory: [ ] mandatory: [ ]
optional: [ ] optional: [ ]
body-path: classpath:notification_templates/tenantspecificinvitationuser/email/body.{language}.html body-path: classpath:notification_templates/tenantspecificinvitationexternaluser/email/body.{language}.html
body-field-options: body-field-options:
mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}", "{tenantName}" ] mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
optional: optional:
- key: "{expiration_time}" - key: "{expiration_time}"
value: --- value: ---
- key: "{tenantName}"
value: OpenCDMP
formatting:
'[{userName}]': null
'[{tenantName}]': null
'[{installation-url}]': null
'[{expiration_time}]': null
cc: [ ]
cc-mode: 0
bcc: [ ]
bcc-mode: 0
allow-attachments: false
cipher-fields: [ ]
- #tenantSpecificInvitationExistingUserType
key: b3809c17-d1e4-420a-919c-828564114191
subject-path: classpath:notification_templates/tenantspecificinvitationexistinguser/email/subject.{language}.txt
subject-field-options:
mandatory: [ ]
optional: [ ]
body-path: classpath:notification_templates/tenantspecificinvitationexistinguser/email/body.{language}.html
body-field-options:
mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
optional:
- key: "{expiration_time}"
value: ---
- key: "{tenantName}"
value: OpenCDMP
formatting: formatting:
'[{userName}]': null '[{userName}]': null
'[{tenantName}]': null '[{tenantName}]': null
@ -668,6 +698,31 @@ notification:
'[{tenant-url-path}]': null '[{tenant-url-path}]': null
priority-key: null priority-key: null
cipher-fields: [ ] cipher-fields: [ ]
- #tenantSpecificInvitationExistingUserType
key: b3809c17-d1e4-420a-919c-828564114191
subject-path: classpath:notification_templates/tenantspecificinvitationexistinguser/inapp/subject.{language}.txt
subject-field-options:
mandatory: [ ]
optional: [ ]
body-path: classpath:notification_templates/tenantspecificinvitationexistinguser/inapp/body.{language}.html
body-field-options:
mandatory: [ "{userName}", "{installation-url}", "{confirmationToken}" ]
optional:
- key: "{expiration_time}"
value: ---
- key: "{tenantName}"
value: OpenCDMP
formatting:
'[{userName}]': null
'[{tenantName}]': null
'[{installation-url}]': null
'[{expiration_time}]': null
cc: [ ]
cc-mode: 0
bcc: [ ]
bcc-mode: 0
allow-attachments: false
cipher-fields: [ ]
template-cache: template-cache:
prefix: ${CACHE_DISAMBIGUATION} prefix: ${CACHE_DISAMBIGUATION}
key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0" key-pattern: "{prefix}:Notification_Message_InApp_Template:{key}:v0"

View File

@ -271,7 +271,7 @@
<table border="0" cellpadding="0" cellspacing="0"> <table border="0" cellpadding="0" cellspacing="0">
<tbody> <tbody>
<tr> <tr>
<td> <a href="{installation-url}/login/tenant/confirmation/{confirmationToken}" target="_blank">Confirm Tenant Invitation</a> </td> <td> <a href="{installation-url}/login/invitation/confirmation/{confirmationToken}" target="_blank">Confirm Invitation</a> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>