-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GITFLOW]merging 'release-1.72.0' into 'master'
- Loading branch information
Showing
481 changed files
with
15,477 additions
and
4,073 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
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
40 changes: 40 additions & 0 deletions
40
sormas-api/src/main/java/de/symeda/sormas/api/RequestContextHolder.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,40 @@ | ||
/* | ||
* SORMAS® - Surveillance Outbreak Response Management & Analysis System | ||
* Copyright © 2016-2022 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI) | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
|
||
package de.symeda.sormas.api; | ||
|
||
public final class RequestContextHolder { | ||
|
||
private static final ThreadLocal<RequestContextTO> threadLocalContext = new ThreadLocal<>(); | ||
|
||
private RequestContextHolder() { | ||
} | ||
|
||
public static void reset() { | ||
threadLocalContext.remove(); | ||
} | ||
|
||
public static boolean isMobileSync() { | ||
return threadLocalContext.get() != null ? threadLocalContext.get().isMobileSync() : false; | ||
} | ||
|
||
public static void setRequestContext(RequestContextTO requestContext) { | ||
if (requestContext == null) { | ||
reset(); | ||
} else { | ||
threadLocalContext.set(requestContext); | ||
} | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
sormas-api/src/main/java/de/symeda/sormas/api/RequestContextTO.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,36 @@ | ||
/* | ||
* SORMAS® - Surveillance Outbreak Response Management & Analysis System | ||
* Copyright © 2016-2022 Helmholtz-Zentrum für Infektionsforschung GmbH (HZI) | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU General Public License for more details. | ||
* You should have received a copy of the GNU General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
* | ||
*/ | ||
|
||
package de.symeda.sormas.api; | ||
|
||
import java.io.Serializable; | ||
|
||
public class RequestContextTO implements Serializable { | ||
|
||
private boolean isMobileSync; | ||
|
||
public RequestContextTO(boolean isMobileSync) { | ||
this.isMobileSync = isMobileSync; | ||
} | ||
|
||
public boolean isMobileSync() { | ||
return isMobileSync; | ||
} | ||
|
||
public void setMobileSync(boolean mobileSync) { | ||
isMobileSync = mobileSync; | ||
} | ||
} |
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
17 changes: 17 additions & 0 deletions
17
sormas-api/src/main/java/de/symeda/sormas/api/audit/AuditLoggerFacade.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 |
---|---|---|
@@ -1,11 +1,28 @@ | ||
package de.symeda.sormas.api.audit; | ||
|
||
import javax.ejb.Remote; | ||
import java.util.Date; | ||
import java.util.List; | ||
|
||
@Remote | ||
public interface AuditLoggerFacade { | ||
|
||
void logRestCall(String path, String method); | ||
|
||
void logFailedUiLogin(String caller, String method, String pathInfo); | ||
|
||
void logFailedRestLogin(String authorizationHeader, String method, String pathInfo); | ||
|
||
void logGetExternalLabMessagesSuccess(Date since, List<String> externalLabMessages, Date start, Date end, String authAlias); | ||
|
||
void logExternalLabMessagesHtmlSuccess(String uuid, int length, Date start, Date end, String authAlias); | ||
|
||
void logExternalLabMessagesPdfSuccess(String uuid, int length, Date start, Date end, String authAlias); | ||
|
||
void logGetExternalLabMessagesError(String outcome, String error, Date start, Date end, String authAlias); | ||
|
||
void logExternalLabMessagesHtmlError(String messageUuid, String outcome, String error, Date start, Date end, String authAlias); | ||
|
||
void logExternalLabMessagesPdfError(String messageUuid, String outcome, String error, Date start, Date end, String authAlias); | ||
|
||
} |
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
Oops, something went wrong.