Skip to content

Commit

Permalink
Merge pull request #811 from Avarjana/email-templates-v2
Browse files Browse the repository at this point in the history
Introduce application specific notification templates
  • Loading branch information
Avarjana authored Mar 6, 2024
2 parents cf5809b + 58587ab commit 2f21955
Showing 1 changed file with 46 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,24 @@ default NotificationTemplate getNotificationTemplate(String notificationChannel,
return null;
}

/**
* Return the notification template from the tenant registry which matches the given channel and template name.
*
* @param notificationChannel Notification Channel Name (Eg: SMS or EMAIL).
* @param templateType Display name of the template.
* @param locale Locale.
* @param tenantDomain Tenant Domain.
* @param applicationUuid Application UUID.
* @return Return {@link org.wso2.carbon.identity.governance.model.NotificationTemplate} object.
* @throws NotificationTemplateManagerException If an error occurred while getting the notification template.
*/
default NotificationTemplate getNotificationTemplate(String notificationChannel, String templateType, String locale,
String tenantDomain, String applicationUuid)
throws NotificationTemplateManagerException {

return null;
}

/**
* Add the notification template to the registry.
*
Expand All @@ -55,6 +73,19 @@ default void addNotificationTemplate(NotificationTemplate notificationTemplate,

}

/**
* Add the notification template to the registry.
*
* @param notificationTemplate Notification template.
* @param tenantDomain Tenant domain.
* @param applicationUuid Application UUID.
* @throws NotificationTemplateManagerException If an error occurred while adding the notification template.
*/
default void addNotificationTemplate(NotificationTemplate notificationTemplate, String tenantDomain,
String applicationUuid) throws NotificationTemplateManagerException {

}

/**
* Add a new notification template to the registry to the corresponding notification channel root directory.
*
Expand Down Expand Up @@ -91,4 +122,19 @@ default List<NotificationTemplate> getDefaultNotificationTemplates(String notifi

return null;
}

/**
* Add a new notification template to the registry to the corresponding notification channel root directory.
*
* @param displayName Notification template display name.
* @param notificationChannel Notification channel (Eg: SMS, EMAIL).
* @param tenantDomain Tenant domain.
* @param applicationUuid Application UUID.
* @throws NotificationTemplateManagerException If an error occurred while adding the template to the registry.
*/
default void addNotificationTemplateType(String displayName, String notificationChannel,
String tenantDomain, String applicationUuid)
throws NotificationTemplateManagerException {

}
}

0 comments on commit 2f21955

Please sign in to comment.