2020-04-30 11:05:17 +02:00
|
|
|
|
2020-05-11 17:32:06 +02:00
|
|
|
package eu.dnetlib.dhp.bulktag.community;
|
2020-04-30 11:05:17 +02:00
|
|
|
|
2020-05-11 17:38:08 +02:00
|
|
|
import java.io.Serializable;
|
|
|
|
|
2020-03-03 16:38:50 +01:00
|
|
|
import org.dom4j.Node;
|
|
|
|
|
2020-05-11 17:38:08 +02:00
|
|
|
import com.google.gson.Gson;
|
2020-04-30 11:05:17 +02:00
|
|
|
|
2020-04-21 16:03:51 +02:00
|
|
|
/** Created by miriam on 01/08/2018. */
|
|
|
|
public class ZenodoCommunity implements Serializable {
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
private String zenodoCommunityId;
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
private SelectionConstraints selCriteria;
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
public String getZenodoCommunityId() {
|
|
|
|
return zenodoCommunityId;
|
|
|
|
}
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
public void setZenodoCommunityId(String zenodoCommunityId) {
|
|
|
|
this.zenodoCommunityId = zenodoCommunityId;
|
|
|
|
}
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
public SelectionConstraints getSelCriteria() {
|
|
|
|
return selCriteria;
|
|
|
|
}
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
public void setSelCriteria(SelectionConstraints selCriteria) {
|
|
|
|
this.selCriteria = selCriteria;
|
|
|
|
}
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
private void setSelCriteria(String json) {
|
|
|
|
selCriteria = new Gson().fromJson(json, SelectionConstraints.class);
|
|
|
|
}
|
2020-03-03 16:38:50 +01:00
|
|
|
|
2020-04-30 11:05:17 +02:00
|
|
|
public void setSelCriteria(Node n) {
|
|
|
|
if (n == null) {
|
|
|
|
selCriteria = null;
|
|
|
|
} else {
|
|
|
|
setSelCriteria(n.getText());
|
|
|
|
}
|
|
|
|
}
|
2020-04-21 16:03:51 +02:00
|
|
|
}
|