Class EnfParameterAdapter
- java.lang.Object
-
- app.coronawarn.server.services.distribution.assembly.transformation.EnfParameterAdapter
-
@Component public class EnfParameterAdapter extends Object
This component is used to adapt the information contained within keys coming via EFGS to the requirements of the CWA client with respect to the ENF version that its using. This is needed because some of the fields might carry information alligned with EFGS spec that is not fully compliant with ENF spec, or simply not compliant with the needs of the CWA client (i.e we need to adapt how infectiousness/transmission risk gets calculated).One important thing to note is that these field adaptations are performed on the fly prior to distribution. These changes are not persistent, such that no previous EFGS provided information is lost.
-
-
Constructor Summary
Constructors Constructor Description EnfParameterAdapter(TransmissionRiskLevelEncoding trlEncoding)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Collection<DiagnosisKey>
adaptKeys(Collection<DiagnosisKey> diagnosisKeys)
Given the collection of keys, create another one with all original elements but with ENF related content transformations applied.
-
-
-
Constructor Detail
-
EnfParameterAdapter
public EnfParameterAdapter(TransmissionRiskLevelEncoding trlEncoding)
-
-
Method Detail
-
adaptKeys
public Collection<DiagnosisKey> adaptKeys(Collection<DiagnosisKey> diagnosisKeys)
Given the collection of keys, create another one with all original elements but with ENF related content transformations applied.
-
-