google-nomulus/java/com/google/domain/registry/model
nickfelt 9786e6732f Make GracePeriod OneTime vs Recurring logic explicit
This CL cleans up some old crufy logic in GracePeriod that overloaded
methods to accept either OneTime or Recurring billing events refs,
despite storing them in separate fields in the entity (since
BillingEvent is not a polymorphic superclass, just a Java-only one,
you can't store them as refs to BillingEvent).

That overloading was ultimately only there as a convenience/hack from
when we added Recurring events and didn't want to go back and change
everything.  It obfuscates what's really going on, requires extra
casting/loss of type-safety, and relies on indirect signals (e.g. the
grace period type being AUTO_RENEW) to guess what the right billing
event type is.  That latter aspect will likely no longer work in a
monthly billing world, and was brittle in any case.

A coming CL will rip the same logic out of Cancellation.
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=117164286
2016-03-16 21:20:25 -04:00
..
annotations Import code from internal repository to git 2016-03-01 17:59:16 -05:00
billing Make GracePeriod OneTime vs Recurring logic explicit 2016-03-16 21:20:25 -04:00
common Import code from internal repository to git 2016-03-01 17:59:16 -05:00
contact Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
domain Make GracePeriod OneTime vs Recurring logic explicit 2016-03-16 21:20:25 -04:00
eppcommon Import code from internal repository to git 2016-03-01 17:59:16 -05:00
eppinput Import code from internal repository to git 2016-03-01 17:59:16 -05:00
eppoutput Import code from internal repository to git 2016-03-01 17:59:16 -05:00
export Import code from internal repository to git 2016-03-01 17:59:16 -05:00
host Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
index Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
mark Import code from internal repository to git 2016-03-01 17:59:16 -05:00
ofy Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
poll Import code from internal repository to git 2016-03-01 17:59:16 -05:00
rde Import code from internal repository to git 2016-03-01 17:59:16 -05:00
registrar Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
registry Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
reporting Import code from internal repository to git 2016-03-01 17:59:16 -05:00
server Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
smd Import code from internal repository to git 2016-03-01 17:59:16 -05:00
tmch Add a 1-hour expiration to all Objectify memcache uses 2016-03-04 16:19:40 -05:00
transfer Import code from internal repository to git 2016-03-01 17:59:16 -05:00
translators Import code from internal repository to git 2016-03-01 17:59:16 -05:00
AbstractFieldExposer.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
BackupGroupRoot.java Change all uses of legacy sharedFields to use EppResource fields 2016-03-04 16:24:19 -05:00
BUILD Give core registry libraries public visibility 2016-03-04 16:20:50 -05:00
Buildable.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
CreateAutoTimestamp.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
EntityClasses.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
EppResource.java Change all uses of legacy sharedFields to use EppResource fields 2016-03-04 16:24:19 -05:00
EppResourceUtils.java Change all uses of legacy sharedFields to use EppResource fields 2016-03-04 16:24:19 -05:00
generate_field_exposer.sh Import code from internal repository to git 2016-03-01 17:59:16 -05:00
generate_field_exposer_registry.sh Import code from internal repository to git 2016-03-01 17:59:16 -05:00
ImmutableObject.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
Jsonifiable.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
JsonMapBuilder.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
ModelUtils.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
package-info.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
RoidSuffixes.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
SchemaVersion.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00
UpdateAutoTimestamp.java Import code from internal repository to git 2016-03-01 17:59:16 -05:00