Class AdminServices


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

      • controllerSettingsAccessor

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

      • AdminServices

        public AdminServices()
    • Method Detail

      • init

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

        @GET
        @Path("/maintenance/message")
        @Produces("text/plain")
        public String getMaintenanceMessage()
      • setMaintenanceMessage

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

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

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