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 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
-
-
-
-
Method Detail
-
init
@PostConstruct public void init() throws java.lang.Exception
- Overrides:
init
in classstep.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)
-
-