mirror of
https://github.com/google/nomulus.git
synced 2025-05-12 22:38:16 +02:00
Add diff logic and send daily Spec11 emails with new threats
For each registrar, the daily email will only include threats that did not appear in the prior run's email. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=228889972
This commit is contained in:
parent
a80a44cd06
commit
f017798162
15 changed files with 529 additions and 160 deletions
|
@ -900,14 +900,25 @@ public final class RegistryConfig {
|
|||
}
|
||||
|
||||
/**
|
||||
* Returns the template for the body of the spec 11 email to the registrars.
|
||||
* Returns the name of the registry, for use in spec 11 emails.
|
||||
*
|
||||
* @see google.registry.reporting.spec11.Spec11EmailUtils
|
||||
*/
|
||||
@Provides
|
||||
@Config("spec11EmailBodyTemplate")
|
||||
public static String provideSpec11EmailBodyTemplate(RegistryConfigSettings config) {
|
||||
return config.registryPolicy.spec11EmailBodyTemplate;
|
||||
@Config("registryName")
|
||||
public static String provideRegistryName(RegistryConfigSettings config) {
|
||||
return config.registryPolicy.registryName;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a list of resources we send to registrars when informing them of spec 11 threats.
|
||||
*
|
||||
* @see google.registry.reporting.spec11.Spec11EmailUtils
|
||||
*/
|
||||
@Provides
|
||||
@Config("spec11WebResources")
|
||||
public static ImmutableList<String> provideSpec11WebResources(RegistryConfigSettings config) {
|
||||
return ImmutableList.copyOf(config.registryPolicy.spec11WebResources);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue