modification to the model due to change in the mapping

This commit is contained in:
Miriam Baglioni 2020-07-01 17:43:23 +02:00
parent e71e857e48
commit daa5d933e0
3 changed files with 73 additions and 2 deletions

View File

@ -14,8 +14,26 @@ public class CatalogueEntry implements Serializable {
private String notes; // description.value (the first description
private String url; // the url of the resource in the openaire dashboard
private String version; // valid for datasets
private List<Tag> tags; // subject and keywords
private List<Group> groups; // access and publishers
private List<KeyValue> extras;
public List<Group> getGroups() {
return groups;
}
public void setGroups(List<Group> groups) {
this.groups = groups;
}
public List<Tag> getTags() {
return tags;
}
public void setTags(List<Tag> tags) {
this.tags = tags;
}
public String getVersion() {
return version;
}

View File

@ -1,4 +1,37 @@
package eu.dnetlib.dhp.schema.dump.gcat;
public class Group {
import java.io.Serializable;
public class Group implements Serializable {
private String id;
private String name;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static Group newInstance(String id, String name) {
Group g = new Group();
if (id != null) {
g.id = id;
}
if (name != null) {
g.name = name;
}
return g;
}
}

View File

@ -1,4 +1,24 @@
package eu.dnetlib.dhp.schema.dump.gcat;
public class Tag {
import java.io.Serializable;
import com.fasterxml.jackson.core.SerializableString;
public class Tag implements Serializable {
private String name;
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public static Tag newInstance(String n) {
Tag t = new Tag();
t.name = n;
return t;
}
}