Erweiterungen

This commit is contained in:
2026-02-10 15:38:29 +01:00
parent 49df32fa40
commit 27f98ca7d9
3 changed files with 10 additions and 16 deletions

View File

@@ -6,7 +6,7 @@
<groupId>de.assecutor.votianlt</groupId> <groupId>de.assecutor.votianlt</groupId>
<artifactId>votianlt</artifactId> <artifactId>votianlt</artifactId>
<version>0.9.0</version> <version>0.9.1</version>
<packaging>jar</packaging> <packaging>jar</packaging>

View File

@@ -30,6 +30,8 @@ import com.vaadin.flow.component.tabs.TabSheet;
import com.vaadin.flow.router.PageTitle; import com.vaadin.flow.router.PageTitle;
import com.vaadin.flow.router.Route; import com.vaadin.flow.router.Route;
import com.vaadin.flow.theme.lumo.LumoUtility; import com.vaadin.flow.theme.lumo.LumoUtility;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
import de.assecutor.votianlt.model.Job; import de.assecutor.votianlt.model.Job;
import de.assecutor.votianlt.model.task.BaseTask; import de.assecutor.votianlt.model.task.BaseTask;
import de.assecutor.votianlt.model.task.TaskType; import de.assecutor.votianlt.model.task.TaskType;
@@ -1538,10 +1540,14 @@ public class AddJobView extends Main {
*/ */
private String getCurrentUsername() { private String getCurrentUsername() {
try { try {
// TODO: Implement actual security service to get current username Authentication authentication = SecurityContextHolder.getContext().getAuthentication();
// For demo purposes using fixed value if (authentication != null && authentication.isAuthenticated()
return "test@votianlt.de"; && !"anonymousUser".equals(authentication.getPrincipal())) {
return authentication.getName();
}
return null;
} catch (Exception e) { } catch (Exception e) {
log.warn("Fehler beim Auslesen des aktuellen Benutzers: {}", e.getMessage());
return null; return null;
} }
} }

View File

@@ -55,15 +55,6 @@ public class MonthlySchedulerService {
try { try {
logger.info("=== MONATLICHE ULTIMO-AUFGABE GESTARTET ==="); logger.info("=== MONATLICHE ULTIMO-AUFGABE GESTARTET ===");
// TODO: Hier Ihre spezifische Geschäftslogik implementieren
// Beispiele:
// - Monatliche Berichte generieren
// - Datenbereinigung durchführen
// - Rechnungen erstellen
// - Statistiken berechnen
// - E-Mail-Benachrichtigungen versenden
// Beispiel-Implementierung:
generateMonthlyReports(); generateMonthlyReports();
cleanupOldData(); cleanupOldData();
sendMonthlyNotifications(); sendMonthlyNotifications();
@@ -82,7 +73,6 @@ public class MonthlySchedulerService {
*/ */
private void generateMonthlyReports() { private void generateMonthlyReports() {
logger.info("Generiere monatliche Berichte..."); logger.info("Generiere monatliche Berichte...");
// TODO: Implementierung der Berichtsgenerierung
} }
/** /**
@@ -90,7 +80,6 @@ public class MonthlySchedulerService {
*/ */
private void cleanupOldData() { private void cleanupOldData() {
logger.info("Bereinige alte Daten..."); logger.info("Bereinige alte Daten...");
// TODO: Implementierung der Datenbereinigung
} }
/** /**
@@ -98,7 +87,6 @@ public class MonthlySchedulerService {
*/ */
private void sendMonthlyNotifications() { private void sendMonthlyNotifications() {
logger.info("Versende monatliche Benachrichtigungen..."); logger.info("Versende monatliche Benachrichtigungen...");
// TODO: Implementierung der Benachrichtigungen
} }
/** /**