89 lines
2.0 KiB
Java
89 lines
2.0 KiB
Java
package eu.eudat.model.persist.descriptiontemplatedefinition.fielddata;
|
|
|
|
import eu.eudat.commons.types.descriptiontemplate.fielddata.AutoCompleteDataEntity;
|
|
import eu.eudat.commons.validation.old.ValidEnum;
|
|
import jakarta.validation.Valid;
|
|
import jakarta.validation.constraints.NotEmpty;
|
|
import jakarta.validation.constraints.NotNull;
|
|
|
|
public class AutoCompleteSingleDataPersist {
|
|
|
|
@ValidEnum(message = "{validation.empty}")
|
|
private AutoCompleteDataEntity.AutocompleteType autocompleteType;
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String url = null;
|
|
|
|
@Valid
|
|
private ComboBoxOptionPersist autoCompleteOptions;
|
|
|
|
private String optionsRoot;
|
|
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
private Boolean hasAuth = null;
|
|
|
|
@Valid
|
|
private AuthAutoCompleteDataPersist auth;
|
|
|
|
@NotNull(message = "{validation.empty}")
|
|
@NotEmpty(message = "{validation.empty}")
|
|
private String method = null;
|
|
|
|
public AutoCompleteDataEntity.AutocompleteType getAutocompleteType() {
|
|
return autocompleteType;
|
|
}
|
|
|
|
public void setAutocompleteType(AutoCompleteDataEntity.AutocompleteType autocompleteType) {
|
|
this.autocompleteType = autocompleteType;
|
|
}
|
|
|
|
public String getOptionsRoot() {
|
|
return optionsRoot;
|
|
}
|
|
|
|
public void setOptionsRoot(String optionsRoot) {
|
|
this.optionsRoot = optionsRoot;
|
|
}
|
|
|
|
public String getUrl() {
|
|
return url;
|
|
}
|
|
|
|
public void setUrl(String url) {
|
|
this.url = url;
|
|
}
|
|
|
|
public Boolean getHasAuth() {
|
|
return hasAuth;
|
|
}
|
|
|
|
public void setHasAuth(Boolean hasAuth) {
|
|
this.hasAuth = hasAuth;
|
|
}
|
|
|
|
public AuthAutoCompleteDataPersist getAuth() {
|
|
return auth;
|
|
}
|
|
|
|
public void setAuth(AuthAutoCompleteDataPersist auth) {
|
|
this.auth = auth;
|
|
}
|
|
|
|
public ComboBoxOptionPersist getAutoCompleteOptions() {
|
|
return autoCompleteOptions;
|
|
}
|
|
|
|
public void setAutoCompleteOptions(ComboBoxOptionPersist autoCompleteOptions) {
|
|
this.autoCompleteOptions = autoCompleteOptions;
|
|
}
|
|
|
|
public String getMethod() {
|
|
return method;
|
|
}
|
|
|
|
public void setMethod(String method) {
|
|
this.method = method;
|
|
}
|
|
}
|