Package google.registry.model.tld
Class Tld
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.tld.Tld
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,Serializable
,Cloneable
Persisted per-TLD configuration data.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
A builder for constructingTld
objects, since they are immutable.static class
Exception to throw when no Tld entity is found for given TLD string(s).static enum
The states a TLD can be in at any given point in time.static enum
The type of TLD, which determines things like backups and escrow policy.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 org.joda.time.Duration
static final org.joda.time.Duration
static final org.joda.time.Duration
static final org.joda.time.Duration
static final org.joda.money.Money
static final org.joda.money.CurrencyUnit
static final boolean
static final org.joda.money.Money
static final boolean
static final org.joda.time.Duration
static final org.joda.time.Duration
static final org.joda.money.Money
static final org.joda.money.Money
static final org.joda.time.Duration
static final org.joda.money.Money
static final org.joda.money.Money
static final Tld.TldState
Default values for all the relevant TLD parameters.static final org.joda.time.Duration
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreateVKey
(String tld) boolean
static Tld
Returns the TLD for a given TLD, throwing if none exists.static com.google.common.collect.ImmutableSet
<Tld> Returns the TLD entities for the given TLD strings, throwing if any don't exist.org.joda.time.Duration
com.google.common.collect.ImmutableSet
<String> com.google.common.collect.ImmutableSet
<String> org.joda.time.Duration
org.joda.time.Duration
org.joda.time.Duration
boolean
Optional
<org.joda.time.DateTime> Returns the time when this TLD was enrolled in the Brand Safety Alliance (BSA) program.org.joda.time.DateTime
org.joda.money.Money
getCreateBillingCost
(org.joda.time.DateTime now) UsePricingEngineProxy.getDomainCreateCost
instead of this to find the cost for a domain create.com.google.common.collect.ImmutableSortedMap
<org.joda.time.DateTime, org.joda.money.Money> org.joda.time.DateTime
org.joda.money.CurrencyUnit
com.google.common.collect.ImmutableList
<VKey<AllocationToken>> Optional
<org.joda.time.Duration> Returns the time to live for A and AAAA records.Optional
<org.joda.time.Duration> Returns the time to live for DS records.Optional
<org.joda.time.Duration> Returns the time to live for NS records.boolean
com.google.common.collect.ImmutableSet
<String> getEapFeeFor
(org.joda.time.DateTime now) Returns the EAP fee for the tld at the given time.com.google.common.collect.ImmutableSortedMap
<org.joda.time.DateTime, org.joda.money.Money> boolean
com.google.common.collect.ImmutableSet
<IdnTableEnum> int
Returns the number of simultaneous DNS publish operations we allow at once.org.joda.time.Duration
org.joda.time.Duration
org.joda.money.Money
Returns the cost of a registry lock/unlock.com.google.common.collect.ImmutableSortedMap
<org.joda.time.DateTime, org.joda.money.Money> org.joda.time.Duration
com.google.common.collect.ImmutableSet
<String> Retrieves an ImmutableSet of all ReservedLists associated with this TLD.org.joda.money.Money
Returns the add-on cost of a domain restore (the flat tld-wide fee charged in addition to one year of renewal for that name).org.joda.money.Money
Returns the cost of a server status change (i.e.org.joda.money.Money
getStandardRenewCost
(org.joda.time.DateTime now) UsePricingEngineProxy.getDomainRenewCost
instead of this to find the cost for a domain renewal, and all derived costs (i.e.com.google.common.net.InternetDomainName
getTld()
Retrieve the actual domain name representing the TLD for which this registry operates.getTldState
(org.joda.time.DateTime now) Retrieve the TLD state at the given time.com.google.common.collect.ImmutableSortedMap
<org.joda.time.DateTime, Tld.TldState> Retrieve the TLD type (real or test).Retrieve the TLD unicode representation.org.joda.time.Duration
void
Invalidates the cache entry.static boolean
isEnrolledWithBsa
(Tld tld, org.joda.time.DateTime now) Checks iftld
is enrolled with BSA.boolean
Retrieve whether invoicing is enabled.boolean
isPdt
(org.joda.time.DateTime now) Retrieve whether this TLD is in predelegation testing.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Field Details
-
DEFAULT_TLD_STATE
Default values for all the relevant TLD parameters. -
DEFAULT_ESCROW_ENABLED
public static final boolean DEFAULT_ESCROW_ENABLED- See Also:
-
DEFAULT_DNS_PAUSED
public static final boolean DEFAULT_DNS_PAUSED- See Also:
-
DEFAULT_ADD_GRACE_PERIOD
public static final org.joda.time.Duration DEFAULT_ADD_GRACE_PERIOD -
DEFAULT_AUTO_RENEW_GRACE_PERIOD
public static final org.joda.time.Duration DEFAULT_AUTO_RENEW_GRACE_PERIOD -
DEFAULT_REDEMPTION_GRACE_PERIOD
public static final org.joda.time.Duration DEFAULT_REDEMPTION_GRACE_PERIOD -
DEFAULT_RENEW_GRACE_PERIOD
public static final org.joda.time.Duration DEFAULT_RENEW_GRACE_PERIOD -
DEFAULT_TRANSFER_GRACE_PERIOD
public static final org.joda.time.Duration DEFAULT_TRANSFER_GRACE_PERIOD -
DEFAULT_AUTOMATIC_TRANSFER_LENGTH
public static final org.joda.time.Duration DEFAULT_AUTOMATIC_TRANSFER_LENGTH -
DEFAULT_PENDING_DELETE_LENGTH
public static final org.joda.time.Duration DEFAULT_PENDING_DELETE_LENGTH -
DEFAULT_ANCHOR_TENANT_ADD_GRACE_PERIOD
public static final org.joda.time.Duration DEFAULT_ANCHOR_TENANT_ADD_GRACE_PERIOD -
DEFAULT_CURRENCY
public static final org.joda.money.CurrencyUnit DEFAULT_CURRENCY -
DEFAULT_CREATE_BILLING_COST
public static final org.joda.money.Money DEFAULT_CREATE_BILLING_COST -
DEFAULT_EAP_BILLING_COST
public static final org.joda.money.Money DEFAULT_EAP_BILLING_COST -
DEFAULT_RENEW_BILLING_COST
public static final org.joda.money.Money DEFAULT_RENEW_BILLING_COST -
DEFAULT_RESTORE_BILLING_COST
public static final org.joda.money.Money DEFAULT_RESTORE_BILLING_COST -
DEFAULT_SERVER_STATUS_CHANGE_BILLING_COST
public static final org.joda.money.Money DEFAULT_SERVER_STATUS_CHANGE_BILLING_COST -
DEFAULT_REGISTRY_LOCK_OR_UNLOCK_BILLING_COST
public static final org.joda.money.Money DEFAULT_REGISTRY_LOCK_OR_UNLOCK_BILLING_COST
-
-
Constructor Details
-
Tld
public Tld()
-
-
Method Details
-
equalYaml
-
get
Returns the TLD for a given TLD, throwing if none exists. -
get
Returns the TLD entities for the given TLD strings, throwing if any don't exist. -
invalidateInCache
public void invalidateInCache()Invalidates the cache entry.This is called automatically when the tld is saved. One should also call it when a tld is deleted.
-
createVKey
-
createVKey
- Overrides:
createVKey
in classImmutableObject
-
isEnrolledWithBsa
Checks iftld
is enrolled with BSA. -
getReservedListNames
Retrieves an ImmutableSet of all ReservedLists associated with this TLD.This set contains only the names of the list and not a reference to the lists. Updates to a reserved list in Cloud SQL are saved as a new ReservedList entity. When using the ReservedList for a tld, the database should be queried for the entity with this name that has the largest revision ID.
-
getTldStr
-
getRoidSuffix
-
getTld
public com.google.common.net.InternetDomainName getTld()Retrieve the actual domain name representing the TLD for which this registry operates. -
getTldType
Retrieve the TLD type (real or test). -
getBsaEnrollStartTime
Returns the time when this TLD was enrolled in the Brand Safety Alliance (BSA) program. -
isInvoicingEnabled
public boolean isInvoicingEnabled()Retrieve whether invoicing is enabled. -
getTldState
Retrieve the TLD state at the given time. Defaults toTld.TldState.PREDELEGATION
.Note that
Tld.TldState.PDT
TLDs pretend to be inTld.TldState.GENERAL_AVAILABILITY
. -
isPdt
public boolean isPdt(org.joda.time.DateTime now) Retrieve whether this TLD is in predelegation testing. -
getCreationTime
public org.joda.time.DateTime getCreationTime() -
getEscrowEnabled
public boolean getEscrowEnabled() -
getDnsPaused
public boolean getDnsPaused() -
getDriveFolderId
-
getAddGracePeriodLength
public org.joda.time.Duration getAddGracePeriodLength() -
getAutoRenewGracePeriodLength
public org.joda.time.Duration getAutoRenewGracePeriodLength() -
getRedemptionGracePeriodLength
public org.joda.time.Duration getRedemptionGracePeriodLength() -
getRenewGracePeriodLength
public org.joda.time.Duration getRenewGracePeriodLength() -
getTransferGracePeriodLength
public org.joda.time.Duration getTransferGracePeriodLength() -
getAutomaticTransferLength
public org.joda.time.Duration getAutomaticTransferLength() -
getPendingDeleteLength
public org.joda.time.Duration getPendingDeleteLength() -
getAnchorTenantAddGracePeriodLength
public org.joda.time.Duration getAnchorTenantAddGracePeriodLength() -
getPremiumListName
-
getCurrency
public org.joda.money.CurrencyUnit getCurrency() -
getCreateBillingCost
public org.joda.money.Money getCreateBillingCost(org.joda.time.DateTime now) UsePricingEngineProxy.getDomainCreateCost
instead of this to find the cost for a domain create. -
getCreateBillingCostTransitions
public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,org.joda.money.Money> getCreateBillingCostTransitions() -
getRestoreBillingCost
public org.joda.money.Money getRestoreBillingCost()Returns the add-on cost of a domain restore (the flat tld-wide fee charged in addition to one year of renewal for that name). -
getStandardRenewCost
public org.joda.money.Money getStandardRenewCost(org.joda.time.DateTime now) UsePricingEngineProxy.getDomainRenewCost
instead of this to find the cost for a domain renewal, and all derived costs (i.e. autorenews, transfers, and the per-domain part of a restore cost). -
getServerStatusChangeBillingCost
public org.joda.money.Money getServerStatusChangeBillingCost()Returns the cost of a server status change (i.e. lock). -
getRegistryLockOrUnlockBillingCost
public org.joda.money.Money getRegistryLockOrUnlockBillingCost()Returns the cost of a registry lock/unlock. -
getTldStateTransitions
public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,Tld.TldState> getTldStateTransitions() -
getRenewBillingCostTransitions
public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,org.joda.money.Money> getRenewBillingCostTransitions() -
getEapFeeFor
Returns the EAP fee for the tld at the given time. -
getEapFeeScheduleAsMap
public com.google.common.collect.ImmutableSortedMap<org.joda.time.DateTime,org.joda.money.Money> getEapFeeScheduleAsMap() -
getLordnUsername
-
getClaimsPeriodEnd
public org.joda.time.DateTime getClaimsPeriodEnd() -
getPricingEngineClassName
-
getDnsWriters
-
getNumDnsPublishLocks
public int getNumDnsPublishLocks()Returns the number of simultaneous DNS publish operations we allow at once. -
getDnsAPlusAaaaTtl
Returns the time to live for A and AAAA records. -
getDnsNsTtl
Returns the time to live for NS records. -
getDnsDsTtl
Returns the time to live for DS records. -
getTldUnicode
Retrieve the TLD unicode representation. -
getAllowedRegistrantContactIds
-
getAllowedFullyQualifiedHostNames
-
getDefaultPromoTokens
-
getIdnTables
-
getBreakglassMode
public boolean getBreakglassMode() -
asBuilder
-