126 lines
3.1 KiB
Java
126 lines
3.1 KiB
Java
package eu.eudat.model.persist.referencetypedefinition;
|
|
|
|
import eu.eudat.commons.enums.ReferenceTypeExternalApiHTTPMethodType;
|
|
import eu.eudat.commons.enums.ReferenceTypeSourceType;
|
|
import eu.eudat.commons.validation.ValidEnum;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
import java.util.List;
|
|
|
|
public class ReferenceTypeSourceExternalApiConfigurationPersist extends ReferenceTypeSourceBaseConfigurationPersist{
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String url;
|
|
|
|
@Valid
|
|
private ResultsConfigurationPersist results;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String paginationPath;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String contentType;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String firstPage;
|
|
|
|
@ValidEnum(message = "{validation.empty}")
|
|
private ReferenceTypeExternalApiHTTPMethodType httpMethod;
|
|
private String requestBody = "";
|
|
private String filterType = "remote";
|
|
|
|
@Valid
|
|
private AuthenticationConfigurationPersist auth;
|
|
|
|
@Valid
|
|
private List<QueryConfigPersist> queries;
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
public ResultsConfigurationPersist getResults() {
|
|
return results;
|
|
}
|
|
|
|
public void setResults(ResultsConfigurationPersist results) {
|
|
this.results = results;
|
|
}
|
|
|
|
|
|
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 getFirstPage() {
|
|
return firstPage;
|
|
}
|
|
|
|
public void setFirstPage(String firstPage) {
|
|
this.firstPage = firstPage;
|
|
}
|
|
|
|
public ReferenceTypeExternalApiHTTPMethodType getHttpMethod() {
|
|
return httpMethod;
|
|
}
|
|
|
|
public void setHttpMethod(ReferenceTypeExternalApiHTTPMethodType httpMethod) {
|
|
this.httpMethod = httpMethod;
|
|
}
|
|
|
|
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;
|
|
}
|
|
}
|