-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from campos20/feature/email-to-in-categories
Allow customization of email receiver
- Loading branch information
Showing
14 changed files
with
1,017 additions
and
930 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 9 additions & 5 deletions
14
src/main/java/org/worldcubeassociation/dbsanitycheck/model/Category.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,21 @@ | ||
package org.worldcubeassociation.dbsanitycheck.model; | ||
|
||
import lombok.Data; | ||
|
||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.Id; | ||
import javax.persistence.Table; | ||
|
||
import lombok.Data; | ||
|
||
@Data | ||
@Entity | ||
@Table(name = "sanity_check_categories") | ||
public class Category { | ||
@Id | ||
private Integer id; | ||
@Id | ||
private Integer id; | ||
|
||
private String name; | ||
|
||
private String name; | ||
@Column(name = "email_to") | ||
private String emailTo; | ||
} |
11 changes: 5 additions & 6 deletions
11
src/main/java/org/worldcubeassociation/dbsanitycheck/service/EmailService.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
package org.worldcubeassociation.dbsanitycheck.service; | ||
|
||
import java.util.List; | ||
|
||
import javax.mail.MessagingException; | ||
|
||
import org.worldcubeassociation.dbsanitycheck.bean.AnalysisBean; | ||
import org.worldcubeassociation.dbsanitycheck.bean.SanityCheckWithErrorBean; | ||
|
||
import java.util.List; | ||
import javax.mail.MessagingException; | ||
|
||
@FunctionalInterface | ||
public interface EmailService { | ||
void sendEmail(List<AnalysisBean> analysisResult, List<SanityCheckWithErrorBean> queriesWithError) | ||
throws MessagingException; | ||
void sendEmail(String emailTo, List<AnalysisBean> analysisResult, List<SanityCheckWithErrorBean> queriesWithError) | ||
throws MessagingException; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.