Package google.registry.model.tld
Class RegistryLockDao
java.lang.Object
google.registry.model.tld.RegistryLockDao
Data access object for
RegistryLock
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Optional
<RegistryLock> getByRevisionId
(long revisionId) Returns theRegistryLock
referred to by this revision ID, or empty if none exists.static Optional
<RegistryLock> getByVerificationCode
(String verificationCode) Returns the most recent version of theRegistryLock
referred to by the code.static com.google.common.collect.ImmutableList
<RegistryLock> getLocksByRegistrarId
(String registrarId) Returns all lock objects that this registrar has created, including pending locks.static Optional
<RegistryLock> getMostRecentByRepoId
(String repoId) Returns the most recent lock object for a given domain specified by repo ID.static Optional
<RegistryLock> Returns the most recent verified lock object for a given domain specified by repo ID.static Optional
<RegistryLock> Returns the most recent verified unlock for a given domain specified by repo ID.static RegistryLock
save
(RegistryLock registryLock)
-
Constructor Details
-
RegistryLockDao
public RegistryLockDao()
-
-
Method Details
-
getByRevisionId
Returns theRegistryLock
referred to by this revision ID, or empty if none exists. -
getByVerificationCode
Returns the most recent version of theRegistryLock
referred to by the code. -
getLocksByRegistrarId
public static com.google.common.collect.ImmutableList<RegistryLock> getLocksByRegistrarId(String registrarId) Returns all lock objects that this registrar has created, including pending locks. -
getMostRecentByRepoId
Returns the most recent lock object for a given domain specified by repo ID.Returns empty if this domain hasn't been locked before.
-
getMostRecentVerifiedLockByRepoId
Returns the most recent verified lock object for a given domain specified by repo ID.Returns empty if no lock has ever been finalized for this domain. This is different from
getMostRecentByRepoId(String)
in that it only returns verified locks. -
getMostRecentVerifiedUnlockByRepoId
Returns the most recent verified unlock for a given domain specified by repo ID.Returns empty if no unlock has ever been finalized for this domain. This is different from
getMostRecentByRepoId(String)
in that it only returns verified unlocks. -
save
-