2020-01-28 16:53:59 +01:00
|
|
|
package eu.dnetlib.ariadneplus.elasticsearch.model;
|
|
|
|
|
|
|
|
import com.google.gson.Gson;
|
2020-06-10 19:39:53 +02:00
|
|
|
import eu.dnetlib.ariadneplus.reader.utils.ESUtils;
|
2020-01-28 16:53:59 +01:00
|
|
|
|
2020-06-10 19:39:53 +02:00
|
|
|
import java.util.List;
|
2020-01-28 16:53:59 +01:00
|
|
|
|
|
|
|
public class AriadneCatalogEntry {
|
|
|
|
private List<AatSubject> aatSubjects;
|
|
|
|
private String accessPolicy;
|
|
|
|
private String accessRights;
|
2020-06-16 02:36:16 +02:00
|
|
|
private ArchaeologicalResourceType archaeologicalResourceType;
|
2020-01-28 16:53:59 +01:00
|
|
|
private List<AgentInfo> contributor;
|
|
|
|
private List<AgentInfo> creator;
|
|
|
|
private List<DerivedSubject> derivedSubject;
|
|
|
|
private String description;
|
|
|
|
private List <Distribution> distribution;
|
|
|
|
private List<AgentInfo> publisher;
|
|
|
|
private String title;
|
|
|
|
private List<ItemMetadataStructure> hasItemMetadataStructure;
|
|
|
|
private List<MetadataRecord> hasMetadataRecord;
|
|
|
|
private String identifier;
|
2020-07-07 13:39:22 +02:00
|
|
|
private List<String> isPartOf;
|
|
|
|
private transient String uniqueIsPartOf;
|
2020-01-28 16:53:59 +01:00
|
|
|
private String issued;
|
|
|
|
private List<String> keyword;
|
|
|
|
private String landingPage;
|
|
|
|
private String language;
|
|
|
|
private List<AgentInfo> legalResponsible;
|
|
|
|
private String modified;
|
|
|
|
private List<NativeSubject> nativeSubject;
|
|
|
|
private String originalId;
|
|
|
|
private List<AgentInfo> owner;
|
|
|
|
private String resourceType;
|
|
|
|
private List<AgentInfo> scientificResponsible;
|
|
|
|
private List<Spatial> spatial;
|
2020-06-10 19:39:53 +02:00
|
|
|
// private List<SpatialRegion> spatialRegion;
|
|
|
|
// private List<SpatialRegionPoint> spatialRegionPoint;
|
2020-01-28 16:53:59 +01:00
|
|
|
private List<AgentInfo> technicalResponsible;
|
|
|
|
private List<AriadneTemporal> temporal;
|
|
|
|
|
2020-07-08 10:50:14 +02:00
|
|
|
private String accrualPeriodicity = new String("");
|
|
|
|
private String audience = new String("");
|
|
|
|
private String contactPoint = new String("");
|
|
|
|
private String extent = new String("");
|
|
|
|
private String providerId = new String("");
|
|
|
|
private String packageId = new String("");
|
|
|
|
private String placeName = new String("");
|
|
|
|
private String postcode = new String("");
|
|
|
|
private String rdfAbout = new String("");
|
|
|
|
private String rights = new String("");
|
|
|
|
|
2020-01-28 16:53:59 +01:00
|
|
|
public List<AgentInfo> getContributor() {
|
|
|
|
return contributor;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setContributor(List<AgentInfo> contributor) {
|
|
|
|
this.contributor = contributor;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public List<AatSubject> getAatSubjects() {
|
|
|
|
return aatSubjects;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAatSubjects(List<AatSubject> aatSubjects) {
|
|
|
|
this.aatSubjects = aatSubjects;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAccessPolicy() {
|
|
|
|
return accessPolicy;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAccessPolicy(String accessPolicy) {
|
|
|
|
this.accessPolicy = accessPolicy;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getAccessRights() {
|
|
|
|
return accessRights;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setAccessRights(String accessRights) {
|
|
|
|
this.accessRights = accessRights;
|
|
|
|
}
|
|
|
|
|
2020-06-16 02:36:16 +02:00
|
|
|
public ArchaeologicalResourceType getArchaeologicalResourceType() {
|
|
|
|
return archaeologicalResourceType;
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
2020-06-16 02:36:16 +02:00
|
|
|
public void setArchaeologicalResourceType(ArchaeologicalResourceType archaeologicalResourceType) {
|
|
|
|
this.archaeologicalResourceType = archaeologicalResourceType;
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getContactPoint() {
|
|
|
|
return contactPoint;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setContactPoint(String contactPoint) {
|
|
|
|
this.contactPoint = contactPoint;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<AgentInfo> getCreator() {
|
|
|
|
return creator;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setCreator(List<AgentInfo> creator) {
|
|
|
|
this.creator = creator;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<DerivedSubject> getDerivedSubject() {
|
|
|
|
return derivedSubject;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDerivedSubject(List<DerivedSubject> derivedSubject) {
|
|
|
|
this.derivedSubject = derivedSubject;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getDescription() {
|
|
|
|
return description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDescription(String description) {
|
|
|
|
this.description = description;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Distribution> getDistribution() {
|
|
|
|
return distribution;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setDistribution(List<Distribution> distribution) {
|
|
|
|
this.distribution = distribution;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<AgentInfo> getPublisher() {
|
|
|
|
return publisher;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPublisher(List<AgentInfo> publisher) {
|
|
|
|
this.publisher = publisher;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getTitle() {
|
|
|
|
return title;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTitle(String title) {
|
|
|
|
this.title = title;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getExtent() {
|
|
|
|
return extent;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setExtent(String extent) {
|
|
|
|
this.extent = extent;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<ItemMetadataStructure> getHasItemMetadataStructure() {
|
|
|
|
return hasItemMetadataStructure;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHasItemMetadataStructure(List<ItemMetadataStructure> hasItemMetadataStructure) {
|
|
|
|
this.hasItemMetadataStructure = hasItemMetadataStructure;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<MetadataRecord> getHasMetadataRecord() {
|
|
|
|
return hasMetadataRecord;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setHasMetadataRecord(List<MetadataRecord> hasMetadataRecord) {
|
|
|
|
this.hasMetadataRecord = hasMetadataRecord;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getIdentifier() {
|
|
|
|
return identifier;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIdentifier(String identifier) {
|
|
|
|
this.identifier = identifier;
|
|
|
|
}
|
|
|
|
|
2020-07-07 13:39:22 +02:00
|
|
|
public List<String> getIsPartOf() {
|
2020-06-10 19:39:53 +02:00
|
|
|
return isPartOf;
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
2020-07-07 13:39:22 +02:00
|
|
|
public void setIsPartOf(List<String> isPartOf) {
|
2020-06-10 19:39:53 +02:00
|
|
|
this.isPartOf = isPartOf;
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public String getIssued() {
|
|
|
|
return issued;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setIssued(String issued) {
|
2020-06-10 19:39:53 +02:00
|
|
|
this.issued = ESUtils.getESFormatDate(issued);
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<String> getKeyword() {
|
|
|
|
return keyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setKeyword(List<String> keyword) {
|
|
|
|
this.keyword = keyword;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLandingPage() {
|
|
|
|
return landingPage;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLandingPage(String landingPage) {
|
|
|
|
this.landingPage = landingPage;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getLanguage() {
|
|
|
|
return language;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLanguage(String language) {
|
2020-07-07 13:39:22 +02:00
|
|
|
if (language!=null && language.equals("eng")) {
|
|
|
|
this.language = "en";
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
this.language = language;
|
|
|
|
}
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<AgentInfo> getLegalResponsible() {
|
|
|
|
return legalResponsible;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setLegalResponsible(List<AgentInfo> legalResponsible) {
|
|
|
|
this.legalResponsible = legalResponsible;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getModified() {
|
|
|
|
return modified;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setModified(String modified) {
|
2020-06-10 19:39:53 +02:00
|
|
|
this.modified = ESUtils.getESFormatDate(modified);
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<NativeSubject> getNativeSubject() {
|
|
|
|
return nativeSubject;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setNativeSubject(List<NativeSubject> nativeSubject) {
|
|
|
|
this.nativeSubject = nativeSubject;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getOriginalId() {
|
|
|
|
return originalId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setOriginalId(String originalId) {
|
|
|
|
this.originalId = originalId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<AgentInfo> getOwner() {
|
|
|
|
return owner;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setOwner(List<AgentInfo> owner) {
|
|
|
|
this.owner = owner;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPackageId() {
|
|
|
|
return packageId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPackageId(String packageId) {
|
|
|
|
this.packageId = packageId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPlaceName() {
|
|
|
|
return placeName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPlaceName(String placeName) {
|
|
|
|
this.placeName = placeName;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getPostcode() {
|
|
|
|
return postcode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setPostcode(String postcode) {
|
|
|
|
this.postcode = postcode;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getProviderId() {
|
|
|
|
return providerId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setProviderId(String providerId) {
|
|
|
|
this.providerId = providerId;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getRdfAbout() {
|
|
|
|
return rdfAbout;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRdfAbout(String rdfAbout) {
|
|
|
|
this.rdfAbout = rdfAbout;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getResourceType() {
|
|
|
|
return resourceType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setResourceType(String resourceType) {
|
|
|
|
this.resourceType = resourceType;
|
|
|
|
}
|
|
|
|
|
|
|
|
public String getRights() {
|
|
|
|
return rights;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setRights(String rights) {
|
|
|
|
this.rights = rights;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<AgentInfo> getScientificResponsible() {
|
|
|
|
return scientificResponsible;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setScientificResponsible(List<AgentInfo> scientificResponsible) {
|
|
|
|
this.scientificResponsible = scientificResponsible;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<Spatial> getSpatial() {
|
|
|
|
return spatial;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setSpatial(List<Spatial> spatial) {
|
2020-06-10 19:39:53 +02:00
|
|
|
if (this.spatial==null) {
|
|
|
|
this.spatial = spatial;
|
|
|
|
}
|
|
|
|
else {
|
|
|
|
this.spatial.addAll(spatial);
|
|
|
|
}
|
2020-01-28 16:53:59 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
public List<AgentInfo> getTechnicalResponsible() {
|
|
|
|
return technicalResponsible;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTechnicalResponsible(List<AgentInfo> technicalResponsible) {
|
|
|
|
this.technicalResponsible = technicalResponsible;
|
|
|
|
}
|
|
|
|
|
|
|
|
public List<AriadneTemporal> getTemporal() {
|
|
|
|
return temporal;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void setTemporal(List<AriadneTemporal> temporal) {
|
|
|
|
this.temporal = temporal;
|
|
|
|
}
|
|
|
|
|
2020-07-07 13:39:22 +02:00
|
|
|
public String getUniqueIsPartOf() {
|
|
|
|
return uniqueIsPartOf;
|
|
|
|
}
|
2020-01-28 16:53:59 +01:00
|
|
|
|
2020-07-07 13:39:22 +02:00
|
|
|
public void setUniqueIsPartOf(String uniqueIsPartOf) {
|
|
|
|
this.uniqueIsPartOf = uniqueIsPartOf;
|
|
|
|
}
|
2020-01-28 16:53:59 +01:00
|
|
|
|
|
|
|
public static AriadneCatalogEntry fromJson(String json){
|
|
|
|
return new Gson().fromJson(json, AriadneCatalogEntry.class);
|
|
|
|
}
|
|
|
|
|
|
|
|
public String toJson(){
|
|
|
|
return new Gson().toJson(this);
|
|
|
|
}
|
2020-06-10 19:39:53 +02:00
|
|
|
}
|