-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #62 from Gepardec/feature/727-zep-rest
Feature/727 zep rest
- Loading branch information
Showing
192 changed files
with
10,135 additions
and
737 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/main/java/com/gepardec/mega/db/entity/common/PaymentMethodType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
src/main/java/com/gepardec/mega/db/entity/common/ProjectTaskType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package com.gepardec.mega.db.entity.common; | ||
|
||
// used to avoid hard coded numbers when retrieving doctor's visiting hours | ||
public enum ProjectTaskType { | ||
PROJECT_INTERNAL(3, "Intern"), | ||
TASK_DOCTOR_VISIT(233, "Arztbesuch"); | ||
|
||
final int id; | ||
final String name; | ||
|
||
ProjectTaskType(int id, String name) { | ||
this.id = id; | ||
this.name = name; | ||
} | ||
|
||
public int getId() { | ||
return id; | ||
} | ||
|
||
public String getName() { | ||
return name; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
62 changes: 62 additions & 0 deletions
62
src/main/java/com/gepardec/mega/domain/model/AbsenceTime.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.gepardec.mega.domain.model; | ||
|
||
import java.time.LocalDate; | ||
|
||
public record AbsenceTime ( | ||
String userId, | ||
LocalDate fromDate, | ||
LocalDate toDate, | ||
String reason, | ||
Boolean accepted | ||
) { | ||
public AbsenceTime(Builder builder) { | ||
this( | ||
builder.userId, | ||
builder.fromDate, | ||
builder.toDate, | ||
builder.reason, | ||
builder.accepted | ||
); | ||
} | ||
|
||
public static Builder builder() { | ||
return new Builder(); | ||
} | ||
|
||
public static final class Builder { | ||
private String userId; | ||
private LocalDate fromDate; | ||
private LocalDate toDate; | ||
private String reason; | ||
private Boolean accepted; | ||
|
||
public Builder userId(String userId) { | ||
this.userId = userId; | ||
return this; | ||
} | ||
|
||
public Builder fromDate(LocalDate fromDate) { | ||
this.fromDate = fromDate; | ||
return this; | ||
} | ||
|
||
public Builder toDate(LocalDate toDate) { | ||
this.toDate = toDate; | ||
return this; | ||
} | ||
|
||
public Builder reason(String reason) { | ||
this.reason = reason; | ||
return this; | ||
} | ||
|
||
public Builder accepted(Boolean accepted) { | ||
this.accepted = accepted; | ||
return this; | ||
} | ||
|
||
public AbsenceTime build() { | ||
return new AbsenceTime(this); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.