Uses of Class
app.coronawarn.server.common.persistence.domain.DiagnosisKey
-
-
Uses of DiagnosisKey in app.coronawarn.server.common.persistence.domain
Subclasses of DiagnosisKey in app.coronawarn.server.common.persistence.domain Modifier and Type Class Description classFederationUploadKeyThis entity is mapped to a table which serves as data source for the uploading of diagnosis keys to the Federation Gateway Service.Methods in app.coronawarn.server.common.persistence.domain that return DiagnosisKey Modifier and Type Method Description DiagnosisKeyDiagnosisKeyBuilder. build()Methods in app.coronawarn.server.common.persistence.domain that return types with arguments of type DiagnosisKey Modifier and Type Method Description Set<javax.validation.ConstraintViolation<DiagnosisKey>>DiagnosisKey. validate()Gets any constraint violations that this key might incorporate.Methods in app.coronawarn.server.common.persistence.domain with parameters of type DiagnosisKey Modifier and Type Method Description static FederationUploadKeyFederationUploadKey. from(DiagnosisKey diagnosisKeySource)Create a new instance of an upload key by copying the properties of the given source diagnosis key. -
Uses of DiagnosisKey in app.coronawarn.server.common.persistence.service
Methods in app.coronawarn.server.common.persistence.service that return types with arguments of type DiagnosisKey Modifier and Type Method Description List<DiagnosisKey>DiagnosisKeyService. getDiagnosisKeys()Returns all valid persisted diagnosis keys, sorted by their submission timestamp.Method parameters in app.coronawarn.server.common.persistence.service with type arguments of type DiagnosisKey Modifier and Type Method Description intDiagnosisKeyService. saveDiagnosisKeys(Collection<DiagnosisKey> diagnosisKeys)Persists the specified collection ofDiagnosisKeyinstances and returns the number of inserted diagnosis keys. -
Uses of DiagnosisKey in app.coronawarn.server.common.persistence.service.common
Methods in app.coronawarn.server.common.persistence.service.common that return types with arguments of type DiagnosisKey Modifier and Type Method Description List<DiagnosisKey>ValidDiagnosisKeyFilter. filter(List<DiagnosisKey> diagnosisKeys)Rerturns a subset of diagnosis keys from the given list which have passed the default entity validation.Methods in app.coronawarn.server.common.persistence.service.common with parameters of type DiagnosisKey Modifier and Type Method Description booleanKeySharingPoliciesChecker. canShareKeyAtTime(DiagnosisKey key, ExpirationPolicy policy, LocalDateTime timeToShare)Returns true if the given diagnosis key can be shared at the given time taking into account the expiration policy.LocalDateTimeKeySharingPoliciesChecker. getEarliestTimeForSharingKey(DiagnosisKey diagnosisKey, ExpirationPolicy policy)Calculates the earliest point in time at which the specifiedDiagnosisKeycan be shared with external systems, while respecting the expiry policy and the submission timestamp.booleanValidDiagnosisKeyFilter. isDiagnosisKeyValid(DiagnosisKey diagnosisKey)Returns true if the given diagnosis key has passed the default entity validation.Method parameters in app.coronawarn.server.common.persistence.service.common with type arguments of type DiagnosisKey Modifier and Type Method Description List<DiagnosisKey>ValidDiagnosisKeyFilter. filter(List<DiagnosisKey> diagnosisKeys)Rerturns a subset of diagnosis keys from the given list which have passed the default entity validation. -
Uses of DiagnosisKey in app.coronawarn.server.services.distribution.assembly.diagnosiskeys
Fields in app.coronawarn.server.services.distribution.assembly.diagnosiskeys with type parameters of type DiagnosisKey Modifier and Type Field Description protected Map<String,Map<LocalDateTime,List<DiagnosisKey>>>DiagnosisKeyBundler. distributableDiagnosisKeysA map containing diagnosis keys, grouped by country and mapped by the LocalDateTime on which they may be distributed.Methods in app.coronawarn.server.services.distribution.assembly.diagnosiskeys that return types with arguments of type DiagnosisKey Modifier and Type Method Description List<DiagnosisKey>DiagnosisKeyBundler. getAllDiagnosisKeys(String country)Returns allDiagnosisKeyscontained by thisDiagnosisKeyBundler.List<DiagnosisKey>DiagnosisKeyBundler. getDiagnosisKeysForDate(LocalDate date, String country)Returns all diagnosis keys that should be distributed on a specific date for a specific country.List<DiagnosisKey>DiagnosisKeyBundler. getDiagnosisKeysForHour(LocalDateTime hour, String country)Returns all diagnosis keys that should be distributed in a specific hour for a specific country.protected Map<String,List<DiagnosisKey>>DiagnosisKeyBundler. groupDiagnosisKeysByCountry(Collection<DiagnosisKey> diagnosisKeys)Methods in app.coronawarn.server.services.distribution.assembly.diagnosiskeys with parameters of type DiagnosisKey Modifier and Type Method Description protected LocalDateTimeDiagnosisKeyBundler. getSubmissionDateTime(DiagnosisKey diagnosisKey)Returns the submission timestamp of aDiagnosisKeyas aLocalDateTime.Method parameters in app.coronawarn.server.services.distribution.assembly.diagnosiskeys with type arguments of type DiagnosisKey Modifier and Type Method Description protected voidDemoDiagnosisKeyBundler. createDiagnosisKeyDistributionMap(Collection<DiagnosisKey> diagnosisKeys)Initializes the internaldistributableDiagnosisKeysmap, grouping the diagnosis keys by country and the submission timestamp, thus ignoring the expiry and shifting policies.protected abstract voidDiagnosisKeyBundler. createDiagnosisKeyDistributionMap(Collection<DiagnosisKey> diagnosisKeys)Initializes the internaldistributableDiagnosisKeysmap, which should contain all diagnosis keys, grouped by the LocalDateTime on which they may be distributed.protected voidProdDiagnosisKeyBundler. createDiagnosisKeyDistributionMap(Collection<DiagnosisKey> diagnosisKeys)Initializes the internaldistributableDiagnosisKeysmap, grouping the diagnosis keys based on the country and by the date on which they may be distributed, while respecting the expiry and shifting policies.protected Map<String,List<DiagnosisKey>>DiagnosisKeyBundler. groupDiagnosisKeysByCountry(Collection<DiagnosisKey> diagnosisKeys)voidDiagnosisKeyBundler. setDiagnosisKeys(Collection<DiagnosisKey> diagnosisKeys, LocalDateTime distributionTime)Sets theDiagnosisKeyscontained by thisDiagnosisKeyBundlerand the time at which the distribution runs and callsDiagnosisKeyBundler.createDiagnosisKeyDistributionMap(java.util.Collection<app.coronawarn.server.common.persistence.domain.DiagnosisKey>). -
Uses of DiagnosisKey in app.coronawarn.server.services.distribution.assembly.diagnosiskeys.structure.file
Method parameters in app.coronawarn.server.services.distribution.assembly.diagnosiskeys.structure.file with type arguments of type DiagnosisKey Modifier and Type Method Description static TemporaryExposureKeyExportFileTemporaryExposureKeyExportFile. fromDiagnosisKeys(Collection<DiagnosisKey> diagnosisKeys, String region, long startTimestamp, long endTimestamp, DistributionServiceConfig distributionServiceConfig)Constructs aTemporaryExposureKeyExportFilefromDiagnosisKeys.
-