argos/dmp-backend/core/src/main/java/eu/eudat/configurations/deposit/DepositProperties.java

79 lines
1.8 KiB
Java
Raw Normal View History

package eu.eudat.configurations.deposit;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.boot.context.properties.bind.ConstructorBinding;
import java.util.List;
@ConfigurationProperties(prefix = "deposit")
public class DepositProperties {
2023-12-13 10:42:59 +01:00
private List<DepositSource> sources;
2023-10-26 17:04:55 +02:00
public List<DepositSource> getSources() {
return sources;
}
2023-12-13 10:42:59 +01:00
public void setSources(List<DepositSource> sources) {
this.sources = sources;
}
2023-10-26 17:04:55 +02:00
public static class DepositSource {
2023-12-13 10:42:59 +01:00
private String repositoryId;
private String url;
private String issuerUrl;
private String clientId;
private String clientSecret;
private String scope;
2023-10-26 17:04:55 +02:00
2023-12-13 10:42:59 +01:00
public String getRepositoryId() {
return repositoryId;
}
public void setRepositoryId(String repositoryId) {
this.repositoryId = repositoryId;
2023-10-26 17:04:55 +02:00
}
public String getUrl() {
return url;
}
2023-12-13 10:42:59 +01:00
public void setUrl(String url) {
this.url = url;
}
2023-10-26 17:04:55 +02:00
public String getIssuerUrl() {
return issuerUrl;
}
2023-12-13 10:42:59 +01:00
public void setIssuerUrl(String issuerUrl) {
this.issuerUrl = issuerUrl;
}
2023-10-26 17:04:55 +02:00
public String getClientId() {
return clientId;
}
2023-12-13 10:42:59 +01:00
public void setClientId(String clientId) {
this.clientId = clientId;
}
2023-10-26 17:04:55 +02:00
public String getClientSecret() {
return clientSecret;
}
2023-12-13 10:42:59 +01:00
public void setClientSecret(String clientSecret) {
this.clientSecret = clientSecret;
}
2023-10-26 17:04:55 +02:00
public String getScope() {
return scope;
}
2023-12-13 10:42:59 +01:00
public void setScope(String scope) {
this.scope = scope;
}
}
}