Class ConsoleApiAction

java.lang.Object
google.registry.ui.server.console.ConsoleApiAction
All Implemented Interfaces:
Runnable
Direct Known Subclasses:
ConsoleDomainGetAction, ConsoleDomainListAction, ConsoleDumDownloadAction, ConsoleEppPasswordAction, ConsoleOteAction, ConsoleRegistryLockAction, ConsoleRegistryLockVerifyAction, ConsoleUpdateRegistrarAction, ConsoleUserDataAction, ConsoleUsersAction, ContactAction, RegistrarsAction, SecurityAction, WhoisRegistrarFieldsAction

public abstract class ConsoleApiAction extends Object implements Runnable
Base class for handling Console API requests
  • Field Details

  • Constructor Details

  • Method Details

    • run

      public final void run()
      Specified by:
      run in interface Runnable
    • checkPermission

      protected void checkPermission(User user, String registrarId, ConsolePermission permission)
    • postHandler

      protected void postHandler(User user)
    • putHandler

      protected void putHandler(User user)
    • getHandler

      protected void getHandler(User user)
    • deleteHandler

      protected void deleteHandler(User user)
    • headHandler

      protected void headHandler(User user)
    • setFailedResponse

      protected void setFailedResponse(String message, int code)
    • sendExternalUpdates

      protected void sendExternalUpdates(Map<?,?> diffs, Registrar registrar, com.google.common.collect.ImmutableSet<RegistrarPoc> contacts)
    • sendExternalUpdatesIfNecessary

      protected void sendExternalUpdatesIfNecessary(ConsoleApiAction.EmailInfo emailInfo)
      Determines if any changes were made to the registrar besides the lastUpdateTime, and if so, sends an email with a diff of the changes to the configured notification email address and all contact addresses and enqueues a task to re-sync the registrar sheet.
    • finishAndPersistConsoleUpdateHistory

      protected void finishAndPersistConsoleUpdateHistory(ConsoleUpdateHistory.Builder<?,?> builder)