mirror of
https://github.com/google/nomulus.git
synced 2025-08-15 05:54:06 +02:00
Change all uses of legacy sharedFields to use EppResource fields
This is the penultimate step of migrating away from sharedFields. The next step is to remove them entirely. ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=116364048
This commit is contained in:
parent
675ec8f086
commit
363c812d10
7 changed files with 11 additions and 34 deletions
|
@ -28,7 +28,6 @@ import com.google.common.collect.ImmutableSet;
|
|||
import com.google.domain.registry.config.RegistryEnvironment;
|
||||
import com.google.domain.registry.model.EppResource.Builder;
|
||||
import com.google.domain.registry.model.EppResource.ForeignKeyedEppResource;
|
||||
import com.google.domain.registry.model.EppResource.SharedFields;
|
||||
import com.google.domain.registry.model.contact.ContactResource;
|
||||
import com.google.domain.registry.model.domain.DomainBase;
|
||||
import com.google.domain.registry.model.domain.ReferenceUnion;
|
||||
|
@ -179,7 +178,7 @@ public final class EppResourceUtils {
|
|||
}
|
||||
|
||||
/**
|
||||
* Loads resources that match some filter and that have {@link SharedFields#deletionTime} that is
|
||||
* Loads resources that match some filter and that have {@link EppResource#deletionTime} that is
|
||||
* not before "now".
|
||||
*
|
||||
* <p>This is an eventually consistent query.
|
||||
|
@ -194,7 +193,7 @@ public final class EppResourceUtils {
|
|||
return transform(
|
||||
ofy().load().type(clazz)
|
||||
.filter(filterDefinition, filterValue)
|
||||
.filter("sharedFields.deletionTime >", now.toDate()),
|
||||
.filter("deletionTime >", now.toDate()),
|
||||
EppResourceUtils.<T>transformAtTime(now));
|
||||
}
|
||||
|
||||
|
@ -379,7 +378,7 @@ public final class EppResourceUtils {
|
|||
? "allContacts.contactId.linked"
|
||||
: "nameservers.linked",
|
||||
ref)
|
||||
.filter("sharedFields.deletionTime >", now)
|
||||
.filter("deletionTime >", now)
|
||||
.limit(limit)
|
||||
.keys()
|
||||
.list();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue