Hosted By Map - refactoring

This commit is contained in:
Miriam Baglioni 2021-08-03 10:44:13 +02:00
parent 17292c6641
commit 327cddde33
1 changed files with 48 additions and 49 deletions

View File

@ -1,69 +1,68 @@
package eu.dnetlib.dhp.oa.graph.hostedbymap.model; package eu.dnetlib.dhp.oa.graph.hostedbymap.model;
import java.io.Serializable; import java.io.Serializable;
public class EntityInfo implements Serializable { public class EntityInfo implements Serializable {
private String id; private String id;
private String journal_id; private String journal_id;
private String name; private String name;
private Boolean openaccess; private Boolean openaccess;
private String hb_id; private String hb_id;
public String getId() {
return id;
}
public void setId(String id) {
this.id = id;
}
public String getId() { public String getJournal_id() {
return id; return journal_id;
} }
public void setId(String id) { public void setJournal_id(String journal_id) {
this.id = id; this.journal_id = journal_id;
} }
public String getJournal_id() { public String getName() {
return journal_id; return name;
} }
public void setJournal_id(String journal_id) { public void setName(String name) {
this.journal_id = journal_id; this.name = name;
} }
public String getName() { public Boolean getOpenaccess() {
return name; return openaccess;
} }
public void setName(String name) { public void setOpenaccess(Boolean openaccess) {
this.name = name; this.openaccess = openaccess;
} }
public Boolean getOpenaccess() { public String getHb_id() {
return openaccess; return hb_id;
} }
public void setOpenaccess(Boolean openaccess) { public void setHb_id(String hb_id) {
this.openaccess = openaccess; this.hb_id = hb_id;
} }
public String getHb_id() { public static EntityInfo newInstance(String id, String j_id, String name) {
return hb_id; return newInstance(id, j_id, name, false);
}
public void setHb_id(String hb_id) { }
this.hb_id = hb_id;
}
public static EntityInfo newInstance(String id, String j_id, String name){ public static EntityInfo newInstance(String id, String j_id, String name, Boolean openaccess) {
return newInstance(id, j_id, name, false); EntityInfo pi = new EntityInfo();
pi.id = id;
pi.journal_id = j_id;
pi.name = name;
pi.openaccess = openaccess;
pi.hb_id = "";
return pi;
} }
public static EntityInfo newInstance(String id, String j_id, String name, Boolean openaccess){
EntityInfo pi = new EntityInfo();
pi.id = id;
pi.journal_id = j_id;
pi.name = name;
pi.openaccess = openaccess;
pi.hb_id = "";
return pi;
}
} }