Fix action message.
This commit is contained in:
@@ -118,9 +118,6 @@ public class DeviceSimulatorUpdater {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static final class DeviceSimulatorUpdateThread implements Runnable {
|
private static final class DeviceSimulatorUpdateThread implements Runnable {
|
||||||
/**
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
private static final int MINIMUM_TOKENLENGTH_FOR_HINT = 6;
|
private static final int MINIMUM_TOKENLENGTH_FOR_HINT = 6;
|
||||||
|
|
||||||
private static final Random rndSleep = new SecureRandom();
|
private static final Random rndSleep = new SecureRandom();
|
||||||
|
|||||||
@@ -20,11 +20,11 @@ import com.vaadin.spring.annotation.SpringUI;
|
|||||||
* login path. The easiest way to get an hawkBit login UI running is to extend
|
* login path. The easiest way to get an hawkBit login UI running is to extend
|
||||||
* the {@link HawkbitLoginUI} and to annotated it with {@link SpringUI} as in
|
* the {@link HawkbitLoginUI} and to annotated it with {@link SpringUI} as in
|
||||||
* this example to the defined {@link HawkbitTheme#LOGIN_UI_PATH}.
|
* this example to the defined {@link HawkbitTheme#LOGIN_UI_PATH}.
|
||||||
*
|
|
||||||
*
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
@SpringUI(path = HawkbitTheme.LOGIN_UI_PATH)
|
@SpringUI(path = HawkbitTheme.LOGIN_UI_PATH)
|
||||||
|
// Exception squid:MaximumInheritanceDepth - Most of the inheritance comes from
|
||||||
|
// Vaadin.
|
||||||
|
@SuppressWarnings({ "squid:MaximumInheritanceDepth" })
|
||||||
public class MyLoginUI extends HawkbitLoginUI {
|
public class MyLoginUI extends HawkbitLoginUI {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|||||||
@@ -29,6 +29,9 @@ import com.vaadin.spring.annotation.SpringUI;
|
|||||||
*/
|
*/
|
||||||
@SpringUI
|
@SpringUI
|
||||||
@Push(value = PushMode.AUTOMATIC, transport = Transport.WEBSOCKET)
|
@Push(value = PushMode.AUTOMATIC, transport = Transport.WEBSOCKET)
|
||||||
|
// Exception squid:MaximumInheritanceDepth - Most of the inheritance comes from
|
||||||
|
// Vaadin.
|
||||||
|
@SuppressWarnings({ "squid:MaximumInheritanceDepth" })
|
||||||
public class MyUI extends HawkbitUI {
|
public class MyUI extends HawkbitUI {
|
||||||
|
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|||||||
@@ -318,8 +318,8 @@ public class RootController {
|
|||||||
|
|
||||||
LOG.debug("Found an active UpdateAction for target {}. returning deyploment: {}", targetid, base);
|
LOG.debug("Found an active UpdateAction for target {}. returning deyploment: {}", targetid, base);
|
||||||
|
|
||||||
controllerManagement.registerRetrieved(action,
|
controllerManagement.registerRetrieved(action, ControllerManagement.SERVER_MESSAGE_PREFIX
|
||||||
"Controller retrieved update action and should start now the download.");
|
+ "Target retrieved update action and should start now the download.");
|
||||||
|
|
||||||
return new ResponseEntity<>(base, HttpStatus.OK);
|
return new ResponseEntity<>(base, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
@@ -497,8 +497,8 @@ public class RootController {
|
|||||||
|
|
||||||
LOG.debug("Found an active CancelAction for target {}. returning cancel: {}", targetid, cancel);
|
LOG.debug("Found an active CancelAction for target {}. returning cancel: {}", targetid, cancel);
|
||||||
|
|
||||||
controllerManagement.registerRetrieved(action,
|
controllerManagement.registerRetrieved(action, ControllerManagement.SERVER_MESSAGE_PREFIX
|
||||||
"Controller retrieved cancel action and should start now the cancelation.");
|
+ "Target retrieved cancel action and should start now the cancelation.");
|
||||||
|
|
||||||
return new ResponseEntity<>(cancel, HttpStatus.OK);
|
return new ResponseEntity<>(cancel, HttpStatus.OK);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user