@Path(value="/rest/settings") @Produces(value="application/json") @Consumes(value="application/json") @RolesAllowed(value="admin") public class SettingsHandler extends AccessEngine
NO_ACCESS_MESSAGE
Constructor and Description |
---|
SettingsHandler() |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
getController() |
javax.ws.rs.core.Response |
getEmail() |
javax.ws.rs.core.Response |
getHtmlHeaderFiles() |
javax.ws.rs.core.Response |
getLocation() |
javax.ws.rs.core.Response |
getMetrics() |
javax.ws.rs.core.Response |
getMetricsEngine() |
javax.ws.rs.core.Response |
getMetricsRetention() |
javax.ws.rs.core.Response |
getMqttBroker() |
javax.ws.rs.core.Response |
getMySensors() |
javax.ws.rs.core.Response |
getPushbullet() |
javax.ws.rs.core.Response |
getSms() |
javax.ws.rs.core.Response |
getSystemJobs() |
javax.ws.rs.core.Response |
getTelegramBot() |
javax.ws.rs.core.Response |
getUserNativeSettings() |
javax.ws.rs.core.Response |
ping(MetricEngineConf conf) |
javax.ws.rs.core.Response |
saveController(MyControllerSettings myControllerSettings) |
javax.ws.rs.core.Response |
saveEmail(EmailSettings emailSettings,
Boolean isTestOnly) |
javax.ws.rs.core.Response |
saveHtmlHeaderFiles(HtmlHeaderFiles htmlHeaderFiles) |
javax.ws.rs.core.Response |
saveLocation(LocationSettings locationSettings) |
javax.ws.rs.core.Response |
saveMetrics(MetricsGraphSettings metricsGraphSettings) |
javax.ws.rs.core.Response |
saveMetricsRetention(MetricsDataRetentionSettings metricsDataRetentionSettings) |
javax.ws.rs.core.Response |
saveMqttBroker(MqttBrokerSettings mqttBrokerSettings) |
javax.ws.rs.core.Response |
saveMySensors(MySensorsSettings mySensorsSettings) |
javax.ws.rs.core.Response |
savePushbullet(PushbulletSettings pushbulletSettings) |
javax.ws.rs.core.Response |
saveSms(SmsSettings smsSettings) |
javax.ws.rs.core.Response |
saveSystemJobs(SystemJobsSettings systemJobsSettings) |
javax.ws.rs.core.Response |
saveTelegramBot(TelegramBotSettings telegramBotSettings) |
javax.ws.rs.core.Response |
saveUserNativeSettings(UserNativeSettings userNativeSettings) |
javax.ws.rs.core.Response |
updateLanguage(String language) |
getUser, hasAccessGateway, hasAccessNode, hasAccessSensor, hasAccessSensorVariable, isSuperAdmin, updateGatewayIds, updateNodeIds, updateSensorIds, updateSensorVariableIds
@RolesAllowed(value="User") @GET @Path(value="/userSettings") public javax.ws.rs.core.Response getUserNativeSettings()
@RolesAllowed(value="User") @POST @Path(value="/userSettings") public javax.ws.rs.core.Response saveUserNativeSettings(UserNativeSettings userNativeSettings)
@RolesAllowed(value="User") @GET @Path(value="/location") public javax.ws.rs.core.Response getLocation()
@POST @Path(value="/location") public javax.ws.rs.core.Response saveLocation(LocationSettings locationSettings)
@GET @Path(value="/controller") public javax.ws.rs.core.Response getController()
@POST @Path(value="/controller") public javax.ws.rs.core.Response saveController(MyControllerSettings myControllerSettings)
@PUT @Path(value="/updateLanguage") public javax.ws.rs.core.Response updateLanguage(String language)
@GET @Path(value="/email") public javax.ws.rs.core.Response getEmail()
@POST @Path(value="/email") public javax.ws.rs.core.Response saveEmail(EmailSettings emailSettings, @QueryParam(value="testOnly") Boolean isTestOnly)
@GET @Path(value="/sms") public javax.ws.rs.core.Response getSms()
@POST @Path(value="/sms") public javax.ws.rs.core.Response saveSms(SmsSettings smsSettings)
@GET @Path(value="/pushbullet") public javax.ws.rs.core.Response getPushbullet()
@POST @Path(value="/pushbullet") public javax.ws.rs.core.Response savePushbullet(PushbulletSettings pushbulletSettings)
@GET @Path(value="/telegrambot") public javax.ws.rs.core.Response getTelegramBot()
@POST @Path(value="/telegrambot") public javax.ws.rs.core.Response saveTelegramBot(TelegramBotSettings telegramBotSettings)
@GET @Path(value="/mySensors") public javax.ws.rs.core.Response getMySensors()
@POST @Path(value="/mySensors") public javax.ws.rs.core.Response saveMySensors(MySensorsSettings mySensorsSettings)
@GET @Path(value="/metricsGraph") public javax.ws.rs.core.Response getMetrics()
@POST @Path(value="/metricsGraph") public javax.ws.rs.core.Response saveMetrics(MetricsGraphSettings metricsGraphSettings)
@GET @Path(value="/metricsRetention") public javax.ws.rs.core.Response getMetricsRetention()
@POST @Path(value="/metricsRetention") public javax.ws.rs.core.Response saveMetricsRetention(MetricsDataRetentionSettings metricsDataRetentionSettings)
@GET @Path(value="/metricsEngine") public javax.ws.rs.core.Response getMetricsEngine()
@POST @Path(value="/metricsEngine") public javax.ws.rs.core.Response ping(MetricEngineConf conf)
@GET @Path(value="/mqttBroker") public javax.ws.rs.core.Response getMqttBroker()
@POST @Path(value="/mqttBroker") public javax.ws.rs.core.Response saveMqttBroker(MqttBrokerSettings mqttBrokerSettings)
@GET @Path(value="/htmlAdditionalHeaders") public javax.ws.rs.core.Response getHtmlHeaderFiles()
@POST @Path(value="/htmlAdditionalHeaders") public javax.ws.rs.core.Response saveHtmlHeaderFiles(HtmlHeaderFiles htmlHeaderFiles)
@GET @Path(value="/systemJobs") public javax.ws.rs.core.Response getSystemJobs()
@POST @Path(value="/systemJobs") public javax.ws.rs.core.Response saveSystemJobs(SystemJobsSettings systemJobsSettings)
Copyright © 2015–2019. All rights reserved.