2019-10-24 11:39:41 +02:00
|
|
|
package eu.dnetlib.dhp.schema.oaf;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.List;
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public class Datasource extends OafEntity implements Serializable {
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
private Qualifier datasourcetype;
|
|
|
|
|
|
|
|
private Qualifier openairecompatibility;
|
|
|
|
|
|
|
|
private Field<String> officialname;
|
|
|
|
|
|
|
|
private Field<String> englishname;
|
|
|
|
|
|
|
|
private Field<String> websiteurl;
|
|
|
|
|
|
|
|
private Field<String> logourl;
|
|
|
|
|
|
|
|
private Field<String> contactemail;
|
|
|
|
|
|
|
|
private Field<String> namespaceprefix;
|
|
|
|
|
|
|
|
private Field<String> latitude;
|
|
|
|
|
|
|
|
private Field<String> longitude;
|
|
|
|
|
|
|
|
private Field<String> dateofvalidation;
|
|
|
|
|
|
|
|
private Field<String> description;
|
|
|
|
|
|
|
|
private List<StructuredProperty> subjects;
|
|
|
|
|
|
|
|
// opendoar specific fields (od*)
|
|
|
|
private Field<String> odnumberofitems;
|
|
|
|
|
|
|
|
private Field<String> odnumberofitemsdate;
|
|
|
|
|
|
|
|
private Field<String> odpolicies;
|
|
|
|
|
|
|
|
private List<Field<String>> odlanguages;
|
|
|
|
|
2020-02-03 10:35:51 +01:00
|
|
|
private List<Field<String>> odcontenttypes;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
2020-02-03 10:35:51 +01:00
|
|
|
private List<Field<String>> accessinfopackage;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
// re3data fields
|
|
|
|
private Field<String> releasestartdate;
|
|
|
|
|
|
|
|
private Field<String> releaseenddate;
|
|
|
|
|
|
|
|
private Field<String> missionstatementurl;
|
|
|
|
|
|
|
|
private Field<Boolean> dataprovider;
|
|
|
|
|
|
|
|
private Field<Boolean> serviceprovider;
|
|
|
|
|
|
|
|
// {open, restricted or closed}
|
|
|
|
private Field<String> databaseaccesstype;
|
|
|
|
|
|
|
|
// {open, restricted or closed}
|
|
|
|
private Field<String> datauploadtype;
|
|
|
|
|
|
|
|
// {feeRequired, registration, other}
|
|
|
|
private Field<String> databaseaccessrestriction;
|
|
|
|
|
|
|
|
// {feeRequired, registration, other}
|
2019-10-25 09:25:36 +02:00
|
|
|
private Field<String> datauploadrestriction;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
private Field<Boolean> versioning;
|
|
|
|
|
|
|
|
private Field<String> citationguidelineurl;
|
|
|
|
|
|
|
|
//{yes, no, uknown}
|
|
|
|
private Field<String> qualitymanagementkind;
|
|
|
|
|
|
|
|
private Field<String> pidsystems;
|
|
|
|
|
|
|
|
private Field<String> certificates;
|
|
|
|
|
2019-12-12 15:36:41 +01:00
|
|
|
private List<KeyValue> policies;
|
2019-10-24 11:39:41 +02:00
|
|
|
|
|
|
|
private Journal journal;
|
|
|
|
|
|
|
|
public Qualifier getDatasourcetype() {
|
|
|
|
return datasourcetype;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDatasourcetype(Qualifier datasourcetype) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.datasourcetype = datasourcetype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Qualifier getOpenairecompatibility() {
|
|
|
|
return openairecompatibility;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOpenairecompatibility(Qualifier openairecompatibility) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.openairecompatibility = openairecompatibility;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getOfficialname() {
|
|
|
|
return officialname;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOfficialname(Field<String> officialname) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.officialname = officialname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getEnglishname() {
|
|
|
|
return englishname;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setEnglishname(Field<String> englishname) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.englishname = englishname;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getWebsiteurl() {
|
|
|
|
return websiteurl;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setWebsiteurl(Field<String> websiteurl) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.websiteurl = websiteurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getLogourl() {
|
|
|
|
return logourl;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setLogourl(Field<String> logourl) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.logourl = logourl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getContactemail() {
|
|
|
|
return contactemail;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setContactemail(Field<String> contactemail) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.contactemail = contactemail;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getNamespaceprefix() {
|
|
|
|
return namespaceprefix;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setNamespaceprefix(Field<String> namespaceprefix) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.namespaceprefix = namespaceprefix;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getLatitude() {
|
|
|
|
return latitude;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setLatitude(Field<String> latitude) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.latitude = latitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getLongitude() {
|
|
|
|
return longitude;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setLongitude(Field<String> longitude) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.longitude = longitude;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getDateofvalidation() {
|
|
|
|
return dateofvalidation;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDateofvalidation(Field<String> dateofvalidation) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.dateofvalidation = dateofvalidation;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDescription(Field<String> description) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<StructuredProperty> getSubjects() {
|
|
|
|
return subjects;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setSubjects(List<StructuredProperty> subjects) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.subjects = subjects;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getOdnumberofitems() {
|
|
|
|
return odnumberofitems;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOdnumberofitems(Field<String> odnumberofitems) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.odnumberofitems = odnumberofitems;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getOdnumberofitemsdate() {
|
|
|
|
return odnumberofitemsdate;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOdnumberofitemsdate(Field<String> odnumberofitemsdate) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.odnumberofitemsdate = odnumberofitemsdate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getOdpolicies() {
|
|
|
|
return odpolicies;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOdpolicies(Field<String> odpolicies) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.odpolicies = odpolicies;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Field<String>> getOdlanguages() {
|
|
|
|
return odlanguages;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOdlanguages(List<Field<String>> odlanguages) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.odlanguages = odlanguages;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Field<String>> getOdcontenttypes() {
|
|
|
|
return odcontenttypes;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setOdcontenttypes(List<Field<String>> odcontenttypes) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.odcontenttypes = odcontenttypes;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Field<String>> getAccessinfopackage() {
|
|
|
|
return accessinfopackage;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setAccessinfopackage(List<Field<String>> accessinfopackage) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.accessinfopackage = accessinfopackage;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getReleasestartdate() {
|
|
|
|
return releasestartdate;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setReleasestartdate(Field<String> releasestartdate) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.releasestartdate = releasestartdate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getReleaseenddate() {
|
|
|
|
return releaseenddate;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setReleaseenddate(Field<String> releaseenddate) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.releaseenddate = releaseenddate;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getMissionstatementurl() {
|
|
|
|
return missionstatementurl;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setMissionstatementurl(Field<String> missionstatementurl) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.missionstatementurl = missionstatementurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<Boolean> getDataprovider() {
|
|
|
|
return dataprovider;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDataprovider(Field<Boolean> dataprovider) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.dataprovider = dataprovider;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<Boolean> getServiceprovider() {
|
|
|
|
return serviceprovider;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setServiceprovider(Field<Boolean> serviceprovider) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.serviceprovider = serviceprovider;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getDatabaseaccesstype() {
|
|
|
|
return databaseaccesstype;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDatabaseaccesstype(Field<String> databaseaccesstype) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.databaseaccesstype = databaseaccesstype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getDatauploadtype() {
|
|
|
|
return datauploadtype;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDatauploadtype(Field<String> datauploadtype) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.datauploadtype = datauploadtype;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getDatabaseaccessrestriction() {
|
|
|
|
return databaseaccessrestriction;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDatabaseaccessrestriction(Field<String> databaseaccessrestriction) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.databaseaccessrestriction = databaseaccessrestriction;
|
|
|
|
}
|
|
|
|
|
2019-10-25 09:25:36 +02:00
|
|
|
public Field<String> getDatauploadrestriction() {
|
|
|
|
return datauploadrestriction;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setDatauploadrestriction(Field<String> datauploadrestriction) {
|
2019-10-25 09:25:36 +02:00
|
|
|
this.datauploadrestriction = datauploadrestriction;
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
public Field<Boolean> getVersioning() {
|
|
|
|
return versioning;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setVersioning(Field<Boolean> versioning) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.versioning = versioning;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getCitationguidelineurl() {
|
|
|
|
return citationguidelineurl;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setCitationguidelineurl(Field<String> citationguidelineurl) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.citationguidelineurl = citationguidelineurl;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getQualitymanagementkind() {
|
|
|
|
return qualitymanagementkind;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setQualitymanagementkind(Field<String> qualitymanagementkind) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.qualitymanagementkind = qualitymanagementkind;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getPidsystems() {
|
|
|
|
return pidsystems;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setPidsystems(Field<String> pidsystems) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.pidsystems = pidsystems;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Field<String> getCertificates() {
|
|
|
|
return certificates;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setCertificates(Field<String> certificates) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.certificates = certificates;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<KeyValue> getPolicies() {
|
|
|
|
return policies;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setPolicies(List<KeyValue> policies) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.policies = policies;
|
|
|
|
}
|
|
|
|
|
|
|
|
public Journal getJournal() {
|
|
|
|
return journal;
|
|
|
|
}
|
|
|
|
|
2019-10-25 18:10:30 +02:00
|
|
|
public void setJournal(Journal journal) {
|
2019-10-24 11:39:41 +02:00
|
|
|
this.journal = journal;
|
2019-10-25 10:55:35 +02:00
|
|
|
}
|
2019-12-12 15:36:41 +01:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public void mergeFrom(OafEntity e) {
|
|
|
|
super.mergeFrom(e);
|
|
|
|
|
|
|
|
Datasource d = (Datasource)e;
|
|
|
|
|
|
|
|
datasourcetype = d.getDatasourcetype() != null && compareTrust(this, e)<0? d.getDatasourcetype() : datasourcetype;
|
|
|
|
openairecompatibility = d.getOpenairecompatibility() != null && compareTrust(this, e)<0? d.getOpenairecompatibility() : openairecompatibility;
|
|
|
|
officialname = d.getOfficialname() != null && compareTrust(this, e)<0? d.getOfficialname() : officialname;
|
|
|
|
englishname = d.getEnglishname() != null && compareTrust(this, e)<0? d.getEnglishname() : officialname;
|
|
|
|
websiteurl = d.getWebsiteurl() != null && compareTrust(this, e)<0? d.getWebsiteurl() : websiteurl;
|
|
|
|
logourl = d.getLogourl() != null && compareTrust(this, e)<0? d.getLogourl() : getLogourl();
|
|
|
|
contactemail = d.getContactemail() != null && compareTrust(this, e)<0? d.getContactemail() : contactemail;
|
|
|
|
namespaceprefix = d.getNamespaceprefix() != null && compareTrust(this, e)<0? d.getNamespaceprefix() : namespaceprefix;
|
|
|
|
latitude = d.getLatitude() != null && compareTrust(this, e)<0? d.getLatitude() : latitude;
|
|
|
|
longitude = d.getLongitude() != null && compareTrust(this, e)<0? d.getLongitude() : longitude;
|
|
|
|
dateofvalidation = d.getDateofvalidation() != null && compareTrust(this, e)<0? d.getDateofvalidation() : dateofvalidation;
|
|
|
|
description = d.getDescription() != null && compareTrust(this, e)<0? d.getDescription() : description;
|
|
|
|
subjects = mergeLists(subjects, d.getSubjects());
|
|
|
|
|
|
|
|
// opendoar specific fields (od*)
|
|
|
|
odnumberofitems = d.getOdnumberofitems() != null && compareTrust(this, e)<0? d.getOdnumberofitems() : odnumberofitems;
|
|
|
|
odnumberofitemsdate = d.getOdnumberofitemsdate() != null && compareTrust(this, e)<0? d.getOdnumberofitemsdate() : odnumberofitemsdate;
|
|
|
|
odpolicies = d.getOdpolicies() != null && compareTrust(this, e)<0? d.getOdpolicies() : odpolicies;
|
|
|
|
odlanguages = mergeLists(odlanguages, d.getOdlanguages());
|
|
|
|
odcontenttypes = mergeLists(odcontenttypes, d.getOdcontenttypes());
|
|
|
|
accessinfopackage = mergeLists(accessinfopackage, d.getAccessinfopackage());
|
|
|
|
|
|
|
|
// re3data fields
|
|
|
|
releasestartdate = d.getReleasestartdate() != null && compareTrust(this, e)<0? d.getReleasestartdate() : releasestartdate;
|
|
|
|
releaseenddate = d.getReleaseenddate() != null && compareTrust(this, e)<0? d.getReleaseenddate() : releaseenddate;
|
|
|
|
missionstatementurl = d.getMissionstatementurl() != null && compareTrust(this, e)<0? d.getMissionstatementurl() : missionstatementurl;
|
|
|
|
dataprovider = d.getDataprovider() != null && compareTrust(this, e)<0? d.getDataprovider() : dataprovider;
|
|
|
|
serviceprovider = d.getServiceprovider() != null && compareTrust(this, e)<0? d.getServiceprovider() : serviceprovider;
|
|
|
|
|
|
|
|
// {open, restricted or closed}
|
|
|
|
databaseaccesstype = d.getDatabaseaccesstype() != null && compareTrust(this, e)<0? d.getDatabaseaccesstype() : databaseaccesstype;
|
|
|
|
|
|
|
|
// {open, restricted or closed}
|
|
|
|
datauploadtype = d.getDatauploadtype() != null && compareTrust(this, e)<0? d.getDatauploadtype() : datauploadtype;
|
|
|
|
|
|
|
|
// {feeRequired, registration, other}
|
|
|
|
databaseaccessrestriction = d.getDatabaseaccessrestriction() != null && compareTrust(this, e)<0? d.getDatabaseaccessrestriction() : databaseaccessrestriction;
|
|
|
|
|
|
|
|
// {feeRequired, registration, other}
|
|
|
|
datauploadrestriction = d.getDatauploadrestriction() != null && compareTrust(this, e)<0? d.getDatauploadrestriction() : datauploadrestriction;
|
|
|
|
|
|
|
|
versioning = d.getVersioning() != null && compareTrust(this, e)<0? d.getVersioning() : versioning;
|
|
|
|
citationguidelineurl = d.getCitationguidelineurl() != null && compareTrust(this, e)<0? d.getCitationguidelineurl() : citationguidelineurl;
|
|
|
|
|
|
|
|
//{yes, no, unknown}
|
|
|
|
qualitymanagementkind = d.getQualitymanagementkind() != null && compareTrust(this, e)<0? d.getQualitymanagementkind() : qualitymanagementkind;
|
|
|
|
pidsystems = d.getPidsystems() != null && compareTrust(this, e)<0? d.getPidsystems() : pidsystems;
|
|
|
|
|
|
|
|
certificates = d.getCertificates() != null && compareTrust(this, e)<0? d.getCertificates() : certificates;
|
|
|
|
|
|
|
|
policies = mergeLists(policies, d.getPolicies());
|
|
|
|
|
|
|
|
journal = d.getJournal() != null && compareTrust(this, e)<0? d.getJournal() : journal;
|
|
|
|
|
|
|
|
mergeOAFDataInfo(e);
|
|
|
|
}
|
2019-10-24 11:39:41 +02:00
|
|
|
}
|