Skip to content

Commit

Permalink
Deprecate NotificationTemplateManager methods without resolve param.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaura committed Dec 6, 2024
1 parent 2abe167 commit 9588b8d
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -119,12 +119,15 @@ default void resetNotificationTemplateType(String notificationChannel, String te
}

/**
* @deprecated Use {@link #getAllNotificationTemplates(String, String, boolean)} instead.
* <p>
* 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<NotificationTemplate> getAllNotificationTemplates(String notificationChannel, String tenantDomain)
throws NotificationTemplateManagerException {

Expand Down Expand Up @@ -179,6 +182,8 @@ default List<NotificationTemplate> getNotificationTemplatesOfType(String notific
}

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

/**
* @deprecated Use {@link #getNotificationTemplate(String, String, String, String, String, boolean)} instead.
* <p>
* 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).
Expand All @@ -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 {
Expand Down

0 comments on commit 9588b8d

Please sign in to comment.