Package google.registry.model.smd
Class SignedMarkRevocationList
java.lang.Object
google.registry.model.ImmutableObject
google.registry.model.smd.SignedMarkRevocationList
- All Implemented Interfaces:
Cloneable
Signed Mark Data Revocation List (SMDRL).
Represents a SMDRL file downloaded from the TMCH MarksDB each day. The list holds the ids of
all the SignedMarks
that have been revoked. A new list is created for each new
file that's created, depending on the timestamp.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class google.registry.model.ImmutableObject
ImmutableObject.DoNotHydrate, ImmutableObject.IgnoredInDiffableMap, ImmutableObject.Insignificant
-
Field Summary
Fields inherited from class google.registry.model.ImmutableObject
hashCode
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic SignedMarkRevocationList
create
(org.joda.time.DateTime creationTime, com.google.common.collect.ImmutableMap<String, org.joda.time.DateTime> revokes) Create a newSignedMarkRevocationList
without saving it.static SignedMarkRevocationList
get()
org.joda.time.DateTime
Returns the creation timestamp specified at the top of the SMDRL CSV file.boolean
isSmdRevoked
(String smdId, org.joda.time.DateTime now) Returnstrue
if the SMD ID has been revoked at the given point in time.save()
Save this list to Cloud SQL.int
size()
Returns the number of revocations.Methods inherited from class google.registry.model.ImmutableObject
clone, cloneEmptyToNull, createVKey, equals, getSignificantFields, hashCode, toDiffableFieldMap, toHydratedString, toString, toStringHelper
-
Constructor Details
-
SignedMarkRevocationList
public SignedMarkRevocationList()
-
-
Method Details
-
get
-
create
public static SignedMarkRevocationList create(org.joda.time.DateTime creationTime, com.google.common.collect.ImmutableMap<String, org.joda.time.DateTime> revokes) Create a newSignedMarkRevocationList
without saving it. -
isSmdRevoked
Returnstrue
if the SMD ID has been revoked at the given point in time. -
getCreationTime
public org.joda.time.DateTime getCreationTime()Returns the creation timestamp specified at the top of the SMDRL CSV file. -
size
public int size()Returns the number of revocations. -
save
Save this list to Cloud SQL. Returnsthis
.
-