Class AllowedPropertiesMap
- java.lang.Object
-
- app.coronawarn.server.services.federation.upload.payload.AllowedPropertiesMap
-
@Component public class AllowedPropertiesMap extends Object
-
-
Constructor Summary
Constructors Constructor Description AllowedPropertiesMap(UploadServiceConfig configuration)
Reads configuration and returns the received value if properties are allowed to be sent to EFGS.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getDsosOrDefault(int dsos)
ReportType
getReportTypeOrDefault(ReportType type)
-
-
-
Constructor Detail
-
AllowedPropertiesMap
public AllowedPropertiesMap(UploadServiceConfig configuration)
Reads configuration and returns the received value if properties are allowed to be sent to EFGS. Returns a default otherwise.- Parameters:
configuration
-UploadServiceConfig
Upload configuration.
-
-
Method Detail
-
getDsosOrDefault
public int getDsosOrDefault(int dsos)
-
getReportTypeOrDefault
public ReportType getReportTypeOrDefault(ReportType type)
-
-