forked from google/fhir-gateway
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ServerSide] Sync the OpenSRP FHIR Gateway repo with the upstream Goo…
…gle FHIR Gateway repo (#29) * Allow request mutation by Access checkers (google#140) * Define access decision preprocess stage to mutate the request params * Documentation for request mutation change. Added test cases. * Removed static identifier from request mutation method * Updated the scan paths for demo app to load the core beans (google#132) Add default scan paths in the exec application * Support gzip encoding in data transfer (google#147) * supporting gzip for client and server data transfer * Version change for the next dev cycle (google#159) * Fix in unit test * Fixed unimplemented method in the OpenSRPSyncAccessDecision --------- Co-authored-by: vivekmittal07 <[email protected]> Co-authored-by: anchita-g <[email protected]> Co-authored-by: Bashir Sadjad <[email protected]>
- Loading branch information
1 parent
dd8b50e
commit 208f0fc
Showing
15 changed files
with
199 additions
and
8 deletions.
There are no files selected for viewing
Empty file.
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
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
35 changes: 35 additions & 0 deletions
35
server/src/main/java/com/google/fhir/gateway/interfaces/RequestMutation.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,35 @@ | ||
/* | ||
* Copyright 2021-2023 Google LLC | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package com.google.fhir.gateway.interfaces; | ||
|
||
import java.util.HashMap; | ||
import java.util.List; | ||
import java.util.Map; | ||
import lombok.Builder; | ||
import lombok.Getter; | ||
|
||
/** Defines mutations that can be applied to the incoming request by an {@link AccessChecker}. */ | ||
@Builder | ||
@Getter | ||
public class RequestMutation { | ||
|
||
// Additional query parameters and list of values for a parameter that should be added to the | ||
// outgoing FHIR request. | ||
// New values overwrites the old one if there is a conflict for a request param (i.e. a returned | ||
// parameter in RequestMutation is already present in the original request). | ||
// Old parameter values should be explicitly retained while mutating values for that parameter. | ||
@Builder.Default Map<String, List<String>> queryParams = new HashMap<>(); | ||
} |
Oops, something went wrong.