Erweiterungen

This commit is contained in:
2025-10-28 10:25:04 +01:00
parent 5fbf05b420
commit 0e28a388b7
19 changed files with 10032 additions and 335 deletions

View File

@@ -2,14 +2,15 @@ package util;
import com.vaadin.flow.server.WrappedSession;
public class Util {
public static String getSessionAttributeWithDefault(WrappedSession currentSession, String key, String defaultValue) {
public static String getSessionAttributeWithDefault(WrappedSession currentSession, String key,
String defaultValue) {
var result = defaultValue;
try {
result = currentSession.getAttribute(key).toString();
} catch (Exception e) {}
} catch (Exception e) {
}
return result;
}