Class AdminServices
- java.lang.Object
-
- step.framework.server.AbstractServices<step.core.access.User>
-
- step.core.deployment.AbstractStepServices
-
- step.controller.plugins.maintenance.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
-
Constructor Summary
Constructors Constructor Description AdminServices()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getMaintenanceMessage()
boolean
getMaintenanceMessageToggle()
void
init()
void
setMaintenanceMessage(String message)
void
setMaintenanceMessageToggle(boolean enabled)
-
Methods inherited from class step.core.deployment.AbstractStepServices
getContext, getExecutionRunnable, getObjectEnricher, getObjectFilter, getScheduler
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws Exception
- Overrides:
init
in classstep.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)
-
-