Package google.registry.batch
Class SendExpiringCertificateNotificationEmailAction
- java.lang.Object
-
- google.registry.batch.SendExpiringCertificateNotificationEmailAction
-
- All Implemented Interfaces:
java.lang.Runnable
public class SendExpiringCertificateNotificationEmailAction extends java.lang.Object implements java.lang.Runnable
An action that sends notification emails to registrars whose certificates are expiring soon.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
SendExpiringCertificateNotificationEmailAction.CertificateType
Certificate types for X509Certificate.static class
SendExpiringCertificateNotificationEmailAction.RegistrarInfo
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PATH
protected static org.joda.time.Duration
UPDATE_TIME_OFFSET
Used as an offset when storing the last notification email sent date.
-
Constructor Summary
Constructors Constructor Description SendExpiringCertificateNotificationEmailAction(java.lang.String expirationWarningEmailBodyText, java.lang.String expirationWarningEmailSubjectText, javax.mail.internet.InternetAddress gSuiteOutgoingEmailAddress, SendEmailService sendEmailService, CertificateChecker certificateChecker, Response response)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
-
-
-
Field Detail
-
PATH
public static final java.lang.String PATH
- See Also:
- Constant Field Values
-
UPDATE_TIME_OFFSET
protected static final org.joda.time.Duration UPDATE_TIME_OFFSET
Used as an offset when storing the last notification email sent date.This is used to handle edges cases when the update happens in between the day switch. For instance,if the job starts at 2:00 am every day and it finishes at 2:03 of the same day, then next day at 2am, the date difference will be less than a day, which will lead to the date difference between two successive email sent date being the expected email interval days + 1;
-
-
Constructor Detail
-
SendExpiringCertificateNotificationEmailAction
@Inject public SendExpiringCertificateNotificationEmailAction(@Config("expirationWarningEmailBodyText") java.lang.String expirationWarningEmailBodyText, @Config("expirationWarningEmailSubjectText") java.lang.String expirationWarningEmailSubjectText, @Config("gSuiteOutgoingEmailAddress") javax.mail.internet.InternetAddress gSuiteOutgoingEmailAddress, SendEmailService sendEmailService, CertificateChecker certificateChecker, Response response)
-
-