google-nomulus/java/google/registry/model
nickfelt 91c2558feb Make FlowRunner log ICANN activity report field name
As part of b/36599833, this makes FlowRunner log the appropriate ICANN activity
report field name for each flow it runs as part of a structured JSON log
statement which can be parsed to generate ICANN activity reports (under the key
"icannActivityReportField").

In order to support this, we introduce an annotation for Flow classes called
@ReportingSpec and a corresponding enum of values for this annotation, which is
IcannReportingTypes.ActivityReportField, that stores the mapping of constant
enum values to field names.

The mapping from flows to fields is fairly obvious, with three exceptions:

 - Application flows are all accounted under domains, since applications are
   technically just deferred domain creates within the EPP protocol
 - ClaimsCheckFlow is counted as a domain check
 - DomainAllocateFlow is counted as a domain create

In addition, I've added tests to all the corresponding flows that we are
indeed logging what we expect.

We'll also need to log the TLD for this to be useful, but I'm doing that in a
follow-up CL.

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151283411
2017-03-27 13:32:57 -04:00
..
annotations Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
billing Mark registrar credit model classes as incomplete 2017-03-27 13:15:06 -04:00
common Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
contact Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
domain Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
eppcommon Use Immutable types for static final fields 2017-03-07 13:50:53 -05:00
eppinput Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
eppoutput Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
export Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
host Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
index Use Immutable types for static final fields 2017-03-07 13:50:53 -05:00
mark Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ofy Save bloom filters for premium list entries 2017-02-17 12:15:02 -05:00
poll Remove unused method from PollMessage.OneTime 2017-03-21 15:20:01 -04:00
pricing Return all applicable reserved list entries associated with a label 2017-03-13 11:22:56 -04:00
rde Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
registrar Remove unnecessary semicolon after one-line constructor 2017-03-27 13:13:30 -04:00
registry Remove UNRESERVED as a reservation type 2017-03-27 13:31:33 -04:00
reporting Make FlowRunner log ICANN activity report field name 2017-03-27 13:32:57 -04:00
server Rewrite ServerSecret caching and accessor logic 2017-03-07 13:30:18 -05:00
smd Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
tmch Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
transfer Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
translators Capitalize the Bloom in Bloom filter in comments 2017-03-21 15:30:30 -04:00
BackupGroupRoot.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
BUILD Define Stackdriver metrics for premium and reserved lists 2017-03-21 14:55:00 -04:00
Buildable.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
CacheUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
CreateAutoTimestamp.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
EntityClasses.java Add Cloud KMS based secret storage 2017-02-17 12:22:12 -05:00
EppResource.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
EppResourceUtils.java Remove the ofy().load() inside of HostResource.cloneProjectedAtTime 2017-03-13 11:22:55 -04:00
ImmutableObject.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
Jsonifiable.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
JsonMapBuilder.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
ModelUtils.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
package-info.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00
SchemaVersion.java Replace deprecated "assignableFrom" with Guava 20 "subtypeOf" 2017-02-02 16:51:43 -05:00
UpdateAutoTimestamp.java Refer to Datastore everywhere correctly by its capitalized form 2017-02-17 12:12:12 -05:00