Package google.registry.model.domain
Class DesignatedContact
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.domain.DesignatedContact
-
- All Implemented Interfaces:
UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Embeddable public class DesignatedContact extends ImmutableObject implements UnsafeSerializable
Persisted type for storing a domain's contact associations.A contact association on a domain consists of the contact key and the contact "type", which is the designated role of this contact with respect to this domain. When converting to and from EPP XML, we use
ForeignKeyedDesignatedContact
to replace the contact's primary key with its foreign key, since that is what EPP exposes.Note one could in principle store contact foreign keys here in addition to keys, unlike the situation with hosts where client-side renames would make that data stale. However, we sometimes rename contacts internally ourselves, and it's easier to use the same model for both cases.
This entity type is not persisted in Cloud SQL. The different roles are represented as separate fields in the Domain table.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DesignatedContact.Type
XML type for contact types.-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
-
Field Summary
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description DesignatedContact()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DesignatedContact
create(DesignatedContact.Type type, VKey<Contact> contact)
VKey<Contact>
getContactKey()
DesignatedContact.Type
getType()
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
create
public static DesignatedContact create(DesignatedContact.Type type, VKey<Contact> contact)
-
getType
public DesignatedContact.Type getType()
-
-