dnet-applications/apps/dnet-exporter-api/src/main/java/eu/dnetlib/openaire/dsm/domain/DatasourceDetailsUpdate.java

270 lines
5.5 KiB
Java
Raw Normal View History

2022-02-04 10:12:15 +01:00
package eu.dnetlib.openaire.dsm.domain;
import java.sql.Date;
import java.util.Set;
import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import com.fasterxml.jackson.annotation.JsonAutoDetect;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
/**
* Created by claudio on 12/09/16.
*/
@JsonAutoDetect
2022-08-19 11:20:13 +02:00
@Schema(value = "Datasource updatable fields model", description = "provides information about the datasource field that can be updated")
2022-02-04 10:12:15 +01:00
public class DatasourceDetailsUpdate {
@NotBlank
2022-08-19 11:20:13 +02:00
@Schema(position = 0)
2022-02-04 10:12:15 +01:00
private String id;
@NotBlank
2022-08-19 11:20:13 +02:00
@Schema(position = 2)
2022-02-04 10:12:15 +01:00
private String officialname;
@NotBlank
2022-08-19 11:20:13 +02:00
@Schema(position = 3)
2022-02-04 10:12:15 +01:00
private String englishname;
2022-08-19 11:20:13 +02:00
@Schema(position = 4)
2022-02-04 10:12:15 +01:00
private String websiteurl;
2022-08-19 11:20:13 +02:00
@Schema(position = 5)
2022-02-04 10:12:15 +01:00
private String logourl;
@Email
2022-08-19 11:20:13 +02:00
@Schema(position = 6)
2022-02-04 10:12:15 +01:00
private String contactemail;
2022-08-19 11:20:13 +02:00
@Schema(position = 7)
2022-02-04 10:12:15 +01:00
private Double latitude;
2022-08-19 11:20:13 +02:00
@Schema(position = 8)
2022-02-04 10:12:15 +01:00
private Double longitude;
2022-08-19 11:20:13 +02:00
@Schema(position = 9)
2022-02-04 10:12:15 +01:00
private String timezone;
@Deprecated
2022-08-19 11:20:13 +02:00
@Schema(position = 12)
private String typology;
2022-08-19 11:20:13 +02:00
@Schema(position = 13)
2022-03-24 12:26:14 +01:00
private String eoscDatasourceType;
2022-02-04 10:12:15 +01:00
2022-08-19 11:20:13 +02:00
@Schema(position = 15)
2022-02-04 10:12:15 +01:00
private String platform;
2022-08-19 11:20:13 +02:00
@Schema(position = 17)
2022-02-04 10:12:15 +01:00
private String description;
@Email
2022-08-19 11:20:13 +02:00
@Schema(position = 21)
2022-02-04 10:12:15 +01:00
private String registeredby;
2022-08-19 11:20:13 +02:00
@Schema(position = 25)
2022-02-04 10:12:15 +01:00
private Boolean managed;
2022-08-19 11:20:13 +02:00
@Schema(position = 27)
2022-02-04 10:12:15 +01:00
private Set<IdentitiesDetails> identities;
2022-08-19 11:20:13 +02:00
@Schema(position = 28)
2022-02-04 10:12:15 +01:00
private Boolean consentTermsOfUse;
2022-08-19 11:20:13 +02:00
@Schema(position = 29)
2022-02-04 10:12:15 +01:00
private Date consentTermsOfUseDate;
2022-08-19 11:20:13 +02:00
@Schema(position = 29)
2022-04-22 10:25:00 +02:00
private Date lastConsentTermsOfUseDate;
2022-08-19 11:20:13 +02:00
@Schema(position = 31)
2022-02-04 10:12:15 +01:00
private Boolean fullTextDownload;
public String getId() {
return id;
}
public String getOfficialname() {
return officialname;
}
public String getEnglishname() {
return englishname;
}
public String getWebsiteurl() {
return websiteurl;
}
public String getLogourl() {
return logourl;
}
public String getContactemail() {
return contactemail;
}
public Double getLatitude() {
return latitude;
}
public Double getLongitude() {
return longitude;
}
public String getTimezone() {
return timezone;
}
2022-03-24 12:26:14 +01:00
public String getEoscDatasourceType() {
return eoscDatasourceType;
2022-02-04 10:12:15 +01:00
}
public String getPlatform() {
return platform;
}
public String getDescription() {
return description;
}
public String getRegisteredby() {
return registeredby;
}
public Boolean getManaged() {
return managed;
}
public Set<IdentitiesDetails> getIdentities() {
return identities;
}
public DatasourceDetailsUpdate setId(final String id) {
this.id = id;
return this;
}
public DatasourceDetailsUpdate setOfficialname(final String officialname) {
this.officialname = officialname;
return this;
}
public DatasourceDetailsUpdate setEnglishname(final String englishname) {
this.englishname = englishname;
return this;
}
public DatasourceDetailsUpdate setWebsiteurl(final String websiteurl) {
this.websiteurl = websiteurl;
return this;
}
public DatasourceDetailsUpdate setLogourl(final String logourl) {
this.logourl = logourl;
return this;
}
public DatasourceDetailsUpdate setContactemail(final String contactemail) {
this.contactemail = contactemail;
return this;
}
public DatasourceDetailsUpdate setLatitude(final Double latitude) {
this.latitude = latitude;
return this;
}
public DatasourceDetailsUpdate setLongitude(final Double longitude) {
this.longitude = longitude;
return this;
}
public DatasourceDetailsUpdate setTimezone(final String timezone) {
this.timezone = timezone;
return this;
}
2022-03-24 12:26:14 +01:00
public DatasourceDetailsUpdate setEoscDatasourceType(final String eoscDatasourceType) {
this.eoscDatasourceType = eoscDatasourceType;
2022-02-04 10:12:15 +01:00
return this;
}
public DatasourceDetailsUpdate setPlatform(final String platform) {
this.platform = platform;
return this;
}
public DatasourceDetailsUpdate setDescription(final String description) {
this.description = description;
return this;
}
public DatasourceDetailsUpdate setRegisteredby(final String registeredby) {
this.registeredby = registeredby;
return this;
}
public DatasourceDetailsUpdate setManaged(final Boolean managed) {
this.managed = managed;
return this;
}
public DatasourceDetailsUpdate setIdentities(final Set<IdentitiesDetails> identities) {
this.identities = identities;
return this;
}
public Boolean getConsentTermsOfUse() {
return consentTermsOfUse;
}
2022-04-22 10:25:00 +02:00
public DatasourceDetailsUpdate setConsentTermsOfUse(final Boolean consentTermsOfUse) {
2022-02-04 10:12:15 +01:00
this.consentTermsOfUse = consentTermsOfUse;
2022-04-22 10:25:00 +02:00
return this;
2022-02-04 10:12:15 +01:00
}
public Date getConsentTermsOfUseDate() {
return consentTermsOfUseDate;
}
2022-04-22 10:25:00 +02:00
public DatasourceDetailsUpdate setConsentTermsOfUseDate(final Date consentTermsOfUseDate) {
2022-02-04 10:12:15 +01:00
this.consentTermsOfUseDate = consentTermsOfUseDate;
2022-04-22 10:25:00 +02:00
return this;
2022-02-04 10:12:15 +01:00
}
public Boolean getFullTextDownload() {
return fullTextDownload;
}
2022-04-22 10:25:00 +02:00
public DatasourceDetailsUpdate setFullTextDownload(final Boolean fullTextDownload) {
2022-02-04 10:12:15 +01:00
this.fullTextDownload = fullTextDownload;
2022-04-22 10:25:00 +02:00
return this;
}
public Date getLastConsentTermsOfUseDate() {
return lastConsentTermsOfUseDate;
}
public DatasourceDetailsUpdate setLastConsentTermsOfUseDate(final Date lastConsentTermsOfUseDate) {
this.lastConsentTermsOfUseDate = lastConsentTermsOfUseDate;
return this;
2022-02-04 10:12:15 +01:00
}
@Deprecated
public String getTypology() {
return typology;
}
@Deprecated
public DatasourceDetailsUpdate setTypology(final String typology) {
this.typology = typology;
return this;
}
2022-02-04 10:12:15 +01:00
}