178 lines
3.9 KiB
Java
178 lines
3.9 KiB
Java
package eu.eudat.model.persist.referencetypedefinition;
|
|
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import java.util.List;
|
|
|
|
public class ReferenceTypeUrlConfigurationPersist {
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String key;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String label;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private Integer ordinal;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String url;
|
|
|
|
@Valid
|
|
private DataUrlConfigurationPersist data;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String type;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String paginationPath;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String contentType;
|
|
|
|
private String funderQuery;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String firstpage;
|
|
|
|
private String requestType = "GET";
|
|
private String requestBody = "";
|
|
private String filterType = "remote";
|
|
|
|
@Valid
|
|
private AuthenticationConfigurationPersist auth;
|
|
|
|
@Valid
|
|
private List<QueryConfigPersist> queries;
|
|
|
|
public String getKey() {
|
|
return key;
|
|
}
|
|
|
|
public void setKey(String key) {
|
|
this.key = key;
|
|
}
|
|
|
|
public String getLabel() {
|
|
return label;
|
|
}
|
|
|
|
public void setLabel(String label) {
|
|
this.label = label;
|
|
}
|
|
|
|
public Integer getOrdinal() {
|
|
return ordinal;
|
|
}
|
|
|
|
public void setOrdinal(Integer ordinal) {
|
|
this.ordinal = ordinal;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
public DataUrlConfigurationPersist getData() {
|
|
return data;
|
|
}
|
|
|
|
public void setData(DataUrlConfigurationPersist data) {
|
|
this.data = data;
|
|
}
|
|
|
|
public String getType() {
|
|
return type;
|
|
}
|
|
|
|
public void setType(String type) {
|
|
this.type = type;
|
|
}
|
|
|
|
public String getPaginationPath() {
|
|
return paginationPath;
|
|
}
|
|
|
|
public void setPaginationPath(String paginationPath) {
|
|
this.paginationPath = paginationPath;
|
|
}
|
|
|
|
public String getContentType() {
|
|
return contentType;
|
|
}
|
|
|
|
public void setContentType(String contentType) {
|
|
this.contentType = contentType;
|
|
}
|
|
|
|
public String getFunderQuery() {
|
|
return funderQuery;
|
|
}
|
|
|
|
public void setFunderQuery(String funderQuery) {
|
|
this.funderQuery = funderQuery;
|
|
}
|
|
|
|
public String getFirstpage() {
|
|
return firstpage;
|
|
}
|
|
|
|
public void setFirstpage(String firstpage) {
|
|
this.firstpage = firstpage;
|
|
}
|
|
|
|
public String getRequestType() {
|
|
return requestType;
|
|
}
|
|
|
|
public void setRequestType(String requestType) {
|
|
this.requestType = requestType;
|
|
}
|
|
|
|
public String getRequestBody() {
|
|
return requestBody;
|
|
}
|
|
|
|
public void setRequestBody(String requestBody) {
|
|
this.requestBody = requestBody;
|
|
}
|
|
|
|
public String getFilterType() {
|
|
return filterType;
|
|
}
|
|
|
|
public void setFilterType(String filterType) {
|
|
this.filterType = filterType;
|
|
}
|
|
|
|
public AuthenticationConfigurationPersist getAuth() {
|
|
return auth;
|
|
}
|
|
|
|
public void setAuth(AuthenticationConfigurationPersist auth) {
|
|
this.auth = auth;
|
|
}
|
|
|
|
public List<QueryConfigPersist> getQueries() {
|
|
return queries;
|
|
}
|
|
|
|
public void setQueries(List<QueryConfigPersist> queries) {
|
|
this.queries = queries;
|
|
}
|
|
}
|