Class SetupWizardControllerImpl
java.lang.Object
org.eblocker.server.http.controller.impl.SetupWizardControllerImpl
- All Implemented Interfaces:
SetupWizardController
This controller can just answer the question if the setup wizard was done before
-
Constructor Summary
ConstructorsConstructorDescriptionSetupWizardControllerImpl(DeviceProperties deviceProperties, DeviceRegistrationProperties deviceRegistration, RegistrationServiceAvailabilityCheck registrationServiceAvailabilityCheck) -
Method Summary
Modifier and TypeMethodDescriptionaskForSerialNumber(org.restexpress.Request request, org.restexpress.Response response) Should the wizard ask for the serial number, or not?checkSerialNumber(org.restexpress.Request request, org.restexpress.Response response) Check if the serial number is valid (right format)booleandidUserFinishSetupWizard(org.restexpress.Request request, org.restexpress.Response response) Did the user finish the setup wizard and configure everything ready to start, like registering the device and setting the language and so on...might be important to know, so that the setup wizard = bootstrap state is not shown all the timegetInfo(org.restexpress.Request request, org.restexpress.Response response) getSerialNumberExample(org.restexpress.Request request, org.restexpress.Response response) Get example for serial number
-
Constructor Details
-
SetupWizardControllerImpl
@Inject public SetupWizardControllerImpl(DeviceProperties deviceProperties, DeviceRegistrationProperties deviceRegistration, RegistrationServiceAvailabilityCheck registrationServiceAvailabilityCheck)
-
-
Method Details
-
getInfo
- Specified by:
getInfoin interfaceSetupWizardController
-
didUserFinishSetupWizard
public boolean didUserFinishSetupWizard(org.restexpress.Request request, org.restexpress.Response response) Did the user finish the setup wizard and configure everything ready to start, like registering the device and setting the language and so on...might be important to know, so that the setup wizard = bootstrap state is not shown all the time- Specified by:
didUserFinishSetupWizardin interfaceSetupWizardController- Parameters:
request-response-- Returns:
-
askForSerialNumber
public Object askForSerialNumber(org.restexpress.Request request, org.restexpress.Response response) Should the wizard ask for the serial number, or not?- Specified by:
askForSerialNumberin interfaceSetupWizardController- Parameters:
request-response-- Returns:
-
getSerialNumberExample
public Object getSerialNumberExample(org.restexpress.Request request, org.restexpress.Response response) Get example for serial number- Specified by:
getSerialNumberExamplein interfaceSetupWizardController- Parameters:
request-response-- Returns:
-
checkSerialNumber
Check if the serial number is valid (right format)- Specified by:
checkSerialNumberin interfaceSetupWizardController- Parameters:
request-response-- Returns:
-