argos/dmp-backend/core/src/main/java/eu/eudat/configurations/transformer/TransformerProperties.java

66 lines
1.7 KiB
Java
Raw Normal View History

2023-12-18 11:55:19 +01:00
package eu.eudat.configurations.transformer;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.ConstructorBinding;
import java.util.List;
@ConfigurationProperties(prefix = "transformer")
public class TransformerProperties {
private final List<TransformerSource> sources;
@ConstructorBinding
public TransformerProperties(List<TransformerSource> sources) {
this.sources = sources;
}
public List<TransformerSource> getSources() {
return sources;
}
public static class TransformerSource {
private final String url;
2024-03-11 14:01:56 +01:00
private final String transformerId;
2023-12-18 11:55:19 +01:00
private final String issuerUrl;
private final String clientId;
private final String clientSecret;
private final String scope;
@ConstructorBinding
2024-03-27 17:20:49 +01:00
public TransformerSource(String url, String transformerId, String issuerUrl, String clientId, String clientSecret, String scope) {
2023-12-18 11:55:19 +01:00
this.url = url;
2024-03-11 14:01:56 +01:00
this.transformerId = transformerId;
2023-12-18 11:55:19 +01:00
this.issuerUrl = issuerUrl;
this.clientId = clientId;
this.clientSecret = clientSecret;
this.scope = scope;
}
public String getUrl() {
return url;
}
public String getIssuerUrl() {
return issuerUrl;
}
public String getClientId() {
return clientId;
}
public String getClientSecret() {
return clientSecret;
}
public String getScope() {
return scope;
}
2024-03-11 14:01:56 +01:00
public String getTransformerId() {
return transformerId;
}
2023-12-18 11:55:19 +01:00
}
}