-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBackupData.java
More file actions
65 lines (52 loc) · 1.82 KB
/
Copy pathBackupData.java
File metadata and controls
65 lines (52 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
package ch.fhnw.timerecordingbackend.dto.backup;
import ch.fhnw.timerecordingbackend.dto.absence.AbsenceResponse;
import ch.fhnw.timerecordingbackend.dto.admin.UserResponse;
import ch.fhnw.timerecordingbackend.dto.project.ProjectResponse;
import ch.fhnw.timerecordingbackend.dto.time.TimeEntryResponse;
import java.time.LocalDateTime;
import java.util.List;
/**
* Datenstruktur für Backup-Inhalte.
* Enthält Benutzer, Projekte, Zeiteinträge und Abwesenheiten mit Zeitstempel.
* Wird für Export und Wiederherstellung verwendet.
* @author FA
* Code von anderen Teammitgliedern oder Quellen wird durch einzelne Kommentare deklariert
*/
public class BackupData {
private LocalDateTime backupTimestamp;
private List<UserResponse> users;
private List<ProjectResponse> projects;
private List<TimeEntryResponse> timeEntries;
private List<AbsenceResponse> absences;
// Getters and Setters
public LocalDateTime getBackupTimestamp() {
return backupTimestamp;
}
public void setBackupTimestamp(LocalDateTime backupTimestamp) {
this.backupTimestamp = backupTimestamp;
}
public List<UserResponse> getUsers() {
return users;
}
public void setUsers(List<UserResponse> users) {
this.users = users;
}
public List<ProjectResponse> getProjects() {
return projects;
}
public void setProjects(List<ProjectResponse> projects) {
this.projects = projects;
}
public List<TimeEntryResponse> getTimeEntries() {
return timeEntries;
}
public void setTimeEntries(List<TimeEntryResponse> timeEntries) {
this.timeEntries = timeEntries;
}
public List<AbsenceResponse> getAbsences() {
return absences;
}
public void setAbsences(List<AbsenceResponse> absences) {
this.absences = absences;
}
}