Class RegistryLockDao

java.lang.Object
google.registry.model.tld.RegistryLockDao

public final class RegistryLockDao extends Object
Data access object for RegistryLock.
  • Constructor Details

    • RegistryLockDao

      public RegistryLockDao()
  • Method Details

    • getByRevisionId

      public static Optional<RegistryLock> getByRevisionId(long revisionId)
      Returns the RegistryLock referred to by this revision ID, or empty if none exists.
    • getByVerificationCode

      public static Optional<RegistryLock> getByVerificationCode(String verificationCode)
      Returns the most recent version of the RegistryLock 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

      public static Optional<RegistryLock> getMostRecentByRepoId(String repoId)
      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

      public static Optional<RegistryLock> getMostRecentVerifiedLockByRepoId(String repoId)
      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

      public static Optional<RegistryLock> getMostRecentVerifiedUnlockByRepoId(String repoId)
      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

      public static RegistryLock save(RegistryLock registryLock)