Package google.registry.model.domain
Class DesignatedContact
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.domain.DesignatedContact
- All Implemented Interfaces:
UnsafeSerializable
,Serializable
,Cloneable
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.
- See Also:
-
Nested Class Summary
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
-
Method Summary
Modifier and TypeMethodDescriptionstatic DesignatedContact
create
(DesignatedContact.Type type, VKey<Contact> contact) getType()
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
DesignatedContact
public DesignatedContact()
-
-
Method Details
-
create
-
getType
-
getContactKey
-