Package net.atthegate.server.service
Class EmailService
java.lang.Object
net.atthegate.server.service.EmailService
Created by ivbar on 27.05.16.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
addToQueue
(String title, String logoURL, String fieldKey, String email) static com.sun.jersey.api.client.ClientResponse
static void
sendHtmlEmail
(String email, String title, String text) static void
sendHtmlFormattedEmail
(String email, String title, String text) static void
sendHtmlFormattedEmail
(List<String> emails, String title, String text) static int
static String
sendIotScheduledReportEmail
(List<IotEntryReport> list, IotReportSetting report, String customSubject, List<String> emails, String accounEmail) static String
sendReportEmail
(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel, String customSubject, List<String> emails) Generate and send HTML report to specified email addressstatic String
sendScheduledReportEmail
(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel, String customSubject, List<String> emails) Generate and send HTML report to specified email addressstatic String
sendVisitorsEmail
(List<Visitor> list, Visitor category, String customSubject, List<String> emails, AtTheGateAppUser user)
-
Constructor Details
-
EmailService
public EmailService()
-
-
Method Details
-
addToQueue
-
sendEmailPlain
-
sendHtmlFormattedEmail
-
sendHtmlFormattedEmail
-
sendHtmlEmail
public static void sendHtmlEmail(String email, String title, String text) throws freemarker.template.TemplateException - Throws:
freemarker.template.TemplateException
-
sendReportEmail
public static String sendReportEmail(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel, String customSubject, List<String> emails) Generate and send HTML report to specified email address- Parameters:
list
- ListemailReportRequestModel
- EmailReportRequestModel
-
sendScheduledReportEmail
public static String sendScheduledReportEmail(List<AtgEntry> list, EmailReportRequestModel emailReportRequestModel, String customSubject, List<String> emails) Generate and send HTML report to specified email address- Parameters:
list
- ListemailReportRequestModel
- EmailReportRequestModel
-
sendIotScheduledReportEmail
public static String sendIotScheduledReportEmail(List<IotEntryReport> list, IotReportSetting report, String customSubject, List<String> emails, String accounEmail) -
sendInvitationEmail
-
sendVisitorsEmail
-