From 575f1c521ab2495a730d2485be22da2ada53fa93 Mon Sep 17 00:00:00 2001 From: rushannanayakkara Date: Fri, 18 Oct 2024 07:13:59 +0530 Subject: [PATCH] Rename NotificationTemplateManager.deleteCustomizedNotificationTemplates function to resetNotificationTemplateType --- .../notification/NotificationTemplateManager.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java b/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java index 5b109633f..3a37fb28a 100644 --- a/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java +++ b/components/org.wso2.carbon.identity.governance/src/main/java/org/wso2/carbon/identity/governance/service/notification/NotificationTemplateManager.java @@ -274,17 +274,16 @@ default void deleteNotificationTemplate(String notificationChannel, String templ } - /** - * Delete all organization and application notification templates of a type from the system. + * Deletes the template type in the database resulting in the deletion of all it's user defined templates + * and recreates the type. * * @param notificationChannel Notification channel (Eg: SMS, EMAIL). * @param templateType Display name of the template. * @param tenantDomain Tenant domain. - * @throws NotificationTemplateManagerException If an error occurred while deleting the notification template. + * @throws NotificationTemplateManagerException If an error occurred while resetting the notification template type. */ - default void deleteCustomizedNotificationTemplates(String notificationChannel, String templateType, - String tenantDomain) + default void resetNotificationTemplateType(String notificationChannel, String templateType, String tenantDomain) throws NotificationTemplateManagerException { }