mirror of
https://github.com/google/nomulus.git
synced 2025-04-30 12:07:51 +02:00
Remove ofy embedded classes (#1778)
This commit is contained in:
parent
a38010dfec
commit
7693768d79
29 changed files with 36 additions and 306 deletions
|
@ -140,6 +140,7 @@ public abstract class EppResource extends BackupGroupRoot implements Buildable {
|
||||||
DateTime lastEppUpdateTime;
|
DateTime lastEppUpdateTime;
|
||||||
|
|
||||||
/** Status values associated with this resource. */
|
/** Status values associated with this resource. */
|
||||||
|
@Ignore
|
||||||
@Column(name = "statuses")
|
@Column(name = "statuses")
|
||||||
// TODO(b/177567432): rename to "statuses" once we're off datastore.
|
// TODO(b/177567432): rename to "statuses" once we're off datastore.
|
||||||
Set<StatusValue> status;
|
Set<StatusValue> status;
|
||||||
|
|
|
@ -25,7 +25,6 @@ import static org.joda.time.DateTimeZone.UTC;
|
||||||
import com.google.common.base.Splitter;
|
import com.google.common.base.Splitter;
|
||||||
import com.google.common.collect.ContiguousSet;
|
import com.google.common.collect.ContiguousSet;
|
||||||
import com.google.common.collect.Range;
|
import com.google.common.collect.Range;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Index;
|
import com.googlecode.objectify.annotation.Index;
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
|
@ -44,7 +43,6 @@ import org.joda.time.DateTime;
|
||||||
* allows it to be embeddable with no translation needed and also delays parsing of the string on
|
* allows it to be embeddable with no translation needed and also delays parsing of the string on
|
||||||
* load until it's actually needed.
|
* load until it's actually needed.
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public class TimeOfYear extends ImmutableObject implements UnsafeSerializable {
|
public class TimeOfYear extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
|
|
|
@ -14,13 +14,12 @@
|
||||||
|
|
||||||
package google.registry.model.contact;
|
package google.registry.model.contact;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.eppcommon.AuthInfo;
|
import google.registry.model.eppcommon.AuthInfo;
|
||||||
|
import javax.persistence.Embeddable;
|
||||||
import javax.xml.bind.annotation.XmlType;
|
import javax.xml.bind.annotation.XmlType;
|
||||||
|
|
||||||
/** A version of authInfo specifically for contacts. */
|
/** A version of authInfo specifically for contacts. */
|
||||||
@Embed
|
@Embeddable
|
||||||
@javax.persistence.Embeddable
|
|
||||||
@XmlType(namespace = "urn:ietf:params:xml:ns:contact-1.0")
|
@XmlType(namespace = "urn:ietf:params:xml:ns:contact-1.0")
|
||||||
public class ContactAuthInfo extends AuthInfo {
|
public class ContactAuthInfo extends AuthInfo {
|
||||||
public static ContactAuthInfo create(PasswordAuth pw) {
|
public static ContactAuthInfo create(PasswordAuth pw) {
|
||||||
|
|
|
@ -129,7 +129,7 @@ public class ContactBase extends EppResource implements ResourceWithTransferData
|
||||||
@Index String searchName;
|
@Index String searchName;
|
||||||
|
|
||||||
/** Contact’s voice number. Personal info; cleared by {@link Contact.Builder#wipeOut}. */
|
/** Contact’s voice number. Personal info; cleared by {@link Contact.Builder#wipeOut}. */
|
||||||
@IgnoreSave(IfNull.class)
|
@Ignore
|
||||||
@Embedded
|
@Embedded
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(name = "phoneNumber", column = @Column(name = "voice_phone_number")),
|
@AttributeOverride(name = "phoneNumber", column = @Column(name = "voice_phone_number")),
|
||||||
|
@ -138,7 +138,7 @@ public class ContactBase extends EppResource implements ResourceWithTransferData
|
||||||
ContactPhoneNumber voice;
|
ContactPhoneNumber voice;
|
||||||
|
|
||||||
/** Contact’s fax number. Personal info; cleared by {@link Contact.Builder#wipeOut}. */
|
/** Contact’s fax number. Personal info; cleared by {@link Contact.Builder#wipeOut}. */
|
||||||
@IgnoreSave(IfNull.class)
|
@Ignore
|
||||||
@Embedded
|
@Embedded
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(name = "phoneNumber", column = @Column(name = "fax_phone_number")),
|
@AttributeOverride(name = "phoneNumber", column = @Column(name = "fax_phone_number")),
|
||||||
|
@ -151,6 +151,7 @@ public class ContactBase extends EppResource implements ResourceWithTransferData
|
||||||
String email;
|
String email;
|
||||||
|
|
||||||
/** Authorization info (aka transfer secret) of the contact. */
|
/** Authorization info (aka transfer secret) of the contact. */
|
||||||
|
@Ignore
|
||||||
@Embedded
|
@Embedded
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(name = "pw.value", column = @Column(name = "auth_info_value")),
|
@AttributeOverride(name = "pw.value", column = @Column(name = "auth_info_value")),
|
||||||
|
@ -159,7 +160,7 @@ public class ContactBase extends EppResource implements ResourceWithTransferData
|
||||||
ContactAuthInfo authInfo;
|
ContactAuthInfo authInfo;
|
||||||
|
|
||||||
/** Data about any pending or past transfers on this contact. */
|
/** Data about any pending or past transfers on this contact. */
|
||||||
ContactTransferData transferData;
|
@Ignore ContactTransferData transferData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The time that this resource was last transferred.
|
* The time that this resource was last transferred.
|
||||||
|
@ -172,6 +173,7 @@ public class ContactBase extends EppResource implements ResourceWithTransferData
|
||||||
// the wipeOut() function, so that data is not kept around for deleted contacts.
|
// the wipeOut() function, so that data is not kept around for deleted contacts.
|
||||||
|
|
||||||
/** Disclosure policy. */
|
/** Disclosure policy. */
|
||||||
|
@Ignore
|
||||||
@Embedded
|
@Embedded
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(name = "name", column = @Column(name = "disclose_types_name")),
|
@AttributeOverride(name = "name", column = @Column(name = "disclose_types_name")),
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
package google.registry.model.contact;
|
package google.registry.model.contact;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.eppcommon.PhoneNumber;
|
import google.registry.model.eppcommon.PhoneNumber;
|
||||||
import javax.persistence.Embeddable;
|
import javax.persistence.Embeddable;
|
||||||
|
|
||||||
|
@ -27,7 +26,6 @@ import javax.persistence.Embeddable;
|
||||||
*
|
*
|
||||||
* @see Contact
|
* @see Contact
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public class ContactPhoneNumber extends PhoneNumber {
|
public class ContactPhoneNumber extends PhoneNumber {
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ package google.registry.model.contact;
|
||||||
import static google.registry.util.CollectionUtils.nullToEmptyImmutableCopy;
|
import static google.registry.util.CollectionUtils.nullToEmptyImmutableCopy;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableList;
|
import com.google.common.collect.ImmutableList;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.Buildable;
|
import google.registry.model.Buildable;
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
|
@ -30,7 +29,6 @@ import javax.xml.bind.annotation.XmlAttribute;
|
||||||
import javax.xml.bind.annotation.XmlType;
|
import javax.xml.bind.annotation.XmlType;
|
||||||
|
|
||||||
/** The "discloseType" from <a href="http://tools.ietf.org/html/rfc5733">RFC5733</a>. */
|
/** The "discloseType" from <a href="http://tools.ietf.org/html/rfc5733">RFC5733</a>. */
|
||||||
@Embed
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
@XmlType(propOrder = {"name", "org", "addr", "voice", "fax", "email"})
|
@XmlType(propOrder = {"name", "org", "addr", "voice", "fax", "email"})
|
||||||
public class Disclose extends ImmutableObject implements UnsafeSerializable {
|
public class Disclose extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
@ -79,7 +77,6 @@ public class Disclose extends ImmutableObject implements UnsafeSerializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The "intLocType" from <a href="http://tools.ietf.org/html/rfc5733">RFC5733</a>. */
|
/** The "intLocType" from <a href="http://tools.ietf.org/html/rfc5733">RFC5733</a>. */
|
||||||
@Embed
|
|
||||||
public static class PostalInfoChoice extends ImmutableObject implements Serializable {
|
public static class PostalInfoChoice extends ImmutableObject implements Serializable {
|
||||||
@XmlAttribute
|
@XmlAttribute
|
||||||
PostalInfo.Type type;
|
PostalInfo.Type type;
|
||||||
|
|
|
@ -17,7 +17,6 @@ package google.registry.model.domain;
|
||||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||||
|
|
||||||
import com.googlecode.objectify.Key;
|
import com.googlecode.objectify.Key;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Ignore;
|
import com.googlecode.objectify.annotation.Ignore;
|
||||||
import com.googlecode.objectify.annotation.Index;
|
import com.googlecode.objectify.annotation.Index;
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
|
@ -45,7 +44,6 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||||
* @see <a href="http://tools.ietf.org/html/rfc5731#section-2.2">RFC 5731 - EPP Domain Name Mapping
|
* @see <a href="http://tools.ietf.org/html/rfc5731#section-2.2">RFC 5731 - EPP Domain Name Mapping
|
||||||
* - Contact and Client Identifiers</a>
|
* - Contact and Client Identifiers</a>
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public class DesignatedContact extends ImmutableObject implements UnsafeSerializable {
|
public class DesignatedContact extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
|
|
|
@ -14,12 +14,11 @@
|
||||||
|
|
||||||
package google.registry.model.domain;
|
package google.registry.model.domain;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.eppcommon.AuthInfo;
|
import google.registry.model.eppcommon.AuthInfo;
|
||||||
|
import javax.persistence.Embeddable;
|
||||||
|
|
||||||
/** A version of authInfo specifically for domains. */
|
/** A version of authInfo specifically for domains. */
|
||||||
@Embed
|
@Embeddable
|
||||||
@javax.persistence.Embeddable
|
|
||||||
public class DomainAuthInfo extends AuthInfo {
|
public class DomainAuthInfo extends AuthInfo {
|
||||||
public static DomainAuthInfo create(PasswordAuth pw) {
|
public static DomainAuthInfo create(PasswordAuth pw) {
|
||||||
DomainAuthInfo instance = new DomainAuthInfo();
|
DomainAuthInfo instance = new DomainAuthInfo();
|
||||||
|
|
|
@ -136,6 +136,7 @@ public class DomainBase extends EppResource
|
||||||
VKey<Contact> registrantContact;
|
VKey<Contact> registrantContact;
|
||||||
|
|
||||||
/** Authorization info (aka transfer secret) of the domain. */
|
/** Authorization info (aka transfer secret) of the domain. */
|
||||||
|
@Ignore
|
||||||
@Embedded
|
@Embedded
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(name = "pw.value", column = @Column(name = "auth_info_value")),
|
@AttributeOverride(name = "pw.value", column = @Column(name = "auth_info_value")),
|
||||||
|
@ -144,13 +145,14 @@ public class DomainBase extends EppResource
|
||||||
DomainAuthInfo authInfo;
|
DomainAuthInfo authInfo;
|
||||||
|
|
||||||
/** Data used to construct DS records for this domain. */
|
/** Data used to construct DS records for this domain. */
|
||||||
@Transient Set<DelegationSignerData> dsData;
|
@Ignore @Transient Set<DelegationSignerData> dsData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The claims notice supplied when this domain was created, if there was one.
|
* The claims notice supplied when this domain was created, if there was one.
|
||||||
*
|
*
|
||||||
* <p>It's {@literal @}XmlTransient because it's not returned in an info response.
|
* <p>It's {@literal @}XmlTransient because it's not returned in an info response.
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
@Embedded
|
@Embedded
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(name = "noticeId.tcnId", column = @Column(name = "launch_notice_tcn_id")),
|
@AttributeOverride(name = "noticeId.tcnId", column = @Column(name = "launch_notice_tcn_id")),
|
||||||
|
@ -214,7 +216,7 @@ public class DomainBase extends EppResource
|
||||||
VKey<PollMessage.Autorenew> autorenewPollMessage;
|
VKey<PollMessage.Autorenew> autorenewPollMessage;
|
||||||
|
|
||||||
/** The unexpired grace periods for this domain (some of which may not be active yet). */
|
/** The unexpired grace periods for this domain (some of which may not be active yet). */
|
||||||
@Transient Set<GracePeriod> gracePeriods;
|
@Ignore @Transient Set<GracePeriod> gracePeriods;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The id of the signed mark that was used to create this domain in sunrise.
|
* The id of the signed mark that was used to create this domain in sunrise.
|
||||||
|
@ -225,7 +227,7 @@ public class DomainBase extends EppResource
|
||||||
String smdId;
|
String smdId;
|
||||||
|
|
||||||
/** Data about any pending or past transfers on this domain. */
|
/** Data about any pending or past transfers on this domain. */
|
||||||
DomainTransferData transferData;
|
@Ignore DomainTransferData transferData;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The time that this resource was last transferred.
|
* The time that this resource was last transferred.
|
||||||
|
|
|
@ -20,6 +20,7 @@ import static google.registry.util.CollectionUtils.nullToEmptyImmutableCopy;
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.googlecode.objectify.Key;
|
import com.googlecode.objectify.Key;
|
||||||
import com.googlecode.objectify.annotation.EntitySubclass;
|
import com.googlecode.objectify.annotation.EntitySubclass;
|
||||||
|
import com.googlecode.objectify.annotation.Ignore;
|
||||||
import google.registry.model.EppResource;
|
import google.registry.model.EppResource;
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.domain.DomainHistory.DomainHistoryId;
|
import google.registry.model.domain.DomainHistory.DomainHistoryId;
|
||||||
|
@ -133,6 +134,7 @@ public class DomainHistory extends HistoryEntry {
|
||||||
updatable = false)
|
updatable = false)
|
||||||
})
|
})
|
||||||
// HashSet rather than ImmutableSet so that Hibernate can fill them out lazily on request
|
// HashSet rather than ImmutableSet so that Hibernate can fill them out lazily on request
|
||||||
|
@Ignore
|
||||||
Set<DomainDsDataHistory> dsDataHistories = new HashSet<>();
|
Set<DomainDsDataHistory> dsDataHistories = new HashSet<>();
|
||||||
|
|
||||||
@DoNotCompare
|
@DoNotCompare
|
||||||
|
@ -153,6 +155,7 @@ public class DomainHistory extends HistoryEntry {
|
||||||
updatable = false)
|
updatable = false)
|
||||||
})
|
})
|
||||||
// HashSet rather than ImmutableSet so that Hibernate can fill them out lazily on request
|
// HashSet rather than ImmutableSet so that Hibernate can fill them out lazily on request
|
||||||
|
@Ignore
|
||||||
Set<GracePeriodHistory> gracePeriodHistories = new HashSet<>();
|
Set<GracePeriodHistory> gracePeriodHistories = new HashSet<>();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -19,7 +19,6 @@ import static google.registry.model.IdService.allocateId;
|
||||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||||
|
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.billing.BillingEvent;
|
import google.registry.model.billing.BillingEvent;
|
||||||
import google.registry.model.billing.BillingEvent.Recurring;
|
import google.registry.model.billing.BillingEvent.Recurring;
|
||||||
import google.registry.model.domain.DomainHistory.DomainHistoryId;
|
import google.registry.model.domain.DomainHistory.DomainHistoryId;
|
||||||
|
@ -40,7 +39,6 @@ import org.joda.time.DateTime;
|
||||||
* <p>When a grace period expires, it is lazily removed from the {@link Domain} the next time the
|
* <p>When a grace period expires, it is lazily removed from the {@link Domain} the next time the
|
||||||
* resource is loaded from Datastore.
|
* resource is loaded from Datastore.
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@Entity
|
@Entity
|
||||||
@Table(
|
@Table(
|
||||||
indexes = {
|
indexes = {
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
package google.registry.model.domain;
|
package google.registry.model.domain;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Ignore;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
import google.registry.model.billing.BillingEvent;
|
import google.registry.model.billing.BillingEvent;
|
||||||
|
@ -31,7 +29,6 @@ import javax.persistence.Transient;
|
||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Base class containing common fields and methods for {@link GracePeriod}. */
|
/** Base class containing common fields and methods for {@link GracePeriod}. */
|
||||||
@Embed
|
|
||||||
@MappedSuperclass
|
@MappedSuperclass
|
||||||
@Access(AccessType.FIELD)
|
@Access(AccessType.FIELD)
|
||||||
public class GracePeriodBase extends ImmutableObject implements UnsafeSerializable {
|
public class GracePeriodBase extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
@ -40,7 +37,6 @@ public class GracePeriodBase extends ImmutableObject implements UnsafeSerializab
|
||||||
@Transient long gracePeriodId;
|
@Transient long gracePeriodId;
|
||||||
|
|
||||||
/** Repository id for the domain which this grace period belongs to. */
|
/** Repository id for the domain which this grace period belongs to. */
|
||||||
@Ignore
|
|
||||||
@Column(nullable = false)
|
@Column(nullable = false)
|
||||||
String domainRepoId;
|
String domainRepoId;
|
||||||
|
|
||||||
|
@ -65,7 +61,6 @@ public class GracePeriodBase extends ImmutableObject implements UnsafeSerializab
|
||||||
// NB: Would @IgnoreSave(IfNull.class), but not allowed for @Embed collections.
|
// NB: Would @IgnoreSave(IfNull.class), but not allowed for @Embed collections.
|
||||||
@Access(AccessType.FIELD)
|
@Access(AccessType.FIELD)
|
||||||
@Column(name = "billing_event_id")
|
@Column(name = "billing_event_id")
|
||||||
@Ignore
|
|
||||||
VKey<BillingEvent.OneTime> billingEventOneTime = null;
|
VKey<BillingEvent.OneTime> billingEventOneTime = null;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -75,7 +70,6 @@ public class GracePeriodBase extends ImmutableObject implements UnsafeSerializab
|
||||||
// NB: Would @IgnoreSave(IfNull.class), but not allowed for @Embed collections.
|
// NB: Would @IgnoreSave(IfNull.class), but not allowed for @Embed collections.
|
||||||
@Access(AccessType.FIELD)
|
@Access(AccessType.FIELD)
|
||||||
@Column(name = "billing_recurrence_id")
|
@Column(name = "billing_recurrence_id")
|
||||||
@Ignore
|
|
||||||
VKey<BillingEvent.Recurring> billingEventRecurring = null;
|
VKey<BillingEvent.Recurring> billingEventRecurring = null;
|
||||||
|
|
||||||
public long getGracePeriodId() {
|
public long getGracePeriodId() {
|
||||||
|
|
|
@ -14,9 +14,9 @@
|
||||||
|
|
||||||
package google.registry.model.domain;
|
package google.registry.model.domain;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
|
import javax.persistence.Embeddable;
|
||||||
import javax.persistence.EnumType;
|
import javax.persistence.EnumType;
|
||||||
import javax.persistence.Enumerated;
|
import javax.persistence.Enumerated;
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
@ -24,8 +24,7 @@ import javax.xml.bind.annotation.XmlEnumValue;
|
||||||
import javax.xml.bind.annotation.XmlValue;
|
import javax.xml.bind.annotation.XmlValue;
|
||||||
|
|
||||||
/** The "periodType" from <a href="http://tools.ietf.org/html/rfc5731">RFC5731</a>. */
|
/** The "periodType" from <a href="http://tools.ietf.org/html/rfc5731">RFC5731</a>. */
|
||||||
@Embed
|
@Embeddable
|
||||||
@javax.persistence.Embeddable
|
|
||||||
public class Period extends ImmutableObject implements UnsafeSerializable {
|
public class Period extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
@Enumerated(EnumType.STRING)
|
@Enumerated(EnumType.STRING)
|
||||||
|
|
|
@ -23,12 +23,10 @@ import static java.util.concurrent.TimeUnit.MILLISECONDS;
|
||||||
import com.google.common.base.Ascii;
|
import com.google.common.base.Ascii;
|
||||||
import com.google.common.base.CharMatcher;
|
import com.google.common.base.CharMatcher;
|
||||||
import com.google.common.primitives.Ints;
|
import com.google.common.primitives.Ints;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.IgnoreSave;
|
|
||||||
import com.googlecode.objectify.condition.IfNull;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
|
import javax.persistence.Embeddable;
|
||||||
import javax.persistence.Embedded;
|
import javax.persistence.Embedded;
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
|
@ -37,17 +35,15 @@ import javax.xml.bind.annotation.XmlValue;
|
||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** The claims notice id from the claims phase. */
|
/** The claims notice id from the claims phase. */
|
||||||
@Embed
|
|
||||||
@XmlType(propOrder = {"noticeId", "expirationTime", "acceptedTime"})
|
@XmlType(propOrder = {"noticeId", "expirationTime", "acceptedTime"})
|
||||||
@javax.persistence.Embeddable
|
@Embeddable
|
||||||
public class LaunchNotice extends ImmutableObject implements UnsafeSerializable {
|
public class LaunchNotice extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
/** An empty instance to use in place of null. */
|
/** An empty instance to use in place of null. */
|
||||||
private static final NoticeIdType EMPTY_NOTICE_ID = new NoticeIdType();
|
private static final NoticeIdType EMPTY_NOTICE_ID = new NoticeIdType();
|
||||||
|
|
||||||
/** An id with a validator-id attribute. */
|
/** An id with a validator-id attribute. */
|
||||||
@Embed
|
@Embeddable
|
||||||
@javax.persistence.Embeddable
|
|
||||||
public static class NoticeIdType extends ImmutableObject implements UnsafeSerializable {
|
public static class NoticeIdType extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -57,7 +53,6 @@ public class LaunchNotice extends ImmutableObject implements UnsafeSerializable
|
||||||
@XmlValue String tcnId;
|
@XmlValue String tcnId;
|
||||||
|
|
||||||
/** The identifier of the TMDB provider to use, defaulting to the TMCH. */
|
/** The identifier of the TMDB provider to use, defaulting to the TMCH. */
|
||||||
@IgnoreSave(IfNull.class)
|
|
||||||
@XmlAttribute(name = "validatorID")
|
@XmlAttribute(name = "validatorID")
|
||||||
String validatorId;
|
String validatorId;
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,6 @@ package google.registry.model.domain.launch;
|
||||||
|
|
||||||
import static java.util.Objects.hash;
|
import static java.util.Objects.hash;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import java.util.Objects;
|
import java.util.Objects;
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
|
@ -47,7 +46,6 @@ import javax.xml.bind.annotation.XmlValue;
|
||||||
* sets it is the one that needs to make sure the domain isn't a trademark and that the fields are
|
* sets it is the one that needs to make sure the domain isn't a trademark and that the fields are
|
||||||
* correct.
|
* correct.
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
public class LaunchPhase extends ImmutableObject {
|
public class LaunchPhase extends ImmutableObject {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -16,7 +16,6 @@ package google.registry.model.domain.secdns;
|
||||||
|
|
||||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.domain.secdns.DelegationSignerData.DomainDsDataId;
|
import google.registry.model.domain.secdns.DelegationSignerData.DomainDsDataId;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
|
@ -37,7 +36,6 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
* @see <a href="http://tools.ietf.org/html/rfc4034">RFC 4034</a>
|
* @see <a href="http://tools.ietf.org/html/rfc4034">RFC 4034</a>
|
||||||
* <p>TODO(b/177567432): Rename this class to DomainDsData.
|
* <p>TODO(b/177567432): Rename this class to DomainDsData.
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@XmlType(name = "dsData")
|
@XmlType(name = "dsData")
|
||||||
@Entity
|
@Entity
|
||||||
@IdClass(DomainDsDataId.class)
|
@IdClass(DomainDsDataId.class)
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
package google.registry.model.domain.secdns;
|
package google.registry.model.domain.secdns;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Ignore;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
import javax.persistence.Access;
|
import javax.persistence.Access;
|
||||||
|
@ -29,12 +27,11 @@ import javax.xml.bind.annotation.adapters.HexBinaryAdapter;
|
||||||
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||||
|
|
||||||
/** Base class for {@link DelegationSignerData} and {@link DomainDsDataHistory}. */
|
/** Base class for {@link DelegationSignerData} and {@link DomainDsDataHistory}. */
|
||||||
@Embed
|
|
||||||
@MappedSuperclass
|
@MappedSuperclass
|
||||||
@Access(AccessType.FIELD)
|
@Access(AccessType.FIELD)
|
||||||
public abstract class DomainDsDataBase extends ImmutableObject implements UnsafeSerializable {
|
public abstract class DomainDsDataBase extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
@Ignore @XmlTransient @Transient String domainRepoId;
|
@XmlTransient @Transient String domainRepoId;
|
||||||
|
|
||||||
/** The identifier for this particular key in the domain. */
|
/** The identifier for this particular key in the domain. */
|
||||||
@Transient int keyTag;
|
@Transient int keyTag;
|
||||||
|
|
|
@ -15,14 +15,12 @@
|
||||||
package google.registry.model.domain.secdns;
|
package google.registry.model.domain.secdns;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.eppoutput.EppResponse.ResponseExtension;
|
import google.registry.model.eppoutput.EppResponse.ResponseExtension;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
|
||||||
/** The EPP secDNS extension to be returned with domain info commands. */
|
/** The EPP secDNS extension to be returned with domain info commands. */
|
||||||
@XmlRootElement(name = "infData")
|
@XmlRootElement(name = "infData")
|
||||||
@Embed
|
|
||||||
public class SecDnsInfoExtension extends ImmutableObject implements ResponseExtension {
|
public class SecDnsInfoExtension extends ImmutableObject implements ResponseExtension {
|
||||||
|
|
||||||
/** Signatures for this domain. */
|
/** Signatures for this domain. */
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
package google.registry.model.eppcommon;
|
package google.registry.model.eppcommon;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
import javax.persistence.Embeddable;
|
import javax.persistence.Embeddable;
|
||||||
|
@ -45,7 +44,6 @@ public abstract class AuthInfo extends ImmutableObject implements UnsafeSerializ
|
||||||
}
|
}
|
||||||
|
|
||||||
/** The "pwAuthInfoType" complex type. */
|
/** The "pwAuthInfoType" complex type. */
|
||||||
@Embed
|
|
||||||
@XmlType(namespace = "urn:ietf:params:xml:ns:eppcom-1.0")
|
@XmlType(namespace = "urn:ietf:params:xml:ns:eppcom-1.0")
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public static class PasswordAuth extends ImmutableObject implements UnsafeSerializable {
|
public static class PasswordAuth extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
package google.registry.model.eppcommon;
|
package google.registry.model.eppcommon;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import java.io.Serializable;
|
import java.io.Serializable;
|
||||||
import javax.persistence.Embeddable;
|
import javax.persistence.Embeddable;
|
||||||
|
@ -26,7 +25,6 @@ import javax.xml.bind.annotation.XmlTransient;
|
||||||
* <p>When placed in a field "foo", this will correctly unmarshal from both {@code <foo/>} and
|
* <p>When placed in a field "foo", this will correctly unmarshal from both {@code <foo/>} and
|
||||||
* {@code <foo></foo>}, and will unmarshal always to {@code <foo/>}.
|
* {@code <foo></foo>}, and will unmarshal always to {@code <foo/>}.
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public class PresenceMarker extends ImmutableObject implements Serializable {
|
public class PresenceMarker extends ImmutableObject implements Serializable {
|
||||||
@XmlTransient
|
@XmlTransient
|
||||||
|
|
|
@ -16,11 +16,11 @@ package google.registry.model.eppcommon;
|
||||||
|
|
||||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
import java.util.Optional;
|
import java.util.Optional;
|
||||||
import javax.annotation.Nullable;
|
import javax.annotation.Nullable;
|
||||||
|
import javax.persistence.Embeddable;
|
||||||
import javax.xml.bind.annotation.XmlElement;
|
import javax.xml.bind.annotation.XmlElement;
|
||||||
import javax.xml.bind.annotation.XmlType;
|
import javax.xml.bind.annotation.XmlType;
|
||||||
|
|
||||||
|
@ -30,9 +30,8 @@ import javax.xml.bind.annotation.XmlType;
|
||||||
* is formed using the {@code clTRID} associated with the command if supplied by the client and a
|
* is formed using the {@code clTRID} associated with the command if supplied by the client and a
|
||||||
* {@code svTRID} (server transaction identifier) that is assigned by and unique to the server."
|
* {@code svTRID} (server transaction identifier) that is assigned by and unique to the server."
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@XmlType(propOrder = {"clientTransactionId", "serverTransactionId"})
|
@XmlType(propOrder = {"clientTransactionId", "serverTransactionId"})
|
||||||
@javax.persistence.Embeddable
|
@Embeddable
|
||||||
public class Trid extends ImmutableObject implements UnsafeSerializable {
|
public class Trid extends ImmutableObject implements UnsafeSerializable {
|
||||||
|
|
||||||
/** The server transaction id. */
|
/** The server transaction id. */
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
package google.registry.model.poll;
|
package google.registry.model.poll;
|
||||||
|
|
||||||
import com.google.common.annotations.VisibleForTesting;
|
import com.google.common.annotations.VisibleForTesting;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
import google.registry.model.eppcommon.Trid;
|
import google.registry.model.eppcommon.Trid;
|
||||||
|
@ -36,7 +35,6 @@ public class PendingActionNotificationResponse extends ImmutableObject
|
||||||
implements ResponseData, UnsafeSerializable {
|
implements ResponseData, UnsafeSerializable {
|
||||||
|
|
||||||
/** The inner name type that contains a name and the result boolean. */
|
/** The inner name type that contains a name and the result boolean. */
|
||||||
@Embed
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
static class NameOrId extends ImmutableObject implements UnsafeSerializable {
|
static class NameOrId extends ImmutableObject implements UnsafeSerializable {
|
||||||
@XmlValue
|
@XmlValue
|
||||||
|
@ -80,7 +78,6 @@ public class PendingActionNotificationResponse extends ImmutableObject
|
||||||
}
|
}
|
||||||
|
|
||||||
/** An adapter to output the XML in response to resolving a pending command on a domain. */
|
/** An adapter to output the XML in response to resolving a pending command on a domain. */
|
||||||
@Embed
|
|
||||||
@XmlRootElement(name = "panData", namespace = "urn:ietf:params:xml:ns:domain-1.0")
|
@XmlRootElement(name = "panData", namespace = "urn:ietf:params:xml:ns:domain-1.0")
|
||||||
@XmlType(
|
@XmlType(
|
||||||
propOrder = {"name", "trid", "processedDate"},
|
propOrder = {"name", "trid", "processedDate"},
|
||||||
|
@ -105,7 +102,6 @@ public class PendingActionNotificationResponse extends ImmutableObject
|
||||||
}
|
}
|
||||||
|
|
||||||
/** An adapter to output the XML in response to resolving a pending command on a contact. */
|
/** An adapter to output the XML in response to resolving a pending command on a contact. */
|
||||||
@Embed
|
|
||||||
@XmlRootElement(name = "panData", namespace = "urn:ietf:params:xml:ns:contact-1.0")
|
@XmlRootElement(name = "panData", namespace = "urn:ietf:params:xml:ns:contact-1.0")
|
||||||
@XmlType(
|
@XmlType(
|
||||||
propOrder = {"id", "trid", "processedDate"},
|
propOrder = {"id", "trid", "processedDate"},
|
||||||
|
@ -130,7 +126,6 @@ public class PendingActionNotificationResponse extends ImmutableObject
|
||||||
}
|
}
|
||||||
|
|
||||||
/** An adapter to output the XML in response to resolving a pending command on a host. */
|
/** An adapter to output the XML in response to resolving a pending command on a host. */
|
||||||
@Embed
|
|
||||||
@XmlRootElement(name = "panData", namespace = "urn:ietf:params:xml:ns:domain-1.0")
|
@XmlRootElement(name = "panData", namespace = "urn:ietf:params:xml:ns:domain-1.0")
|
||||||
@XmlType(
|
@XmlType(
|
||||||
propOrder = {"name", "trid", "processedDate"},
|
propOrder = {"name", "trid", "processedDate"},
|
||||||
|
|
|
@ -18,8 +18,6 @@ import static com.google.common.base.Preconditions.checkArgument;
|
||||||
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
import static google.registry.util.PreconditionsUtils.checkArgumentNotNull;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Ignore;
|
|
||||||
import google.registry.model.Buildable;
|
import google.registry.model.Buildable;
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import google.registry.model.UnsafeSerializable;
|
import google.registry.model.UnsafeSerializable;
|
||||||
|
@ -43,15 +41,13 @@ import org.joda.time.DateTime;
|
||||||
* only exception is for reportField = TRANSFER_LOSING_SUCCESSFUL or TRANSFER_LOSING_NACKED, which
|
* only exception is for reportField = TRANSFER_LOSING_SUCCESSFUL or TRANSFER_LOSING_NACKED, which
|
||||||
* uses HistoryEntry.otherClientId because the losing party in a transfer is always the otherClient.
|
* uses HistoryEntry.otherClientId because the losing party in a transfer is always the otherClient.
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@Entity
|
@Entity
|
||||||
public class DomainTransactionRecord extends ImmutableObject
|
public class DomainTransactionRecord extends ImmutableObject
|
||||||
implements Buildable, UnsafeSerializable {
|
implements Buildable, UnsafeSerializable {
|
||||||
|
|
||||||
@Id
|
@Id
|
||||||
@Ignore
|
|
||||||
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
@GeneratedValue(strategy = GenerationType.IDENTITY)
|
||||||
@ImmutableObject.Insignificant
|
@Insignificant
|
||||||
Long id;
|
Long id;
|
||||||
|
|
||||||
/** The TLD this record operates on. */
|
/** The TLD this record operates on. */
|
||||||
|
@ -62,9 +58,9 @@ public class DomainTransactionRecord extends ImmutableObject
|
||||||
// Datastore-SQL validation. They are excluded from equality check since they are not set in
|
// Datastore-SQL validation. They are excluded from equality check since they are not set in
|
||||||
// Datastore.
|
// Datastore.
|
||||||
// TODO(b/203609782): post migration, decide whether to keep these two fields.
|
// TODO(b/203609782): post migration, decide whether to keep these two fields.
|
||||||
@Ignore @ImmutableObject.Insignificant String domainRepoId;
|
@Insignificant String domainRepoId;
|
||||||
|
|
||||||
@Ignore @ImmutableObject.Insignificant Long historyRevisionId;
|
@Insignificant Long historyRevisionId;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The time this Transaction takes effect (counting grace periods and other nuances).
|
* The time this Transaction takes effect (counting grace periods and other nuances).
|
||||||
|
|
|
@ -25,10 +25,9 @@ import com.google.common.collect.ImmutableSet;
|
||||||
import com.googlecode.objectify.Key;
|
import com.googlecode.objectify.Key;
|
||||||
import com.googlecode.objectify.annotation.Entity;
|
import com.googlecode.objectify.annotation.Entity;
|
||||||
import com.googlecode.objectify.annotation.Id;
|
import com.googlecode.objectify.annotation.Id;
|
||||||
import com.googlecode.objectify.annotation.IgnoreSave;
|
import com.googlecode.objectify.annotation.Ignore;
|
||||||
import com.googlecode.objectify.annotation.Index;
|
import com.googlecode.objectify.annotation.Index;
|
||||||
import com.googlecode.objectify.annotation.Parent;
|
import com.googlecode.objectify.annotation.Parent;
|
||||||
import com.googlecode.objectify.condition.IfNull;
|
|
||||||
import google.registry.model.Buildable;
|
import google.registry.model.Buildable;
|
||||||
import google.registry.model.EppResource;
|
import google.registry.model.EppResource;
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
|
@ -155,8 +154,7 @@ public class HistoryEntry extends ImmutableObject implements Buildable, UnsafeSe
|
||||||
* The length of time that a create, allocate, renewal, or transfer request was issued for. Will
|
* The length of time that a create, allocate, renewal, or transfer request was issued for. Will
|
||||||
* be null for all other types.
|
* be null for all other types.
|
||||||
*/
|
*/
|
||||||
@IgnoreSave(IfNull.class)
|
@Ignore @Transient // domain-specific
|
||||||
@Transient // domain-specific
|
|
||||||
Period period;
|
Period period;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -189,6 +187,7 @@ public class HistoryEntry extends ImmutableObject implements Buildable, UnsafeSe
|
||||||
|
|
||||||
/** Transaction id that made this change, or null if the entry was not created by a flow. */
|
/** Transaction id that made this change, or null if the entry was not created by a flow. */
|
||||||
@Nullable
|
@Nullable
|
||||||
|
@Ignore
|
||||||
@AttributeOverrides({
|
@AttributeOverrides({
|
||||||
@AttributeOverride(
|
@AttributeOverride(
|
||||||
name = "clientTransactionId",
|
name = "clientTransactionId",
|
||||||
|
@ -218,6 +217,7 @@ public class HistoryEntry extends ImmutableObject implements Buildable, UnsafeSe
|
||||||
* also be empty if the HistoryEntry refers to an EPP mutation that does not affect domain
|
* also be empty if the HistoryEntry refers to an EPP mutation that does not affect domain
|
||||||
* transaction counts (such as contact or host mutations).
|
* transaction counts (such as contact or host mutations).
|
||||||
*/
|
*/
|
||||||
|
@Ignore
|
||||||
@Transient // domain-specific
|
@Transient // domain-specific
|
||||||
@ImmutableObject.EmptySetToNull
|
@ImmutableObject.EmptySetToNull
|
||||||
protected Set<DomainTransactionRecord> domainTransactionRecords;
|
protected Set<DomainTransactionRecord> domainTransactionRecords;
|
||||||
|
|
|
@ -18,7 +18,6 @@ import static com.google.common.base.MoreObjects.firstNonNull;
|
||||||
import static com.google.common.io.BaseEncoding.base64;
|
import static com.google.common.io.BaseEncoding.base64;
|
||||||
|
|
||||||
import com.google.appengine.api.datastore.Text;
|
import com.google.appengine.api.datastore.Text;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.ImmutableObject;
|
import google.registry.model.ImmutableObject;
|
||||||
import javax.xml.bind.annotation.XmlAttribute;
|
import javax.xml.bind.annotation.XmlAttribute;
|
||||||
import javax.xml.bind.annotation.XmlRootElement;
|
import javax.xml.bind.annotation.XmlRootElement;
|
||||||
|
@ -31,7 +30,6 @@ import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
||||||
* @see <a href="http://tools.ietf.org/html/draft-lozano-tmch-smd-02#section-2.4">
|
* @see <a href="http://tools.ietf.org/html/draft-lozano-tmch-smd-02#section-2.4">
|
||||||
* draft-lozano-tmch-smd-02 § 2.4</a>
|
* draft-lozano-tmch-smd-02 § 2.4</a>
|
||||||
*/
|
*/
|
||||||
@Embed
|
|
||||||
@XmlRootElement(name = "encodedSignedMark")
|
@XmlRootElement(name = "encodedSignedMark")
|
||||||
public class EncodedSignedMark extends ImmutableObject implements AbstractSignedMark {
|
public class EncodedSignedMark extends ImmutableObject implements AbstractSignedMark {
|
||||||
|
|
||||||
|
@ -42,8 +40,9 @@ public class EncodedSignedMark extends ImmutableObject implements AbstractSigned
|
||||||
String encoding;
|
String encoding;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Encoded data. This is stored in a Text field rather than a String because Objectify cannot
|
* Encoded data. This is stored in a Text field rather than a String due to historical reasons,
|
||||||
* autoconvert Strings greater than 500 characters to Text within {@link Embed} collections.
|
* namely that Objectify cannot autoconvert Strings greater than 500 characters to Text within
|
||||||
|
* {@code Embed} collections.
|
||||||
*/
|
*/
|
||||||
@XmlValue
|
@XmlValue
|
||||||
@XmlJavaTypeAdapter(RemoveWhitespaceTextAdapter.class)
|
@XmlJavaTypeAdapter(RemoveWhitespaceTextAdapter.class)
|
||||||
|
|
|
@ -14,13 +14,9 @@
|
||||||
|
|
||||||
package google.registry.model.transfer;
|
package google.registry.model.transfer;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Unindex;
|
|
||||||
import javax.persistence.Embeddable;
|
import javax.persistence.Embeddable;
|
||||||
|
|
||||||
/** Transfer data for contact. */
|
/** Transfer data for contact. */
|
||||||
@Embed
|
|
||||||
@Unindex
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public class ContactTransferData extends TransferData<ContactTransferData.Builder> {
|
public class ContactTransferData extends TransferData<ContactTransferData.Builder> {
|
||||||
public static final ContactTransferData EMPTY = new ContactTransferData();
|
public static final ContactTransferData EMPTY = new ContactTransferData();
|
||||||
|
|
|
@ -17,11 +17,6 @@ package google.registry.model.transfer;
|
||||||
import static google.registry.util.CollectionUtils.isNullOrEmpty;
|
import static google.registry.util.CollectionUtils.isNullOrEmpty;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import com.googlecode.objectify.annotation.Ignore;
|
|
||||||
import com.googlecode.objectify.annotation.IgnoreSave;
|
|
||||||
import com.googlecode.objectify.annotation.Unindex;
|
|
||||||
import com.googlecode.objectify.condition.IfNull;
|
|
||||||
import google.registry.model.billing.BillingEvent;
|
import google.registry.model.billing.BillingEvent;
|
||||||
import google.registry.model.domain.Period;
|
import google.registry.model.domain.Period;
|
||||||
import google.registry.model.domain.Period.Unit;
|
import google.registry.model.domain.Period.Unit;
|
||||||
|
@ -38,8 +33,6 @@ import javax.persistence.Embedded;
|
||||||
import org.joda.time.DateTime;
|
import org.joda.time.DateTime;
|
||||||
|
|
||||||
/** Transfer data for domain. */
|
/** Transfer data for domain. */
|
||||||
@Embed
|
|
||||||
@Unindex
|
|
||||||
@Embeddable
|
@Embeddable
|
||||||
public class DomainTransferData extends TransferData<DomainTransferData.Builder> {
|
public class DomainTransferData extends TransferData<DomainTransferData.Builder> {
|
||||||
public static final DomainTransferData EMPTY = new DomainTransferData();
|
public static final DomainTransferData EMPTY = new DomainTransferData();
|
||||||
|
@ -75,7 +68,6 @@ public class DomainTransferData extends TransferData<DomainTransferData.Builder>
|
||||||
@Column(name = "transfer_registration_expiration_time")
|
@Column(name = "transfer_registration_expiration_time")
|
||||||
DateTime transferredRegistrationExpirationTime;
|
DateTime transferredRegistrationExpirationTime;
|
||||||
|
|
||||||
@Ignore
|
|
||||||
@Column(name = "transfer_billing_cancellation_id")
|
@Column(name = "transfer_billing_cancellation_id")
|
||||||
public VKey<BillingEvent.Cancellation> billingCancellationId;
|
public VKey<BillingEvent.Cancellation> billingCancellationId;
|
||||||
|
|
||||||
|
@ -86,7 +78,6 @@ public class DomainTransferData extends TransferData<DomainTransferData.Builder>
|
||||||
* being transferred is not a domain.
|
* being transferred is not a domain.
|
||||||
*/
|
*/
|
||||||
@Column(name = "transfer_billing_event_id")
|
@Column(name = "transfer_billing_event_id")
|
||||||
@Ignore
|
|
||||||
VKey<BillingEvent.OneTime> serverApproveBillingEvent;
|
VKey<BillingEvent.OneTime> serverApproveBillingEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -96,7 +87,6 @@ public class DomainTransferData extends TransferData<DomainTransferData.Builder>
|
||||||
* being transferred is not a domain.
|
* being transferred is not a domain.
|
||||||
*/
|
*/
|
||||||
@Column(name = "transfer_billing_recurrence_id")
|
@Column(name = "transfer_billing_recurrence_id")
|
||||||
@Ignore
|
|
||||||
VKey<BillingEvent.Recurring> serverApproveAutorenewEvent;
|
VKey<BillingEvent.Recurring> serverApproveAutorenewEvent;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -105,7 +95,6 @@ public class DomainTransferData extends TransferData<DomainTransferData.Builder>
|
||||||
* <p>This field should be null if there is not currently a pending transfer or if the object
|
* <p>This field should be null if there is not currently a pending transfer or if the object
|
||||||
* being transferred is not a domain.
|
* being transferred is not a domain.
|
||||||
*/
|
*/
|
||||||
@IgnoreSave(IfNull.class)
|
|
||||||
@Column(name = "transfer_autorenew_poll_message_id")
|
@Column(name = "transfer_autorenew_poll_message_id")
|
||||||
VKey<PollMessage.Autorenew> serverApproveAutorenewPollMessage;
|
VKey<PollMessage.Autorenew> serverApproveAutorenewPollMessage;
|
||||||
|
|
||||||
|
@ -113,7 +102,6 @@ public class DomainTransferData extends TransferData<DomainTransferData.Builder>
|
||||||
* Autorenew history, which we need to preserve because it's often used in contexts where we
|
* Autorenew history, which we need to preserve because it's often used in contexts where we
|
||||||
* haven't loaded the autorenew object.
|
* haven't loaded the autorenew object.
|
||||||
*/
|
*/
|
||||||
@Ignore
|
|
||||||
@Column(name = "transfer_autorenew_poll_message_history_id")
|
@Column(name = "transfer_autorenew_poll_message_history_id")
|
||||||
Long serverApproveAutorenewPollMessageHistoryId;
|
Long serverApproveAutorenewPollMessageHistoryId;
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,6 @@
|
||||||
|
|
||||||
package google.registry.model.transfer;
|
package google.registry.model.transfer;
|
||||||
|
|
||||||
import com.googlecode.objectify.annotation.Embed;
|
|
||||||
import google.registry.model.EppResource;
|
import google.registry.model.EppResource;
|
||||||
import google.registry.model.eppoutput.EppResponse.ResponseData;
|
import google.registry.model.eppoutput.EppResponse.ResponseData;
|
||||||
import javax.persistence.Embeddable;
|
import javax.persistence.Embeddable;
|
||||||
|
@ -33,7 +32,6 @@ import org.joda.time.DateTime;
|
||||||
public class TransferResponse extends BaseTransferObject implements ResponseData {
|
public class TransferResponse extends BaseTransferObject implements ResponseData {
|
||||||
|
|
||||||
/** An adapter to output the XML in response to a transfer command on a domain. */
|
/** An adapter to output the XML in response to a transfer command on a domain. */
|
||||||
@Embed
|
|
||||||
@XmlRootElement(name = "trnData", namespace = "urn:ietf:params:xml:ns:domain-1.0")
|
@XmlRootElement(name = "trnData", namespace = "urn:ietf:params:xml:ns:domain-1.0")
|
||||||
@XmlType(propOrder = {
|
@XmlType(propOrder = {
|
||||||
"fullyQualifiedDomainName",
|
"fullyQualifiedDomainName",
|
||||||
|
@ -82,7 +80,6 @@ public class TransferResponse extends BaseTransferObject implements ResponseData
|
||||||
}
|
}
|
||||||
|
|
||||||
/** An adapter to output the XML in response to a transfer command on a contact. */
|
/** An adapter to output the XML in response to a transfer command on a contact. */
|
||||||
@Embed
|
|
||||||
@XmlRootElement(name = "trnData", namespace = "urn:ietf:params:xml:ns:contact-1.0")
|
@XmlRootElement(name = "trnData", namespace = "urn:ietf:params:xml:ns:contact-1.0")
|
||||||
@XmlType(propOrder = {
|
@XmlType(propOrder = {
|
||||||
"contactId",
|
"contactId",
|
||||||
|
|
|
@ -4,39 +4,24 @@ class google.registry.model.common.GaeUserIdConverter {
|
||||||
}
|
}
|
||||||
class google.registry.model.contact.Contact {
|
class google.registry.model.contact.Contact {
|
||||||
@Id java.lang.String repoId;
|
@Id java.lang.String repoId;
|
||||||
google.registry.model.contact.ContactAuthInfo authInfo;
|
|
||||||
google.registry.model.contact.ContactPhoneNumber fax;
|
|
||||||
google.registry.model.contact.ContactPhoneNumber voice;
|
|
||||||
google.registry.model.contact.Disclose disclose;
|
|
||||||
google.registry.model.transfer.ContactTransferData transferData;
|
|
||||||
java.lang.String contactId;
|
java.lang.String contactId;
|
||||||
java.lang.String creationClientId;
|
java.lang.String creationClientId;
|
||||||
java.lang.String currentSponsorClientId;
|
java.lang.String currentSponsorClientId;
|
||||||
java.lang.String email;
|
java.lang.String email;
|
||||||
java.lang.String lastEppUpdateClientId;
|
java.lang.String lastEppUpdateClientId;
|
||||||
java.lang.String searchName;
|
java.lang.String searchName;
|
||||||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
|
||||||
org.joda.time.DateTime deletionTime;
|
org.joda.time.DateTime deletionTime;
|
||||||
org.joda.time.DateTime lastEppUpdateTime;
|
org.joda.time.DateTime lastEppUpdateTime;
|
||||||
org.joda.time.DateTime lastTransferTime;
|
org.joda.time.DateTime lastTransferTime;
|
||||||
}
|
}
|
||||||
class google.registry.model.contact.ContactAuthInfo {
|
|
||||||
google.registry.model.eppcommon.AuthInfo$PasswordAuth pw;
|
|
||||||
}
|
|
||||||
class google.registry.model.contact.ContactBase {
|
class google.registry.model.contact.ContactBase {
|
||||||
@Id java.lang.String repoId;
|
@Id java.lang.String repoId;
|
||||||
google.registry.model.contact.ContactAuthInfo authInfo;
|
|
||||||
google.registry.model.contact.ContactPhoneNumber fax;
|
|
||||||
google.registry.model.contact.ContactPhoneNumber voice;
|
|
||||||
google.registry.model.contact.Disclose disclose;
|
|
||||||
google.registry.model.transfer.ContactTransferData transferData;
|
|
||||||
java.lang.String contactId;
|
java.lang.String contactId;
|
||||||
java.lang.String creationClientId;
|
java.lang.String creationClientId;
|
||||||
java.lang.String currentSponsorClientId;
|
java.lang.String currentSponsorClientId;
|
||||||
java.lang.String email;
|
java.lang.String email;
|
||||||
java.lang.String lastEppUpdateClientId;
|
java.lang.String lastEppUpdateClientId;
|
||||||
java.lang.String searchName;
|
java.lang.String searchName;
|
||||||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
|
||||||
org.joda.time.DateTime deletionTime;
|
org.joda.time.DateTime deletionTime;
|
||||||
org.joda.time.DateTime lastEppUpdateTime;
|
org.joda.time.DateTime lastEppUpdateTime;
|
||||||
org.joda.time.DateTime lastTransferTime;
|
org.joda.time.DateTime lastTransferTime;
|
||||||
|
@ -47,41 +32,15 @@ class google.registry.model.contact.ContactHistory {
|
||||||
boolean bySuperuser;
|
boolean bySuperuser;
|
||||||
byte[] xmlBytes;
|
byte[] xmlBytes;
|
||||||
google.registry.model.contact.ContactBase contactBase;
|
google.registry.model.contact.ContactBase contactBase;
|
||||||
google.registry.model.domain.Period period;
|
|
||||||
google.registry.model.eppcommon.Trid trid;
|
|
||||||
google.registry.model.reporting.HistoryEntry$Type type;
|
google.registry.model.reporting.HistoryEntry$Type type;
|
||||||
java.lang.Boolean requestedByRegistrar;
|
java.lang.Boolean requestedByRegistrar;
|
||||||
java.lang.String clientId;
|
java.lang.String clientId;
|
||||||
java.lang.String otherClientId;
|
java.lang.String otherClientId;
|
||||||
java.lang.String reason;
|
java.lang.String reason;
|
||||||
java.util.Set<google.registry.model.reporting.DomainTransactionRecord> domainTransactionRecords;
|
|
||||||
org.joda.time.DateTime modificationTime;
|
org.joda.time.DateTime modificationTime;
|
||||||
}
|
}
|
||||||
class google.registry.model.contact.ContactPhoneNumber {
|
|
||||||
java.lang.String extension;
|
|
||||||
java.lang.String phoneNumber;
|
|
||||||
}
|
|
||||||
class google.registry.model.contact.Disclose {
|
|
||||||
google.registry.model.eppcommon.PresenceMarker email;
|
|
||||||
google.registry.model.eppcommon.PresenceMarker fax;
|
|
||||||
google.registry.model.eppcommon.PresenceMarker voice;
|
|
||||||
java.lang.Boolean flag;
|
|
||||||
java.util.List<google.registry.model.contact.Disclose$PostalInfoChoice> addr;
|
|
||||||
java.util.List<google.registry.model.contact.Disclose$PostalInfoChoice> name;
|
|
||||||
java.util.List<google.registry.model.contact.Disclose$PostalInfoChoice> org;
|
|
||||||
}
|
|
||||||
class google.registry.model.contact.Disclose$PostalInfoChoice {
|
|
||||||
google.registry.model.contact.PostalInfo$Type type;
|
|
||||||
}
|
|
||||||
enum google.registry.model.contact.PostalInfo$Type {
|
|
||||||
INTERNATIONALIZED;
|
|
||||||
LOCALIZED;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.Domain {
|
class google.registry.model.domain.Domain {
|
||||||
@Id java.lang.String repoId;
|
@Id java.lang.String repoId;
|
||||||
google.registry.model.domain.DomainAuthInfo authInfo;
|
|
||||||
google.registry.model.domain.launch.LaunchNotice launchNotice;
|
|
||||||
google.registry.model.transfer.DomainTransferData transferData;
|
|
||||||
google.registry.persistence.VKey<google.registry.model.contact.Contact> adminContact;
|
google.registry.persistence.VKey<google.registry.model.contact.Contact> adminContact;
|
||||||
google.registry.persistence.VKey<google.registry.model.contact.Contact> billingContact;
|
google.registry.persistence.VKey<google.registry.model.contact.Contact> billingContact;
|
||||||
google.registry.persistence.VKey<google.registry.model.contact.Contact> registrantContact;
|
google.registry.persistence.VKey<google.registry.model.contact.Contact> registrantContact;
|
||||||
|
@ -95,9 +54,6 @@ class google.registry.model.domain.Domain {
|
||||||
java.lang.String lastEppUpdateClientId;
|
java.lang.String lastEppUpdateClientId;
|
||||||
java.lang.String smdId;
|
java.lang.String smdId;
|
||||||
java.lang.String tld;
|
java.lang.String tld;
|
||||||
java.util.Set<google.registry.model.domain.GracePeriod> gracePeriods;
|
|
||||||
java.util.Set<google.registry.model.domain.secdns.DelegationSignerData> dsData;
|
|
||||||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
|
||||||
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.Host>> nsHosts;
|
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.Host>> nsHosts;
|
||||||
java.util.Set<java.lang.String> subordinateHosts;
|
java.util.Set<java.lang.String> subordinateHosts;
|
||||||
org.joda.time.DateTime autorenewEndTime;
|
org.joda.time.DateTime autorenewEndTime;
|
||||||
|
@ -106,14 +62,8 @@ class google.registry.model.domain.Domain {
|
||||||
org.joda.time.DateTime lastTransferTime;
|
org.joda.time.DateTime lastTransferTime;
|
||||||
org.joda.time.DateTime registrationExpirationTime;
|
org.joda.time.DateTime registrationExpirationTime;
|
||||||
}
|
}
|
||||||
class google.registry.model.domain.DomainAuthInfo {
|
|
||||||
google.registry.model.eppcommon.AuthInfo$PasswordAuth pw;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.DomainBase {
|
class google.registry.model.domain.DomainBase {
|
||||||
@Id java.lang.String repoId;
|
@Id java.lang.String repoId;
|
||||||
google.registry.model.domain.DomainAuthInfo authInfo;
|
|
||||||
google.registry.model.domain.launch.LaunchNotice launchNotice;
|
|
||||||
google.registry.model.transfer.DomainTransferData transferData;
|
|
||||||
google.registry.persistence.VKey<google.registry.model.contact.Contact> adminContact;
|
google.registry.persistence.VKey<google.registry.model.contact.Contact> adminContact;
|
||||||
google.registry.persistence.VKey<google.registry.model.contact.Contact> billingContact;
|
google.registry.persistence.VKey<google.registry.model.contact.Contact> billingContact;
|
||||||
google.registry.persistence.VKey<google.registry.model.contact.Contact> registrantContact;
|
google.registry.persistence.VKey<google.registry.model.contact.Contact> registrantContact;
|
||||||
|
@ -127,9 +77,6 @@ class google.registry.model.domain.DomainBase {
|
||||||
java.lang.String lastEppUpdateClientId;
|
java.lang.String lastEppUpdateClientId;
|
||||||
java.lang.String smdId;
|
java.lang.String smdId;
|
||||||
java.lang.String tld;
|
java.lang.String tld;
|
||||||
java.util.Set<google.registry.model.domain.GracePeriod> gracePeriods;
|
|
||||||
java.util.Set<google.registry.model.domain.secdns.DelegationSignerData> dsData;
|
|
||||||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
|
||||||
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.Host>> nsHosts;
|
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.Host>> nsHosts;
|
||||||
java.util.Set<java.lang.String> subordinateHosts;
|
java.util.Set<java.lang.String> subordinateHosts;
|
||||||
org.joda.time.DateTime autorenewEndTime;
|
org.joda.time.DateTime autorenewEndTime;
|
||||||
|
@ -144,103 +91,14 @@ class google.registry.model.domain.DomainHistory {
|
||||||
boolean bySuperuser;
|
boolean bySuperuser;
|
||||||
byte[] xmlBytes;
|
byte[] xmlBytes;
|
||||||
google.registry.model.domain.DomainBase domainBase;
|
google.registry.model.domain.DomainBase domainBase;
|
||||||
google.registry.model.domain.Period period;
|
|
||||||
google.registry.model.eppcommon.Trid trid;
|
|
||||||
google.registry.model.reporting.HistoryEntry$Type type;
|
google.registry.model.reporting.HistoryEntry$Type type;
|
||||||
java.lang.Boolean requestedByRegistrar;
|
java.lang.Boolean requestedByRegistrar;
|
||||||
java.lang.String clientId;
|
java.lang.String clientId;
|
||||||
java.lang.String otherClientId;
|
java.lang.String otherClientId;
|
||||||
java.lang.String reason;
|
java.lang.String reason;
|
||||||
java.util.Set<google.registry.model.domain.GracePeriod$GracePeriodHistory> gracePeriodHistories;
|
|
||||||
java.util.Set<google.registry.model.domain.secdns.DomainDsDataHistory> dsDataHistories;
|
|
||||||
java.util.Set<google.registry.model.reporting.DomainTransactionRecord> domainTransactionRecords;
|
|
||||||
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.Host>> nsHosts;
|
java.util.Set<google.registry.persistence.VKey<google.registry.model.host.Host>> nsHosts;
|
||||||
org.joda.time.DateTime modificationTime;
|
org.joda.time.DateTime modificationTime;
|
||||||
}
|
}
|
||||||
class google.registry.model.domain.GracePeriod {
|
|
||||||
google.registry.model.domain.rgp.GracePeriodStatus type;
|
|
||||||
java.lang.String clientId;
|
|
||||||
long gracePeriodId;
|
|
||||||
org.joda.time.DateTime expirationTime;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.GracePeriod$GracePeriodHistory {
|
|
||||||
google.registry.model.domain.rgp.GracePeriodStatus type;
|
|
||||||
java.lang.Long domainHistoryRevisionId;
|
|
||||||
java.lang.Long gracePeriodHistoryRevisionId;
|
|
||||||
java.lang.String clientId;
|
|
||||||
long gracePeriodId;
|
|
||||||
org.joda.time.DateTime expirationTime;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.Period {
|
|
||||||
google.registry.model.domain.Period$Unit unit;
|
|
||||||
java.lang.Integer value;
|
|
||||||
}
|
|
||||||
enum google.registry.model.domain.Period$Unit {
|
|
||||||
MONTHS;
|
|
||||||
YEARS;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.launch.LaunchNotice {
|
|
||||||
google.registry.model.domain.launch.LaunchNotice$NoticeIdType noticeId;
|
|
||||||
org.joda.time.DateTime acceptedTime;
|
|
||||||
org.joda.time.DateTime expirationTime;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.launch.LaunchNotice$NoticeIdType {
|
|
||||||
java.lang.String tcnId;
|
|
||||||
java.lang.String validatorId;
|
|
||||||
}
|
|
||||||
enum google.registry.model.domain.rgp.GracePeriodStatus {
|
|
||||||
ADD;
|
|
||||||
AUTO_RENEW;
|
|
||||||
PENDING_DELETE;
|
|
||||||
PENDING_RESTORE;
|
|
||||||
REDEMPTION;
|
|
||||||
RENEW;
|
|
||||||
TRANSFER;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.secdns.DelegationSignerData {
|
|
||||||
byte[] digest;
|
|
||||||
int algorithm;
|
|
||||||
int digestType;
|
|
||||||
int keyTag;
|
|
||||||
}
|
|
||||||
class google.registry.model.domain.secdns.DomainDsDataHistory {
|
|
||||||
byte[] digest;
|
|
||||||
int algorithm;
|
|
||||||
int digestType;
|
|
||||||
int keyTag;
|
|
||||||
java.lang.Long domainHistoryRevisionId;
|
|
||||||
java.lang.Long dsDataHistoryRevisionId;
|
|
||||||
}
|
|
||||||
class google.registry.model.eppcommon.AuthInfo$PasswordAuth {
|
|
||||||
java.lang.String repoId;
|
|
||||||
java.lang.String value;
|
|
||||||
}
|
|
||||||
class google.registry.model.eppcommon.PresenceMarker {
|
|
||||||
boolean marked;
|
|
||||||
}
|
|
||||||
enum google.registry.model.eppcommon.StatusValue {
|
|
||||||
CLIENT_DELETE_PROHIBITED;
|
|
||||||
CLIENT_HOLD;
|
|
||||||
CLIENT_RENEW_PROHIBITED;
|
|
||||||
CLIENT_TRANSFER_PROHIBITED;
|
|
||||||
CLIENT_UPDATE_PROHIBITED;
|
|
||||||
INACTIVE;
|
|
||||||
LINKED;
|
|
||||||
OK;
|
|
||||||
PENDING_CREATE;
|
|
||||||
PENDING_DELETE;
|
|
||||||
PENDING_TRANSFER;
|
|
||||||
PENDING_UPDATE;
|
|
||||||
SERVER_DELETE_PROHIBITED;
|
|
||||||
SERVER_HOLD;
|
|
||||||
SERVER_RENEW_PROHIBITED;
|
|
||||||
SERVER_TRANSFER_PROHIBITED;
|
|
||||||
SERVER_UPDATE_PROHIBITED;
|
|
||||||
}
|
|
||||||
class google.registry.model.eppcommon.Trid {
|
|
||||||
java.lang.String clientTransactionId;
|
|
||||||
java.lang.String serverTransactionId;
|
|
||||||
}
|
|
||||||
class google.registry.model.host.Host {
|
class google.registry.model.host.Host {
|
||||||
@Id java.lang.String repoId;
|
@Id java.lang.String repoId;
|
||||||
google.registry.persistence.VKey<google.registry.model.domain.Domain> superordinateDomain;
|
google.registry.persistence.VKey<google.registry.model.domain.Domain> superordinateDomain;
|
||||||
|
@ -248,7 +106,6 @@ class google.registry.model.host.Host {
|
||||||
java.lang.String currentSponsorClientId;
|
java.lang.String currentSponsorClientId;
|
||||||
java.lang.String fullyQualifiedHostName;
|
java.lang.String fullyQualifiedHostName;
|
||||||
java.lang.String lastEppUpdateClientId;
|
java.lang.String lastEppUpdateClientId;
|
||||||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
|
||||||
java.util.Set<java.net.InetAddress> inetAddresses;
|
java.util.Set<java.net.InetAddress> inetAddresses;
|
||||||
org.joda.time.DateTime deletionTime;
|
org.joda.time.DateTime deletionTime;
|
||||||
org.joda.time.DateTime lastEppUpdateTime;
|
org.joda.time.DateTime lastEppUpdateTime;
|
||||||
|
@ -262,7 +119,6 @@ class google.registry.model.host.HostBase {
|
||||||
java.lang.String currentSponsorClientId;
|
java.lang.String currentSponsorClientId;
|
||||||
java.lang.String fullyQualifiedHostName;
|
java.lang.String fullyQualifiedHostName;
|
||||||
java.lang.String lastEppUpdateClientId;
|
java.lang.String lastEppUpdateClientId;
|
||||||
java.util.Set<google.registry.model.eppcommon.StatusValue> status;
|
|
||||||
java.util.Set<java.net.InetAddress> inetAddresses;
|
java.util.Set<java.net.InetAddress> inetAddresses;
|
||||||
org.joda.time.DateTime deletionTime;
|
org.joda.time.DateTime deletionTime;
|
||||||
org.joda.time.DateTime lastEppUpdateTime;
|
org.joda.time.DateTime lastEppUpdateTime;
|
||||||
|
@ -274,15 +130,12 @@ class google.registry.model.host.HostHistory {
|
||||||
@Parent com.googlecode.objectify.Key<? extends google.registry.model.EppResource> parent;
|
@Parent com.googlecode.objectify.Key<? extends google.registry.model.EppResource> parent;
|
||||||
boolean bySuperuser;
|
boolean bySuperuser;
|
||||||
byte[] xmlBytes;
|
byte[] xmlBytes;
|
||||||
google.registry.model.domain.Period period;
|
|
||||||
google.registry.model.eppcommon.Trid trid;
|
|
||||||
google.registry.model.host.HostBase hostBase;
|
google.registry.model.host.HostBase hostBase;
|
||||||
google.registry.model.reporting.HistoryEntry$Type type;
|
google.registry.model.reporting.HistoryEntry$Type type;
|
||||||
java.lang.Boolean requestedByRegistrar;
|
java.lang.Boolean requestedByRegistrar;
|
||||||
java.lang.String clientId;
|
java.lang.String clientId;
|
||||||
java.lang.String otherClientId;
|
java.lang.String otherClientId;
|
||||||
java.lang.String reason;
|
java.lang.String reason;
|
||||||
java.util.Set<google.registry.model.reporting.DomainTransactionRecord> domainTransactionRecords;
|
|
||||||
org.joda.time.DateTime modificationTime;
|
org.joda.time.DateTime modificationTime;
|
||||||
}
|
}
|
||||||
class google.registry.model.index.EppResourceIndex {
|
class google.registry.model.index.EppResourceIndex {
|
||||||
|
@ -294,52 +147,16 @@ class google.registry.model.index.EppResourceIndex {
|
||||||
class google.registry.model.index.EppResourceIndexBucket {
|
class google.registry.model.index.EppResourceIndexBucket {
|
||||||
@Id long bucketId;
|
@Id long bucketId;
|
||||||
}
|
}
|
||||||
class google.registry.model.reporting.DomainTransactionRecord {
|
|
||||||
google.registry.model.reporting.DomainTransactionRecord$TransactionReportField reportField;
|
|
||||||
java.lang.Integer reportAmount;
|
|
||||||
java.lang.String tld;
|
|
||||||
org.joda.time.DateTime reportingTime;
|
|
||||||
}
|
|
||||||
enum google.registry.model.reporting.DomainTransactionRecord$TransactionReportField {
|
|
||||||
DELETED_DOMAINS_GRACE;
|
|
||||||
DELETED_DOMAINS_NOGRACE;
|
|
||||||
NET_ADDS_10_YR;
|
|
||||||
NET_ADDS_1_YR;
|
|
||||||
NET_ADDS_2_YR;
|
|
||||||
NET_ADDS_3_YR;
|
|
||||||
NET_ADDS_4_YR;
|
|
||||||
NET_ADDS_5_YR;
|
|
||||||
NET_ADDS_6_YR;
|
|
||||||
NET_ADDS_7_YR;
|
|
||||||
NET_ADDS_8_YR;
|
|
||||||
NET_ADDS_9_YR;
|
|
||||||
NET_RENEWS_10_YR;
|
|
||||||
NET_RENEWS_1_YR;
|
|
||||||
NET_RENEWS_2_YR;
|
|
||||||
NET_RENEWS_3_YR;
|
|
||||||
NET_RENEWS_4_YR;
|
|
||||||
NET_RENEWS_5_YR;
|
|
||||||
NET_RENEWS_6_YR;
|
|
||||||
NET_RENEWS_7_YR;
|
|
||||||
NET_RENEWS_8_YR;
|
|
||||||
NET_RENEWS_9_YR;
|
|
||||||
RESTORED_DOMAINS;
|
|
||||||
TRANSFER_NACKED;
|
|
||||||
TRANSFER_SUCCESSFUL;
|
|
||||||
}
|
|
||||||
class google.registry.model.reporting.HistoryEntry {
|
class google.registry.model.reporting.HistoryEntry {
|
||||||
@Id java.lang.Long id;
|
@Id java.lang.Long id;
|
||||||
@Parent com.googlecode.objectify.Key<? extends google.registry.model.EppResource> parent;
|
@Parent com.googlecode.objectify.Key<? extends google.registry.model.EppResource> parent;
|
||||||
boolean bySuperuser;
|
boolean bySuperuser;
|
||||||
byte[] xmlBytes;
|
byte[] xmlBytes;
|
||||||
google.registry.model.domain.Period period;
|
|
||||||
google.registry.model.eppcommon.Trid trid;
|
|
||||||
google.registry.model.reporting.HistoryEntry$Type type;
|
google.registry.model.reporting.HistoryEntry$Type type;
|
||||||
java.lang.Boolean requestedByRegistrar;
|
java.lang.Boolean requestedByRegistrar;
|
||||||
java.lang.String clientId;
|
java.lang.String clientId;
|
||||||
java.lang.String otherClientId;
|
java.lang.String otherClientId;
|
||||||
java.lang.String reason;
|
java.lang.String reason;
|
||||||
java.util.Set<google.registry.model.reporting.DomainTransactionRecord> domainTransactionRecords;
|
|
||||||
org.joda.time.DateTime modificationTime;
|
org.joda.time.DateTime modificationTime;
|
||||||
}
|
}
|
||||||
enum google.registry.model.reporting.HistoryEntry$Type {
|
enum google.registry.model.reporting.HistoryEntry$Type {
|
||||||
|
@ -376,30 +193,3 @@ class google.registry.model.server.ServerSecret {
|
||||||
long leastSignificant;
|
long leastSignificant;
|
||||||
long mostSignificant;
|
long mostSignificant;
|
||||||
}
|
}
|
||||||
class google.registry.model.transfer.ContactTransferData {
|
|
||||||
google.registry.model.eppcommon.Trid transferRequestTrid;
|
|
||||||
google.registry.model.transfer.TransferStatus transferStatus;
|
|
||||||
java.lang.String gainingClientId;
|
|
||||||
java.lang.String losingClientId;
|
|
||||||
org.joda.time.DateTime pendingTransferExpirationTime;
|
|
||||||
org.joda.time.DateTime transferRequestTime;
|
|
||||||
}
|
|
||||||
class google.registry.model.transfer.DomainTransferData {
|
|
||||||
google.registry.model.domain.Period transferPeriod;
|
|
||||||
google.registry.model.eppcommon.Trid transferRequestTrid;
|
|
||||||
google.registry.model.transfer.TransferStatus transferStatus;
|
|
||||||
google.registry.persistence.VKey<google.registry.model.poll.PollMessage$Autorenew> serverApproveAutorenewPollMessage;
|
|
||||||
java.lang.String gainingClientId;
|
|
||||||
java.lang.String losingClientId;
|
|
||||||
org.joda.time.DateTime pendingTransferExpirationTime;
|
|
||||||
org.joda.time.DateTime transferRequestTime;
|
|
||||||
org.joda.time.DateTime transferredRegistrationExpirationTime;
|
|
||||||
}
|
|
||||||
enum google.registry.model.transfer.TransferStatus {
|
|
||||||
CLIENT_APPROVED;
|
|
||||||
CLIENT_CANCELLED;
|
|
||||||
CLIENT_REJECTED;
|
|
||||||
PENDING;
|
|
||||||
SERVER_APPROVED;
|
|
||||||
SERVER_CANCELLED;
|
|
||||||
}
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue