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 { }