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 e410da192..a4045638d 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 @@ -119,12 +119,15 @@ default void resetNotificationTemplateType(String notificationChannel, String te } /** + * @deprecated Use {@link #getAllNotificationTemplates(String, String, boolean)} instead. + *

* Get all available notification template types in the tenant for a given notification channel. * * @param notificationChannel Notification channel (Eg: SMS, EMAIL). * @param tenantDomain Tenant domain. * @throws NotificationTemplateManagerException If an error occurred while getting the notification template types. */ + @Deprecated default List getAllNotificationTemplates(String notificationChannel, String tenantDomain) throws NotificationTemplateManagerException { @@ -179,6 +182,8 @@ default List getNotificationTemplatesOfType(String notific } /** + * @deprecated Use {@link #getNotificationTemplatesOfType(String, String, String, String, boolean)} instead. + *

* Get all notification templates of the given type. * * @param notificationChannel Notification channel (Eg: SMS, EMAIL). @@ -188,6 +193,7 @@ default List getNotificationTemplatesOfType(String notific * @return List of notification templates. * @throws NotificationTemplateManagerException If an error occurred while getting the notification templates. */ + @Deprecated default List getNotificationTemplatesOfType(String notificationChannel, String templateDisplayName, String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException { @@ -249,6 +255,8 @@ default NotificationTemplate getNotificationTemplate(String notificationChannel, } /** + * @deprecated Use {@link #getNotificationTemplate(String, String, String, String, String, boolean)} instead. + *

* 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). @@ -259,6 +267,7 @@ default NotificationTemplate getNotificationTemplate(String notificationChannel, * @return Return {@link org.wso2.carbon.identity.governance.model.NotificationTemplate} object. * @throws NotificationTemplateManagerException If an error occurred while getting the notification template. */ + @Deprecated default NotificationTemplate getNotificationTemplate(String notificationChannel, String templateType, String locale, String tenantDomain, String applicationUuid) throws NotificationTemplateManagerException {