Package google.registry.model.reporting
Class HistoryEntry
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.reporting.HistoryEntry
- All Implemented Interfaces:
Buildable
,UnsafeSerializable
,Serializable
,Cloneable
- Direct Known Subclasses:
ContactHistory
,DomainHistory
,HostHistory
@MappedSuperclass
public abstract class HistoryEntry
extends ImmutableObject
implements Buildable, UnsafeSerializable
A record of an EPP command that mutated a resource.
This abstract class has three subclasses that include the parent resource itself and are persisted to Cloud SQL.
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
HistoryEntry.Builder<T extends HistoryEntry,
B extends HistoryEntry.Builder<?, ?>> A builder forHistoryEntry
since it is immutablestatic class
Class to represent the composite primary key of aHistoryEntry
.static enum
Represents the type of history entry.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 TypeFieldDescriptionprotected String
The repo ID of the embeddedEppResource
that this event mutated.protected Long
The autogenerated id of this event.Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionabstract HistoryEntry.Builder
<? extends HistoryEntry, ?> protected static void
copy
(HistoryEntry src, HistoryEntry dst) static <E extends EppResource>
HistoryEntry.Builder<? extends HistoryEntry, ?> createBuilderForResource
(E parent) boolean
org.joda.time.DateTime
protected abstract EppResource
abstract Optional
<? extends EppResource> Class
<? extends EppResource> long
getTrid()
Returns the TRID, which may be null if the entry was not created by a normal flow.getType()
byte[]
protected void
postLoad()
protected void
Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Field Details
-
revisionId
The autogenerated id of this event. -
repoId
The repo ID of the embeddedEppResource
that this event mutated.Note that the embedded EPP resource is of a base type for which the repo ID field is
@Transient
, which is NOT persisted as part of the embedded entity. After aHistoryEntry
is loaded from SQL, thepostLoad()
methods re-populates the field inside the EPP resource.
-
-
Constructor Details
-
HistoryEntry
public HistoryEntry()
-
-
Method Details
-
getRevisionId
public long getRevisionId() -
getResource
-
getResourceType
-
getRepoId
-
getHistoryEntryId
-
getType
-
getXmlBytes
public byte[] getXmlBytes() -
getModificationTime
public org.joda.time.DateTime getModificationTime() -
getRegistrarId
-
getTrid
Returns the TRID, which may be null if the entry was not created by a normal flow. -
getBySuperuser
public boolean getBySuperuser() -
getReason
-
getRequestedByRegistrar
-
getResourceAtPointInTime
-
processResourcePostLoad
protected void processResourcePostLoad() -
postLoad
protected void postLoad() -
asBuilder
-
copy
-
createBuilderForResource
public static <E extends EppResource> HistoryEntry.Builder<? extends HistoryEntry,?> createBuilderForResource(E parent)
-