Class ApplicationConfigurationPublicationConfig
- java.lang.Object
-
- app.coronawarn.server.services.distribution.assembly.appconfig.ApplicationConfigurationPublicationConfig
-
@Configuration public class ApplicationConfigurationPublicationConfig extends Object
Provides the application configuration needed for the mobile client. Contains all necessary sub-configs, including:- Exposure Configuration
- Risk Score Classification
- App Config, e.g. minimum risk threshold
- Supported countries
- Min/Max application version configuration
- AndroidKeyDownloadParameters configuration
- IosKeyDownloadParameters configuration
- AndroidExposureDetectionParameters configuration
- IosExposureDetectionParameters configuration
The application config is fetched from the master-config folder. Furthermore it's extended with the list of supported countries and the min/max application versions for android/ios.
-
-
Field Summary
Fields Modifier and Type Field Description static String
MASTER_FILE
The location of the exposure configuration master file.
-
Constructor Summary
Constructors Constructor Description ApplicationConfigurationPublicationConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApplicationVersionConfiguration
buildApplicationVersionConfiguration(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ApplicationConfiguration instance.ExposureDetectionParametersAndroid
buildExposureDetectionParametersAndroid(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ExposureDetectionParametersAndroid instance.ExposureDetectionParametersIOS
buildExposureDetectionParametersIos(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ExposureDetectionParametersIOS instance.KeyDownloadParametersAndroid
buildKeyDownloadParametersAndroid(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a KeyDownloadParametersAndroid instance.KeyDownloadParametersIOS
buildKeyDownloadParametersIos(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a KeyDownloadParametersIOS instance.ApplicationConfiguration
createMasterConfiguration(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ApplicationConfiguration instance.
-
-
-
Field Detail
-
MASTER_FILE
public static final String MASTER_FILE
The location of the exposure configuration master file.- See Also:
- Constant Field Values
-
-
Method Detail
-
createMasterConfiguration
@Bean public ApplicationConfiguration createMasterConfiguration(DistributionServiceConfig distributionServiceConfig) throws UnableToLoadFileException
Fetches the master configuration as a ApplicationConfiguration instance.- Returns:
- the exposure configuration as ApplicationConfiguration
- Throws:
UnableToLoadFileException
- when the file/transformation did not succeed
-
buildApplicationVersionConfiguration
public ApplicationVersionConfiguration buildApplicationVersionConfiguration(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ApplicationConfiguration instance.- Returns:
- test.
-
buildKeyDownloadParametersAndroid
public KeyDownloadParametersAndroid buildKeyDownloadParametersAndroid(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a KeyDownloadParametersAndroid instance.- Returns:
- test.
-
buildKeyDownloadParametersIos
public KeyDownloadParametersIOS buildKeyDownloadParametersIos(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a KeyDownloadParametersIOS instance.- Returns:
- test.
-
buildExposureDetectionParametersAndroid
public ExposureDetectionParametersAndroid buildExposureDetectionParametersAndroid(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ExposureDetectionParametersAndroid instance.- Returns:
- test.
-
buildExposureDetectionParametersIos
public ExposureDetectionParametersIOS buildExposureDetectionParametersIos(DistributionServiceConfig distributionServiceConfig)
Fetches the master configuration as a ExposureDetectionParametersIOS instance.- Returns:
- test.
-
-