Note: at the moment we have no mechanism for JSON GET/POSTs in the same class or at the same
+ * URL, which is why this is distinct from the {@link RegistryLockPostAction}.
+ */
+@Action(
+ service = Action.Service.DEFAULT,
+ path = RegistryLockGetAction.PATH,
+ auth = Auth.AUTH_PUBLIC_LOGGED_IN)
+public final class RegistryLockGetAction implements Runnable {
+
+ public static final String PATH = "/registry-lock-get";
+
+ private static final String LOCK_ENABLED_FOR_CONTACT_PARAM = "lockEnabledForContact";
+ private static final String EMAIL_PARAM = "email";
+ private static final String LOCKS_PARAM = "locks";
+ private static final String FULLY_QUALIFIED_DOMAIN_NAME_PARAM = "fullyQualifiedDomainName";
+ private static final String LOCKED_TIME_PARAM = "lockedTime";
+ private static final String LOCKED_BY_PARAM = "lockedBy";
+
+ private static final FluentLogger logger = FluentLogger.forEnclosingClass();
+ private static final Gson GSON = new Gson();
+
+ @VisibleForTesting Method method;
+ private final Response response;
+ private final AuthenticatedRegistrarAccessor registrarAccessor;
+ @VisibleForTesting AuthResult authResult;
+ @VisibleForTesting Optional