Package google.registry.model.domain
Class Domain
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.UpdateAutoTimestampEntity
-
- google.registry.model.EppResource
-
- google.registry.model.domain.DomainBase
-
- google.registry.model.domain.Domain
-
- All Implemented Interfaces:
Buildable
,EppResource.ForeignKeyedEppResource
,EppResource.ResourceWithTransferData<DomainTransferData>
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Entity public class Domain extends DomainBase implements EppResource.ForeignKeyedEppResource
A persistable domain resource including mutable and non-mutable fields.- See Also:
- RFC 5731, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Domain.Builder
A builder for constructingDomain
, since it is immutable.-
Nested classes/interfaces inherited from class google.registry.model.EppResource
EppResource.BuilderWithTransferData<T extends TransferData,B extends EppResource.BuilderWithTransferData<T,B>>, EppResource.ForeignKeyedEppResource, EppResource.ResourceWithTransferData<T extends TransferData>
-
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Nested classes/interfaces inherited from interface google.registry.model.Buildable
Buildable.GenericBuilder<S,B extends Buildable.GenericBuilder<?,?>>, Buildable.Overlayable<T>
-
-
Field Summary
-
Fields inherited from class google.registry.model.domain.DomainBase
MAX_REGISTRATION_YEARS
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description Domain()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Domain.Builder
asBuilder()
An override ofEppResource.asBuilder()
with tighter typing.Domain
cloneProjectedAtTime(org.joda.time.DateTime now)
Return a clone of the resource with timed status values modified using the given time.VKey<Domain>
createVKey()
Create the VKey for the specified EPP resource.static VKey<Domain>
createVKey(java.lang.String repoId)
java.util.Set<VKey<Host>>
getNsHosts()
java.lang.String
getRepoId()
protected void
postLoad()
Post-load method to eager load the collections.-
Methods inherited from class google.registry.model.domain.DomainBase
extendRegistrationWithCap, getAdminContact, getAuthInfo, getAutorenewBillingEvent, getAutorenewEndTime, getAutorenewPollMessage, getBillingContact, getContacts, getCurrentBulkToken, getCurrentSponsorRegistrarId, getDeletePollMessage, getDomainName, getDsData, getForeignKey, getGracePeriods, getGracePeriodsOfType, getGracePeriodStatuses, getIdnTableName, getLastTransferTime, getLaunchNotice, getLordnPhase, getNameservers, getReferencedContacts, getRegistrant, getRegistrationExpirationTime, getSmdId, getSubordinateHosts, getTechContact, getTld, getTransferData, loadNameserverHostNames, shouldPublishToDns
-
Methods inherited from class google.registry.model.EppResource
getCreationRegistrarId, getCreationTime, getDeletionTime, getLastEppUpdateRegistrarId, getLastEppUpdateTime, getPersistedCurrentSponsorRegistrarId, getStatusValues, loadCached, loadCached, setCacheForTest, setRepoId
-
Methods inherited from class google.registry.model.UpdateAutoTimestampEntity
copyUpdateTimestamp, getUpdateTimestamp, resetUpdateTimestamp, setUpdateTimestamp
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getRepoId
public java.lang.String getRepoId()
- Overrides:
getRepoId
in classEppResource
-
postLoad
protected void postLoad()
Post-load method to eager load the collections.
-
createVKey
public VKey<Domain> createVKey()
Description copied from class:EppResource
Create the VKey for the specified EPP resource.- Overrides:
createVKey
in classDomainBase
-
cloneProjectedAtTime
public Domain cloneProjectedAtTime(org.joda.time.DateTime now)
Description copied from class:EppResource
Return a clone of the resource with timed status values modified using the given time.- Overrides:
cloneProjectedAtTime
in classDomainBase
-
asBuilder
public Domain.Builder asBuilder()
An override ofEppResource.asBuilder()
with tighter typing.- Specified by:
asBuilder
in interfaceBuildable
- Overrides:
asBuilder
in classDomainBase
-
-