mirror of
https://github.com/google/nomulus.git
synced 2025-05-14 00:17:20 +02:00
Decentralize how registry phase checks are done in flows
Very few flows actually check the phase. Push the checks down to the leaf flows so that we can remove the inherited code from ResourceFlow and replace it with utility methods. In the process, document and test two places that throw the exception but did not previously test it. This introduces a temporary hack in BaseDomainCreateFlow that does something specific for DomainApplicationCreateFlow. It will go away literally tomorrow when I flatten that flow. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=135480538
This commit is contained in:
parent
aaa84d6ec6
commit
a09d48a4a5
18 changed files with 166 additions and 129 deletions
|
@ -85,7 +85,7 @@ public class DomainApplicationIndex extends BackupGroupRoot {
|
|||
* Returns an iterable of all DomainApplications for the given fully qualified domain name that
|
||||
* do not have a deletion time before the supplied DateTime.
|
||||
*/
|
||||
public static Iterable<DomainApplication> loadActiveApplicationsByDomainName(
|
||||
public static ImmutableSet<DomainApplication> loadActiveApplicationsByDomainName(
|
||||
String fullyQualifiedDomainName, DateTime now) {
|
||||
DomainApplicationIndex index = load(fullyQualifiedDomainName);
|
||||
if (index == null) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue