Class DiagnosisKeyBatchAssembler
- java.lang.Object
-
- app.coronawarn.server.services.federation.upload.payload.DiagnosisKeyBatchAssembler
-
@Component public class DiagnosisKeyBatchAssembler extends Object
-
-
Constructor Summary
Constructors Constructor Description DiagnosisKeyBatchAssembler(UploadServiceConfig uploadConfig, AllowedPropertiesMap allowedPropertiesMap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Map<DiagnosisKeyBatch,List<FederationUploadKey>>
assembleDiagnosisKeyBatch(List<FederationUploadKey> diagnosisKeys)
Converts persisted keys into Federation Gateway compatible Diagnosis Keys as specified in the protobuf spec.
-
-
-
Constructor Detail
-
DiagnosisKeyBatchAssembler
public DiagnosisKeyBatchAssembler(UploadServiceConfig uploadConfig, AllowedPropertiesMap allowedPropertiesMap)
-
-
Method Detail
-
assembleDiagnosisKeyBatch
public Map<DiagnosisKeyBatch,List<FederationUploadKey>> assembleDiagnosisKeyBatch(List<FederationUploadKey> diagnosisKeys)
Converts persisted keys into Federation Gateway compatible Diagnosis Keys as specified in the protobuf spec. If data can be uploaded with a single request, a map with a singleDiagnosisKeyBatch
entry is returned.- Parameters:
diagnosisKeys
- raw list ofFederationUploadKey
to be assembled in batches.- Returns:
- Map containing
DiagnosisKeyBatch
and the associated original keys to be uploaded.
-
-