google-nomulus/java/google/registry/flows/domain
nickfelt ec4ffe53f0 Clean up flow validation of registration periods
This tidies up some logic in the flows that checks registration periods, so that in the create flows we're consistently checking that the requested number of years is <= 10 right away (DomainCreateFlow was deferring it until very late, including after custom logic ran, for no good reason I can see).

It also refactors the validateRegistrationPeriod() overload used by DomainRenewFlow to take the newExpirationTime directly, and just check to ensure that it's >= to now.plusYears(10) (with leap-safety just in case).  This is a much simpler check than before, which recomputed the newExpirationTime separately from the logic used by DomainRenewFlow itself (always dangerous) and did a more convoluted and unnecessary comparison involving extendRegistrationWithCap().

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=151002960
2017-03-27 13:04:19 -04:00
..
ClaimsCheckFlow.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainAllocateFlow.java Clean up flow validation of registration periods 2017-03-27 13:04:19 -04:00
DomainApplicationCreateFlow.java Clean up flow validation of registration periods 2017-03-27 13:04:19 -04:00
DomainApplicationDeleteFlow.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainApplicationInfoFlow.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainApplicationUpdateFlow.java Add nameserver validation in domain update related flows 2017-03-27 12:58:19 -04:00
DomainCheckFlow.java Restrict domain transfer pricing to 1 year 2017-03-21 15:33:29 -04:00
DomainCreateFlow.java Clean up flow validation of registration periods 2017-03-27 13:04:19 -04:00
DomainDeleteFlow.java Add test and commentary for "phantom autorenew" in pendingDelete 2017-03-07 13:37:40 -05:00
DomainFlowTmchUtils.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainFlowUtils.java Clean up flow validation of registration periods 2017-03-27 13:04:19 -04:00
DomainInfoFlow.java Restrict domain transfer pricing to 1 year 2017-03-21 15:33:29 -04:00
DomainPricingLogic.java Restrict domain transfer pricing to 1 year 2017-03-21 15:33:29 -04:00
DomainRenewFlow.java Clean up flow validation of registration periods 2017-03-27 13:04:19 -04:00
DomainRestoreRequestFlow.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00
DomainTransferApproveFlow.java Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
DomainTransferCancelFlow.java Standardize usage of some transfer flow verification helpers 2017-03-21 15:18:33 -04:00
DomainTransferQueryFlow.java Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
DomainTransferRejectFlow.java Refactor common domain transfer logic into a utility class 2017-02-08 17:42:51 -05:00
DomainTransferRequestFlow.java Remove obsolete TransferData.extendedRegistrationYears 2017-03-21 15:35:00 -04:00
DomainTransferUtils.java Remove straggler references to extended registration years 2017-03-27 12:59:48 -04:00
DomainUpdateFlow.java Add nameserver validation in domain update related flows 2017-03-27 12:58:19 -04:00
FeesAndCredits.java Update copyright year on all license headers 2017-02-02 16:27:22 -05:00