2020-04-27 14:52:31 +02:00
|
|
|
|
2020-03-27 10:42:17 +01:00
|
|
|
package eu.dnetlib.dhp.oa.provision.model;
|
2020-01-30 17:46:29 +01:00
|
|
|
|
|
|
|
import java.io.Serializable;
|
2020-06-01 00:32:42 +02:00
|
|
|
import java.util.LinkedList;
|
2020-04-06 15:33:31 +02:00
|
|
|
import java.util.List;
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2024-03-08 11:43:20 +01:00
|
|
|
import com.fasterxml.jackson.annotation.JsonSubTypes;
|
|
|
|
import com.fasterxml.jackson.annotation.JsonTypeInfo;
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2024-03-08 11:43:20 +01:00
|
|
|
import eu.dnetlib.dhp.schema.common.EntityType;
|
|
|
|
import eu.dnetlib.dhp.schema.oaf.*;
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2024-03-08 11:43:20 +01:00
|
|
|
public class JoinedEntity implements Serializable {
|
|
|
|
|
|
|
|
private OafEntity entity;
|
2020-06-01 00:32:42 +02:00
|
|
|
|
|
|
|
private List<RelatedEntityWrapper> links;
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2020-04-27 14:52:31 +02:00
|
|
|
public JoinedEntity() {
|
2020-06-01 00:32:42 +02:00
|
|
|
links = new LinkedList<>();
|
|
|
|
}
|
|
|
|
|
2024-03-08 11:43:20 +01:00
|
|
|
public JoinedEntity(OafEntity entity) {
|
2020-06-01 00:32:42 +02:00
|
|
|
this();
|
|
|
|
this.entity = entity;
|
2020-04-27 14:52:31 +02:00
|
|
|
}
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2024-03-08 11:43:20 +01:00
|
|
|
public OafEntity getEntity() {
|
2020-04-27 14:52:31 +02:00
|
|
|
return entity;
|
|
|
|
}
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2024-03-08 11:43:20 +01:00
|
|
|
public void setEntity(OafEntity entity) {
|
2020-04-27 14:52:31 +02:00
|
|
|
this.entity = entity;
|
|
|
|
}
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2020-06-01 00:32:42 +02:00
|
|
|
public List<RelatedEntityWrapper> getLinks() {
|
2020-04-27 14:52:31 +02:00
|
|
|
return links;
|
|
|
|
}
|
2020-01-30 17:46:29 +01:00
|
|
|
|
2020-06-01 00:32:42 +02:00
|
|
|
public void setLinks(List<RelatedEntityWrapper> links) {
|
2020-04-27 14:52:31 +02:00
|
|
|
this.links = links;
|
|
|
|
}
|
2020-01-30 17:46:29 +01:00
|
|
|
}
|