Class DomainBase
- All Implemented Interfaces:
Buildable
,EppResource.ResourceWithTransferData<DomainTransferData>
,UnsafeSerializable
,Serializable
,Cloneable
- Direct Known Subclasses:
Domain
This class deliberately does not include an Id
so that any foreign-keyed fields can
refer to the proper parent entity's ID, whether we're storing this in the DB itself or as part of
another entity.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
DomainBase.Builder<T extends DomainBase,
B extends DomainBase.Builder<T, B>> 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
Modifier and TypeFieldDescriptionstatic final int
The max number of years that a domain can be registered for, as set by ICANN policy.Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionDomainBase.Builder
<? extends DomainBase, ?> An override ofEppResource.asBuilder()
with tighter typing.cloneProjectedAtTime
(org.joda.time.DateTime now) Return a clone of the resource with timed status values modified using the given time.Create the VKey for the specified EPP resource.static org.joda.time.DateTime
extendRegistrationWithCap
(org.joda.time.DateTime now, org.joda.time.DateTime currentExpirationTime, Integer extendedRegistrationYears) Return what the expiration time would be if the given number of years were added to it.com.google.common.collect.ImmutableSet
<DesignatedContact> Gets all associated contacts for the domain, including the registrant.Optional
<org.joda.time.DateTime> Returns the autorenew end time if there is one, otherwise empty.com.google.common.collect.ImmutableSet
<DesignatedContact> Associated contacts for the domain (other than registrant).final String
com.google.common.collect.ImmutableSet
<DomainDsData> Get the foreign key string for this resource.com.google.common.collect.ImmutableSet
<GracePeriod> com.google.common.collect.ImmutableSet
<GracePeriod> getGracePeriodsOfType
(GracePeriodStatus gracePeriodType) Returns the subset of grace periods having the specified type.com.google.common.collect.ImmutableSet
<GracePeriodStatus> Returns the Registry Grace Period Statuses for this domain.org.joda.time.DateTime
The time that this resource was last transferred.Returns all referenced contacts from this domain.A key to the registrant who registered this domain.org.joda.time.DateTime
getSmdId()
com.google.common.collect.ImmutableSet
<String> getTld()
com.google.common.collect.ImmutableSortedSet
<String> Loads and returns the fully qualified host names of all linked nameservers.boolean
Returns true if DNS information should be published for the given domain.Methods inherited from class google.registry.model.EppResource
getCreationRegistrarId, getCreationTime, getDeletionTime, getLastEppUpdateRegistrarId, getLastEppUpdateTime, getPersistedCurrentSponsorRegistrarId, getRepoId, 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
-
Field Details
-
MAX_REGISTRATION_YEARS
public static final int MAX_REGISTRATION_YEARSThe max number of years that a domain can be registered for, as set by ICANN policy.- See Also:
-
-
Constructor Details
-
DomainBase
public DomainBase()
-
-
Method Details
-
getLordnPhase
-
getSubordinateHosts
-
getRegistrationExpirationTime
public org.joda.time.DateTime getRegistrationExpirationTime() -
getDeletePollMessage
-
getAutorenewBillingEvent
-
getAutorenewPollMessage
-
getGracePeriods
-
getSmdId
-
getCurrentBulkToken
-
getAutorenewEndTime
Returns the autorenew end time if there is one, otherwise empty.Note that
DateTimeUtils.END_OF_TIME
is used as a sentinel value in the database representation to signify that autorenew doesn't end, and is mapped to empty here for the purposes of more legible business logic. -
getTransferData
- Specified by:
getTransferData
in interfaceEppResource.ResourceWithTransferData<DomainTransferData>
-
getLastTransferTime
public org.joda.time.DateTime getLastTransferTime()Description copied from interface:EppResource.ResourceWithTransferData
The time that this resource was last transferred.Can be null if the resource has never been transferred.
- Specified by:
getLastTransferTime
in interfaceEppResource.ResourceWithTransferData<DomainTransferData>
-
getForeignKey
Description copied from class:EppResource
Get the foreign key string for this resource.- Specified by:
getForeignKey
in classEppResource
-
getDomainName
-
getDsData
-
getLaunchNotice
-
getIdnTableName
-
getNameservers
-
getCurrentSponsorRegistrarId
-
shouldPublishToDns
public boolean shouldPublishToDns()Returns true if DNS information should be published for the given domain. -
getGracePeriodStatuses
Returns the Registry Grace Period Statuses for this domain.This collects all statuses from the domain's
GracePeriod
entries and also adds the PENDING_DELETE status if needed. -
getGracePeriodsOfType
public com.google.common.collect.ImmutableSet<GracePeriod> getGracePeriodsOfType(GracePeriodStatus gracePeriodType) Returns the subset of grace periods having the specified type. -
cloneProjectedAtTime
Description copied from class:EppResource
Return a clone of the resource with timed status values modified using the given time.- Specified by:
cloneProjectedAtTime
in classEppResource
-
extendRegistrationWithCap
public static org.joda.time.DateTime extendRegistrationWithCap(org.joda.time.DateTime now, org.joda.time.DateTime currentExpirationTime, @Nullable Integer extendedRegistrationYears) Return what the expiration time would be if the given number of years were added to it. -
loadNameserverHostNames
Loads and returns the fully qualified host names of all linked nameservers. -
getRegistrant
A key to the registrant who registered this domain. -
getAdminContact
-
getBillingContact
-
getTechContact
-
getContacts
Associated contacts for the domain (other than registrant).Note: This can be an empty set if no contacts are present for the domain.
-
getAllContacts
Gets all associated contacts for the domain, including the registrant.Note: This can be an empty set if no contacts are present for the domain.
-
getAuthInfo
-
getReferencedContacts
Returns all referenced contacts from this domain.Note: This can be an empty set if no contacts are present for the domain.
-
getTld
-
createVKey
Description copied from class:EppResource
Create the VKey for the specified EPP resource.- Specified by:
createVKey
in classEppResource
-
asBuilder
An override ofEppResource.asBuilder()
with tighter typing.- Specified by:
asBuilder
in interfaceBuildable
- Specified by:
asBuilder
in classEppResource
-