Class DeviceControllerImpl
java.lang.Object
org.eblocker.server.http.controller.impl.DeviceControllerImpl
- All Implemented Interfaces:
DeviceController
-
Constructor Summary
ConstructorsConstructorDescriptionDeviceControllerImpl(AnonymousService anonymousService, DevicePermissionsService devicePermissionsService, DeviceScanningService deviceScanningService, DeviceService deviceService, DeviceRegistrationProperties deviceRegistrationProperties, FeatureToggleRouter featureToggleRouter, NetworkInterfaceWrapper networkInterfaceWrapper, NetworkStateMachine networkStateMachine, OpenVpnService openVpnService, PauseDeviceController pauseDeviceController, DeviceFactory deviceFactory) -
Method Summary
Modifier and TypeMethodDescriptiondeleteDevice(org.restexpress.Request request, org.restexpress.Response response) getAllDevices(org.restexpress.Request request, org.restexpress.Response response) getCurrentDevice(org.restexpress.Request request, org.restexpress.Response response) getDeviceById(org.restexpress.Request request, org.restexpress.Response response) getIconSettings(org.restexpress.Request request, org.restexpress.Response response) getOperatingUserDevices(org.restexpress.Request request, org.restexpress.Response response) getPauseByDeviceId(org.restexpress.Request request, org.restexpress.Response response) getPauseCurrentDevice(org.restexpress.Request request, org.restexpress.Response response) booleangetPauseDialogStatus(org.restexpress.Request request, org.restexpress.Response response) booleangetPauseDialogStatusDoNotShowAgain(org.restexpress.Request request, org.restexpress.Response response) getScanningInterval(org.restexpress.Request request, org.restexpress.Response response) booleangetShowWarnings(org.restexpress.Request request, org.restexpress.Response response) isAutoEnableNewDevices(org.restexpress.Request request, org.restexpress.Response response) booleanisScanningAvailable(org.restexpress.Request request, org.restexpress.Response response) voidlogoutUserFromDevice(org.restexpress.Request request, org.restexpress.Response response) pauseCurrentDevice(org.restexpress.Request request, org.restexpress.Response response) pauseCurrentDeviceIfNotYetPausing(org.restexpress.Request request, org.restexpress.Response response) postShowWarnings(org.restexpress.Request request, org.restexpress.Response response) resetDevice(org.restexpress.Request request, org.restexpress.Response response) resetIconSettings(org.restexpress.Request request, org.restexpress.Response response) scanDevices(org.restexpress.Request request, org.restexpress.Response response) voidsetAutoEnableNewDevices(org.restexpress.Request request, org.restexpress.Response response) voidsetAutoEnableNewDevicesAndResetExisting(org.restexpress.Request request, org.restexpress.Response response) setIconPosition(org.restexpress.Request request, org.restexpress.Response response) setIconSettings(org.restexpress.Request request, org.restexpress.Response response) setPauseByDeviceId(org.restexpress.Request request, org.restexpress.Response response) voidsetScanningInterval(org.restexpress.Request request, org.restexpress.Response response) updateDevice(org.restexpress.Request request, org.restexpress.Response response) updateDeviceDashboard(org.restexpress.Request request, org.restexpress.Response response) voidupdateDeviceDnsAdsEnabledStatus(org.restexpress.Request request, org.restexpress.Response response) voidupdateDeviceDnsTrackersEnabledStatus(org.restexpress.Request request, org.restexpress.Response response) voidupdatePauseDialogStatus(org.restexpress.Request request, org.restexpress.Response response) voidupdatePauseDialogStatusDoNotShowAgain(org.restexpress.Request request, org.restexpress.Response response) updateShowWelcomeFlags(org.restexpress.Request request, org.restexpress.Response response)
-
Constructor Details
-
DeviceControllerImpl
@Inject public DeviceControllerImpl(AnonymousService anonymousService, DevicePermissionsService devicePermissionsService, DeviceScanningService deviceScanningService, DeviceService deviceService, DeviceRegistrationProperties deviceRegistrationProperties, FeatureToggleRouter featureToggleRouter, NetworkInterfaceWrapper networkInterfaceWrapper, NetworkStateMachine networkStateMachine, OpenVpnService openVpnService, PauseDeviceController pauseDeviceController, DeviceFactory deviceFactory)
-
-
Method Details
-
deleteDevice
- Specified by:
deleteDevicein interfaceDeviceController
-
resetDevice
- Specified by:
resetDevicein interfaceDeviceController
-
getAllDevices
public List<Device> getAllDevices(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getAllDevicesin interfaceDeviceController
-
getOperatingUserDevices
public List<Device> getOperatingUserDevices(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getOperatingUserDevicesin interfaceDeviceController
-
getDeviceById
- Specified by:
getDeviceByIdin interfaceDeviceController
-
updateDevice
- Specified by:
updateDevicein interfaceDeviceController
-
updateDeviceDashboard
public Object updateDeviceDashboard(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
updateDeviceDashboardin interfaceDeviceController
-
updateShowWelcomeFlags
public ShowWelcomeFlags updateShowWelcomeFlags(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
updateShowWelcomeFlagsin interfaceDeviceController
-
scanDevices
- Specified by:
scanDevicesin interfaceDeviceController
-
isScanningAvailable
public boolean isScanningAvailable(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
isScanningAvailablein interfaceDeviceController
-
getScanningInterval
- Specified by:
getScanningIntervalin interfaceDeviceController
-
setScanningInterval
public void setScanningInterval(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setScanningIntervalin interfaceDeviceController
-
isAutoEnableNewDevices
public Boolean isAutoEnableNewDevices(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
isAutoEnableNewDevicesin interfaceDeviceController
-
setAutoEnableNewDevices
public void setAutoEnableNewDevices(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setAutoEnableNewDevicesin interfaceDeviceController
-
setAutoEnableNewDevicesAndResetExisting
public void setAutoEnableNewDevicesAndResetExisting(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setAutoEnableNewDevicesAndResetExistingin interfaceDeviceController
-
getPauseByDeviceId
public RemainingPause getPauseByDeviceId(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getPauseByDeviceIdin interfaceDeviceController
-
setPauseByDeviceId
public RemainingPause setPauseByDeviceId(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setPauseByDeviceIdin interfaceDeviceController
-
getPauseCurrentDevice
public RemainingPause getPauseCurrentDevice(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getPauseCurrentDevicein interfaceDeviceController
-
pauseCurrentDevice
public RemainingPause pauseCurrentDevice(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
pauseCurrentDevicein interfaceDeviceController
-
pauseCurrentDeviceIfNotYetPausing
public RemainingPause pauseCurrentDeviceIfNotYetPausing(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
pauseCurrentDeviceIfNotYetPausingin interfaceDeviceController
-
getShowWarnings
public boolean getShowWarnings(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getShowWarningsin interfaceDeviceController
-
postShowWarnings
- Specified by:
postShowWarningsin interfaceDeviceController
-
logoutUserFromDevice
public void logoutUserFromDevice(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
logoutUserFromDevicein interfaceDeviceController
-
getCurrentDevice
- Specified by:
getCurrentDevicein interfaceDeviceController
-
getPauseDialogStatus
public boolean getPauseDialogStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getPauseDialogStatusin interfaceDeviceController
-
getPauseDialogStatusDoNotShowAgain
public boolean getPauseDialogStatusDoNotShowAgain(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getPauseDialogStatusDoNotShowAgainin interfaceDeviceController
-
updatePauseDialogStatusDoNotShowAgain
public void updatePauseDialogStatusDoNotShowAgain(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
updatePauseDialogStatusDoNotShowAgainin interfaceDeviceController
-
updatePauseDialogStatus
public void updatePauseDialogStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
updatePauseDialogStatusin interfaceDeviceController
-
getIconSettings
public IconSettings getIconSettings(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
getIconSettingsin interfaceDeviceController
-
setIconSettings
public IconSettings setIconSettings(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setIconSettingsin interfaceDeviceController
-
setIconPosition
public Device.DisplayIconPosition setIconPosition(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
setIconPositionin interfaceDeviceController
-
updateDeviceDnsAdsEnabledStatus
public void updateDeviceDnsAdsEnabledStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
updateDeviceDnsAdsEnabledStatusin interfaceDeviceController
-
updateDeviceDnsTrackersEnabledStatus
public void updateDeviceDnsTrackersEnabledStatus(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
updateDeviceDnsTrackersEnabledStatusin interfaceDeviceController
-
resetIconSettings
public IconSettings resetIconSettings(org.restexpress.Request request, org.restexpress.Response response) - Specified by:
resetIconSettingsin interfaceDeviceController
-