Skip to content

Commit

Permalink
Deprecate old isEmailTemplateExists method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhaura committed Dec 10, 2024
1 parent c081bc3 commit 6d3e859
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,8 @@ default EmailTemplate getEmailTemplate(String templateType, String locale, Strin
}

/**
* @deprecated Use {@link #isEmailTemplateExists(String, String, String, String, boolean)} instead.
* <p>
* Check whether the given email template type exists for the application.
*
* @param templateTypeDisplayName Display name of the template type.
Expand All @@ -304,6 +306,7 @@ default EmailTemplate getEmailTemplate(String templateType, String locale, Strin
* @return True if the template type exists, false otherwise.
* @throws I18nEmailMgtException If an error occurred while checking the existence of the email template.
*/
@Deprecated
default boolean isEmailTemplateExists(String templateTypeDisplayName, String locale,
String tenantDomain, String applicationUuid) throws I18nEmailMgtException {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -523,6 +523,7 @@ public boolean isEmailTemplateExists(String templateTypeDisplayName, String loca
return isEmailTemplateExists(templateTypeDisplayName, locale, tenantDomain, null);
}

@Deprecated
@Override
public boolean isEmailTemplateExists(String templateTypeDisplayName, String locale,
String tenantDomain, String applicationUuid) throws I18nEmailMgtException {
Expand Down

0 comments on commit 6d3e859

Please sign in to comment.