Clean code update 1 #1
@@ -1,5 +1,8 @@
|
|||||||
package de.nilzbu.mytimetracker.model;
|
package de.nilzbu.mytimetracker.model;
|
||||||
|
|
||||||
|
import lombok.Getter;
|
||||||
|
|
||||||
|
@Getter
|
||||||
public enum DayStatus {
|
public enum DayStatus {
|
||||||
OFFICE("In office"),
|
OFFICE("In office"),
|
||||||
REMOTE("Remote work"),
|
REMOTE("Remote work"),
|
||||||
@@ -12,7 +15,4 @@ public enum DayStatus {
|
|||||||
this.displayName = displayName;
|
this.displayName = displayName;
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getDisplayName() {
|
|
||||||
return displayName;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,10 +12,7 @@ public class SecurityConfig extends VaadinWebSecurity {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
protected void configure(HttpSecurity http) throws Exception {
|
protected void configure(HttpSecurity http) throws Exception {
|
||||||
// Standard-Konfiguration von Vaadin-Security erweitern
|
|
||||||
super.configure(http);
|
super.configure(http);
|
||||||
|
|
||||||
// Login-View setzen
|
|
||||||
setLoginView(http, LoginView.class);
|
setLoginView(http, LoginView.class);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user