2023-04-03 12:22:22 +02:00
|
|
|
package eu.dnetlib.openaire.exporter.model.dsm;
|
2022-02-04 10:12:15 +01:00
|
|
|
|
|
|
|
import java.util.Date;
|
|
|
|
import java.util.Set;
|
|
|
|
|
|
|
|
import javax.validation.constraints.Email;
|
|
|
|
import javax.validation.constraints.NotBlank;
|
|
|
|
|
|
|
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
|
|
|
|
2022-08-19 15:21:40 +02:00
|
|
|
import io.swagger.v3.oas.annotations.media.Schema;
|
2022-02-04 10:12:15 +01:00
|
|
|
|
|
|
|
@JsonAutoDetect
|
2022-08-19 15:21:40 +02:00
|
|
|
@Schema(name = "Datasource model", description = "provides extended information about the datasource")
|
2022-02-04 10:12:15 +01:00
|
|
|
public class DatasourceSnippetExtended {
|
|
|
|
|
|
|
|
@NotBlank
|
|
|
|
private String id;
|
|
|
|
|
|
|
|
@NotBlank
|
|
|
|
private String officialname;
|
|
|
|
|
|
|
|
@NotBlank
|
|
|
|
private String englishname;
|
|
|
|
|
|
|
|
private String websiteurl;
|
|
|
|
|
|
|
|
@Email
|
|
|
|
private String registeredby;
|
|
|
|
|
|
|
|
private Date registrationdate;
|
|
|
|
|
2022-03-24 12:26:14 +01:00
|
|
|
private String eoscDatasourceType;
|
2022-02-04 10:12:15 +01:00
|
|
|
|
|
|
|
private String logoUrl;
|
|
|
|
|
|
|
|
private String description;
|
|
|
|
|
|
|
|
private Boolean consentTermsOfUse;
|
|
|
|
|
|
|
|
private Date consentTermsOfUseDate;
|
|
|
|
|
2022-04-22 10:25:00 +02:00
|
|
|
private Date lastConsentTermsOfUseDate;
|
2022-02-04 10:12:15 +01:00
|
|
|
|
2022-04-22 10:25:00 +02:00
|
|
|
private Boolean fullTextDownload;
|
|
|
|
|
2022-02-04 10:12:15 +01:00
|
|
|
private Set<OrganizationDetails> organizations;
|
|
|
|
|
2022-04-12 13:05:57 +02:00
|
|
|
@Deprecated
|
|
|
|
private String typology;
|
|
|
|
|
2022-02-04 10:12:15 +01:00
|
|
|
public String getId() {
|
|
|
|
return id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setId(final String id) {
|
|
|
|
this.id = id;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getOfficialname() {
|
|
|
|
return officialname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setOfficialname(final String officialname) {
|
|
|
|
this.officialname = officialname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getEnglishname() {
|
|
|
|
return englishname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setEnglishname(final String englishname) {
|
|
|
|
this.englishname = englishname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getWebsiteurl() {
|
|
|
|
return websiteurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setWebsiteurl(final String websiteurl) {
|
|
|
|
this.websiteurl = websiteurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getRegisteredby() {
|
|
|
|
return registeredby;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRegisteredby(final String registeredby) {
|
|
|
|
this.registeredby = registeredby;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Date getRegistrationdate() {
|
|
|
|
return registrationdate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRegistrationdate(final Date registrationdate) {
|
|
|
|
this.registrationdate = registrationdate;
|
|
|
|
}
|
|
|
|
|
2022-03-24 12:26:14 +01:00
|
|
|
public String getEoscDatasourceType() {
|
|
|
|
return eoscDatasourceType;
|
2022-02-04 10:12:15 +01:00
|
|
|
}
|
|
|
|
|
2022-03-24 12:26:14 +01:00
|
|
|
public void setEoscDatasourceType(final String eoscDatasourceType) {
|
|
|
|
this.eoscDatasourceType = eoscDatasourceType;
|
2022-02-04 10:12:15 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getLogoUrl() {
|
|
|
|
return logoUrl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Boolean getConsentTermsOfUse() {
|
|
|
|
return consentTermsOfUse;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DatasourceSnippetExtended setConsentTermsOfUse(final Boolean consentTermsOfUse) {
|
|
|
|
this.consentTermsOfUse = consentTermsOfUse;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Date getConsentTermsOfUseDate() {
|
|
|
|
return consentTermsOfUseDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DatasourceSnippetExtended setConsentTermsOfUseDate(final Date consentTermsOfUseDate) {
|
|
|
|
this.consentTermsOfUseDate = consentTermsOfUseDate;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Boolean getFullTextDownload() {
|
|
|
|
return fullTextDownload;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DatasourceSnippetExtended setFullTextDownload(final Boolean fullTextDownload) {
|
|
|
|
this.fullTextDownload = fullTextDownload;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DatasourceSnippetExtended setLogoUrl(final String logoUrl) {
|
|
|
|
this.logoUrl = logoUrl;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DatasourceSnippetExtended setDescription(final String description) {
|
|
|
|
this.description = description;
|
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Set<OrganizationDetails> getOrganizations() {
|
|
|
|
return organizations;
|
|
|
|
}
|
|
|
|
|
2022-04-22 10:25:00 +02:00
|
|
|
public DatasourceSnippetExtended setOrganizations(final Set<OrganizationDetails> organizations) {
|
2022-02-04 10:12:15 +01:00
|
|
|
this.organizations = organizations;
|
2022-04-22 10:25:00 +02:00
|
|
|
return this;
|
2022-02-04 10:12:15 +01:00
|
|
|
}
|
|
|
|
|
2022-04-12 13:05:57 +02:00
|
|
|
@Deprecated
|
|
|
|
public String getTypology() {
|
|
|
|
return typology;
|
|
|
|
}
|
|
|
|
|
|
|
|
@Deprecated
|
2022-04-22 10:25:00 +02:00
|
|
|
public DatasourceSnippetExtended setTypology(final String typology) {
|
2022-04-12 13:05:57 +02:00
|
|
|
this.typology = typology;
|
2022-04-22 10:25:00 +02:00
|
|
|
return this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Date getLastConsentTermsOfUseDate() {
|
|
|
|
return lastConsentTermsOfUseDate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public DatasourceSnippetExtended setLastConsentTermsOfUseDate(final Date lastConsentTermsOfUseDate) {
|
|
|
|
this.lastConsentTermsOfUseDate = lastConsentTermsOfUseDate;
|
|
|
|
return this;
|
2022-04-12 13:05:57 +02:00
|
|
|
}
|
|
|
|
|
2022-02-04 10:12:15 +01:00
|
|
|
}
|