Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce application specific notification templates #811

Merged
merged 2 commits into from
Mar 6, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,
Avarjana marked this conversation as resolved.
Show resolved Hide resolved
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 {

}
}
Loading