Skip to content

Commit

Permalink
Fix style errors and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
cziegeler committed Sep 4, 2024
1 parent a1db215 commit eb9a4de
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ The format is based on [Keep a Changelog](http://keepachangelog.com)

### Changed

- #3421 - Remove dependency on Apache Commons Lang 2 for Cloud Service
- #3420 - Redirect Map Manager - enable Redirect Map Manager in AEM CS (would require a specific - not public yet - AEM CS release version, TBA)

## 6.6.4 - 2024-08-14
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* ACS AEM Commons
*
* Copyright (C) 2024 Adobe
* Copyright (C) 2013 - 2024 Adobe
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand All @@ -27,8 +27,22 @@

import com.day.cq.commons.mail.MailTemplate;

/**
* Abstraction to allow different methods to be used between Cloud Service and on prem.
*/
public interface MailTemplateManager {

/**
* Get the email from the template
* @param <T> The email type
* @param template The email template
* @param params Optional parameters used inside the template
* @param mailType The email type
* @return The email object
* @throws IOException If an error occurs handling the text template.
* @throws MessagingException If an error occurs during building the email message.
* @throws EmailException If an error occurs during building the email.
*/
<T extends Email> T getEmail(MailTemplate template, final Map<String, String> params, Class<T> mailType)
throws IOException, EmailException, MessagingException;
}

0 comments on commit eb9a4de

Please sign in to comment.