Skip to content

Commit

Permalink
Fix code formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
UBaggeler committed Mar 16, 2021
1 parent 3a7d712 commit 3db3474
Show file tree
Hide file tree
Showing 11 changed files with 88 additions and 91 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -316,11 +316,11 @@ private void internalUpsertKey(
+ " :rolling_start_number, :rolling_period, :received_at, cast(:origin as"
+ " varchar(10)), :share_with_federation_gateway, cast(:batch_tag as varchar(50))))"
+ " as vals(key, rolling_start_number, rolling_period, received_at, origin,"
+ " share_with_federation_gateway, batch_tag) on t_gaen_exposed.key = vals.key"
+ " when not matched then insert (key, rolling_start_number, rolling_period,"
+ " received_at, origin, share_with_federation_gateway, batch_tag)"
+ " values (vals.key, vals.rolling_start_number, vals.rolling_period,"
+ " vals.received_at, vals.origin, vals.share_with_federation_gateway, vals.batch_tag)";
+ " share_with_federation_gateway, batch_tag) on t_gaen_exposed.key = vals.key when"
+ " not matched then insert (key, rolling_start_number, rolling_period, received_at,"
+ " origin, share_with_federation_gateway, batch_tag) values (vals.key,"
+ " vals.rolling_start_number, vals.rolling_period, vals.received_at, vals.origin,"
+ " vals.share_with_federation_gateway, vals.batch_tag)";
}

MapSqlParameterSource params = new MapSqlParameterSource();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
public interface SyncLogDataService {

/**
* returns the latest batch tag for the given `uploadDate` or null if no batches have been downloaded
* yet
* returns the latest batch tag for the given `uploadDate` or null if no batches have been
* downloaded yet
*
* @param uploadDate
* @return
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ public List<EfgsGatewayConfig> getEfgsGateways() {
return efgsGateways;
}

public void setEfgsGateways(
List<EfgsGatewayConfig> efgsGateways) {
public void setEfgsGateways(List<EfgsGatewayConfig> efgsGateways) {
this.efgsGateways = efgsGateways;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ public class CryptoProvider {
private final X509Certificate publicKey;

/** Creates a CryptoProvider, using {@link BouncyCastleProvider}. */
public CryptoProvider(String signClientCert, String signClientCertPassword) throws CertificateException {
public CryptoProvider(String signClientCert, String signClientCertPassword)
throws CertificateException {
privateKey = loadPrivateKey(signClientCertPassword);
publicKey = loadPublicKey(signClientCert);
Security.addProvider(new BouncyCastleProvider());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Profile;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
public class GaenDataServiceConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
public class SyncLogDataServiceConfig {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,76 +4,76 @@
import org.dpppt.backend.sdk.utils.UTCInstant;

public class FederationSyncLogEntry {
private Integer id;
private String gateway;
private SyncAction action;
private String batchTag;
private LocalDate uploadDate;
private UTCInstant startTime;
private UTCInstant endTime;
private SyncState state;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getGateway() {
return gateway;
}

public void setGateway(String gateway) {
this.gateway = gateway;
}

public SyncAction getAction() {
return action;
}

public void setAction(SyncAction action) {
this.action = action;
}

public String getBatchTag() {
return batchTag;
}

public void setBatchTag(String batchTag) {
this.batchTag = batchTag;
}

public LocalDate getUploadDate() {
return uploadDate;
}

public void setUploadDate(LocalDate uploadDate) {
this.uploadDate = uploadDate;
}

public UTCInstant getStartTime() {
return startTime;
}

public void setStartTime(UTCInstant startTime) {
this.startTime = startTime;
}

public UTCInstant getEndTime() {
return endTime;
}

public void setEndTime(UTCInstant endTime) {
this.endTime = endTime;
}

public SyncState getState() {
return state;
}

public void setState(SyncState state) {
this.state = state;
}
private Integer id;
private String gateway;
private SyncAction action;
private String batchTag;
private LocalDate uploadDate;
private UTCInstant startTime;
private UTCInstant endTime;
private SyncState state;

public Integer getId() {
return id;
}

public void setId(Integer id) {
this.id = id;
}

public String getGateway() {
return gateway;
}

public void setGateway(String gateway) {
this.gateway = gateway;
}

public SyncAction getAction() {
return action;
}

public void setAction(SyncAction action) {
this.action = action;
}

public String getBatchTag() {
return batchTag;
}

public void setBatchTag(String batchTag) {
this.batchTag = batchTag;
}

public LocalDate getUploadDate() {
return uploadDate;
}

public void setUploadDate(LocalDate uploadDate) {
this.uploadDate = uploadDate;
}

public UTCInstant getStartTime() {
return startTime;
}

public void setStartTime(UTCInstant startTime) {
this.startTime = startTime;
}

public UTCInstant getEndTime() {
return endTime;
}

public void setEndTime(UTCInstant endTime) {
this.endTime = endTime;
}

public SyncState getState() {
return state;
}

public void setState(SyncState state) {
this.state = state;
}
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.dpppt.backend.sdk.model.interops;

public enum SyncAction {
UPLOAD, DOWNLOAD;
UPLOAD,
DOWNLOAD;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.dpppt.backend.sdk.model.interops;

public enum SyncState {
ERROR, DONE;
ERROR,
DONE;
}
Original file line number Diff line number Diff line change
Expand Up @@ -94,8 +94,7 @@ public abstract class BaseControllerTest {

@Autowired ProtoSignature signer;
@Autowired KeyVault keyVault;
@Autowired
GaenDataService gaenDataService;
@Autowired GaenDataService gaenDataService;

protected TestJdbcGaen testGaenDataService;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,7 @@
public class GaenV2ControllerTest extends BaseControllerTest {
@Autowired ProtoSignature signer;
@Autowired KeyVault keyVault;
@Autowired
GaenDataService gaenDataService;
@Autowired GaenDataService gaenDataService;

Duration releaseBucketDuration = Duration.ofMillis(7200000L);

Expand Down

0 comments on commit 3db3474

Please sign in to comment.