Project

General

Profile

1
package eu.dnetlib.uoaadmintoolslibrary.entities.fullEntities;
2

    
3
import com.fasterxml.jackson.annotation.JsonProperty;
4
import org.springframework.data.annotation.Id;
5

    
6
import java.util.List;
7

    
8
import eu.dnetlib.uoaadmintoolslibrary.entities.Portal;
9

    
10
public class PortalResponse {
11
    @Id
12
    @JsonProperty("_id")
13
    private String id;
14

    
15
    private String pid;
16
    private String name;
17
    private String type; // explore, connect, community, monitor
18
    private List<PortalPage> pages;
19
    private List<PortalEntity> entities;
20

    
21
    public PortalResponse() {}
22

    
23
    public PortalResponse(Portal portal) {
24
        this.setId(portal.getId());
25
        this.setPid(portal.getPid());
26
        this.setName(portal.getName());
27
        this.setType(portal.getType());
28
    }
29

    
30
    public String getId() {
31
        return id;
32
    }
33

    
34
    public void setId(String id) {
35
        this.id = id;
36
    }
37

    
38
    public String getPid() {
39
        return pid;
40
    }
41

    
42
    public void setPid(String pid) {
43
        this.pid = pid;
44
    }
45

    
46
    public String getName() {
47
        return name;
48
    }
49

    
50
    public void setName(String name) {
51
        this.name = name;
52
    }
53

    
54
    public String getType() {
55
        return type;
56
    }
57

    
58
    public void setType(String type) {
59
        this.type = type;
60
    }
61

    
62
    public List<PortalPage> getPages() { return pages; }
63

    
64
    public void setPages(List<PortalPage> pages) { this.pages = pages; }
65

    
66
    public List<PortalEntity> getEntities() { return entities; }
67

    
68
    public void setEntities(List<PortalEntity> entities) {
69
        this.entities = entities;
70
    }
71
}
(6-6/6)