Class AdminServices


  • @Singleton
    @Path("admin")
    public class AdminServices
    extends step.core.deployment.AbstractStepServices
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected step.core.controller.ControllerSettingAccessor controllerSettingsAccessor  
      • Fields inherited from class step.core.deployment.AbstractStepServices

        configuration, SESSION
    • Constructor Summary

      Constructors 
      Constructor Description
      AdminServices()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getMaintenanceMessage()  
      boolean getMaintenanceMessageToggle()  
      void init()  
      void setMaintenanceMessage​(jakarta.json.JsonString message)  
      void setMaintenanceMessageToggle​(boolean enabled)  
      • Methods inherited from class step.core.deployment.AbstractStepServices

        checkRightsOnBehalfOf, getAuthorizationManager, getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
      • Methods inherited from class step.framework.server.AbstractServices

        getAbstractContext, getHttpSession, getSession, getSession, invalidateSession, setHttpServletRequest, setSession
      • Methods inherited from class java.lang.Object

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

      • controllerSettingsAccessor

        protected step.core.controller.ControllerSettingAccessor controllerSettingsAccessor
    • Constructor Detail

      • AdminServices

        public AdminServices()
    • Method Detail

      • init

        @PostConstruct
        public void init()
                  throws java.lang.Exception
        Overrides:
        init in class step.core.deployment.AbstractStepServices
        Throws:
        java.lang.Exception
      • getMaintenanceMessage

        @GET
        @Path("/maintenance/message")
        @Produces("application/json")
        public java.lang.String getMaintenanceMessage()
                                               throws com.fasterxml.jackson.core.JsonProcessingException
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException
      • setMaintenanceMessage

        @POST
        @Consumes("application/json")
        @Path("/maintenance/message")
        public void setMaintenanceMessage​(jakarta.json.JsonString message)
      • getMaintenanceMessageToggle

        @GET
        @Path("/maintenance/message/toggle")
        public boolean getMaintenanceMessageToggle()
      • setMaintenanceMessageToggle

        @POST
        @Consumes("application/json")
        @Path("/maintenance/message/toggle")
        public void setMaintenanceMessageToggle​(boolean enabled)