Package google.registry.model.domain
Class DomainHistory
- java.lang.Object
-
- google.registry.model.ImmutableObject
-
- google.registry.model.reporting.HistoryEntry
-
- google.registry.model.domain.DomainHistory
-
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,java.io.Serializable
,java.lang.Cloneable
@Entity public class DomainHistory extends HistoryEntry
A persisted history entry representing an EPP modification to a domain.In addition to the general history fields (e.g. action time, registrar ID) we also persist a copy of the domain entity at this point in time. We persist a raw
DomainBase
so that the foreign-keyed fields in that class can refer to this object.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DomainHistory.Builder
-
Nested classes/interfaces inherited from class google.registry.model.reporting.HistoryEntry
HistoryEntry.HistoryEntryId, HistoryEntry.Type
-
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.reporting.HistoryEntry
repoId, revisionId
-
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
-
Constructor Summary
Constructors Constructor Description DomainHistory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DomainHistory.Builder
asBuilder()
VKey<DomainHistory>
createVKey()
Creates aVKey
instance for this entity.java.util.Optional<DomainBase>
getDomainBase()
The values of all the fields on theDomainBase
object after the action represented by this history object was executed.java.util.Set<DomainTransactionRecord>
getDomainTransactionRecords()
com.google.common.collect.ImmutableSet<DomainDsDataHistory>
getDsDataHistories()
Returns the collection ofDomainDsDataHistory
instances.java.util.Set<GracePeriod.GracePeriodHistory>
getGracePeriodHistories()
java.util.Set<VKey<Host>>
getNsHosts()
Returns keys to theHost
that are the nameservers for the domain.java.lang.String
getOtherRegistrarId()
Period
getPeriod()
protected DomainBase
getResource()
java.util.Optional<? extends EppResource>
getResourceAtPointInTime()
protected void
postLoad()
-
Methods inherited from class google.registry.model.reporting.HistoryEntry
copy, createBuilderForResource, getBySuperuser, getHistoryEntryId, getModificationTime, getReason, getRegistrarId, getRepoId, getRequestedByRegistrar, getResourceType, getRevisionId, getTrid, getType, getXmlBytes, processResourcePostLoad
-
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
-
-
-
Method Detail
-
getResource
protected DomainBase getResource()
- Specified by:
getResource
in classHistoryEntry
-
getDomainBase
public java.util.Optional<DomainBase> getDomainBase()
The values of all the fields on theDomainBase
object after the action represented by this history object was executed.Will be absent for objects created prior to the Registry 3.0 SQL migration.
-
getDomainTransactionRecords
public java.util.Set<DomainTransactionRecord> getDomainTransactionRecords()
-
getNsHosts
public java.util.Set<VKey<Host>> getNsHosts()
Returns keys to theHost
that are the nameservers for the domain.
-
getDsDataHistories
public com.google.common.collect.ImmutableSet<DomainDsDataHistory> getDsDataHistories()
Returns the collection ofDomainDsDataHistory
instances.
-
getGracePeriodHistories
public java.util.Set<GracePeriod.GracePeriodHistory> getGracePeriodHistories()
-
createVKey
public VKey<DomainHistory> createVKey()
Creates aVKey
instance for this entity.- Overrides:
createVKey
in classImmutableObject
-
getResourceAtPointInTime
public java.util.Optional<? extends EppResource> getResourceAtPointInTime()
- Specified by:
getResourceAtPointInTime
in classHistoryEntry
-
getOtherRegistrarId
public java.lang.String getOtherRegistrarId()
-
getPeriod
public Period getPeriod()
-
postLoad
protected void postLoad()
- Overrides:
postLoad
in classHistoryEntry
-
asBuilder
public DomainHistory.Builder asBuilder()
- Specified by:
asBuilder
in interfaceBuildable
- Specified by:
asBuilder
in classHistoryEntry
-
-