Class RegistryLockPostAction

  • All Implemented Interfaces:
    JsonActionRunner.JsonAction, java.lang.Runnable

    public class RegistryLockPostAction
    extends java.lang.Object
    implements java.lang.Runnable, JsonActionRunner.JsonAction
    UI action that allows for creating registry locks. Locks / unlocks must be verified separately before they are written permanently.

    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 RegistryLockGetAction.

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String PATH  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Map<java.lang.String,​?> handleJsonRequest​(java.util.Map<java.lang.String,​?> input)
      Handles JSON HTTP request.
      void run()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • run

        public void run()
        Specified by:
        run in interface java.lang.Runnable
      • handleJsonRequest

        public java.util.Map<java.lang.String,​?> handleJsonRequest​(java.util.Map<java.lang.String,​?> input)
        Description copied from interface: JsonActionRunner.JsonAction
        Handles JSON HTTP request.
        Specified by:
        handleJsonRequest in interface JsonActionRunner.JsonAction
        Parameters:
        input - object extracted from request body
        Returns:
        an arbitrary JSON object, which is never null