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.Entity;
9
import eu.dnetlib.uoaadmintoolslibrary.entities.Page;
10

    
11
public class CommunityPage {
12

    
13
    @Id
14
    @JsonProperty("_id")
15
    private String id;
16

    
17
    private String route;
18
    private String name;
19
    private String type;
20
    private List<Entity> entities;
21
    private Boolean isEnabled;
22
    private Boolean connect;
23
    private Boolean communities;
24
    private Boolean openaire;
25

    
26
    // Posiitions where help texts are allowed for this page
27
    private Boolean top;
28
    private Boolean bottom;
29
    private Boolean left;
30
    private Boolean right;
31

    
32
    public CommunityPage() {}
33

    
34
    public CommunityPage(Page page) {
35
        this.setId(page.getId());
36
        this.setRoute(page.getRoute());
37
        this.setName(page.getName());
38
        this.setType(page.getType());
39
        this.setConnect(page.getConnect());
40
        this.setCommunities(page.getCommunities());
41
        this.setOpenaire(page.getOpenaire());
42
        this.setTop(page.getTop());
43
        this.setBottom(page.getBottom());
44
        this.setLeft(page.getLeft());
45
        this.setRight(page.getRight());
46
    }
47

    
48
    public String getId() {
49
        return id;
50
    }
51

    
52
    public void setId(String id) {
53
        this.id = id;
54
    }
55

    
56
    public String getRoute() {
57
        return route;
58
    }
59

    
60
    public void setRoute(String route) {
61
        this.route = route;
62
    }
63

    
64
    public String getName() {
65
        return name;
66
    }
67

    
68
    public void setName(String name) {
69
        this.name = name;
70
    }
71

    
72
    public String getType() {
73
        return type;
74
    }
75

    
76
    public void setType(String type) {
77
        this.type = type;
78
    }
79

    
80
    public List<Entity> getEntities() { return entities; }
81

    
82
    public void setEntities(List<Entity> entities) { this.entities = entities; }
83

    
84
    public Boolean getIsEnabled() { return isEnabled; }
85

    
86
    public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; }
87

    
88
    public Boolean getConnect() {
89
        return connect;
90
    }
91

    
92
    public void setConnect(Boolean connect) { this.connect = connect; }
93

    
94
    public Boolean getCommunities() {
95
        return communities;
96
    }
97

    
98
    public void setCommunities(Boolean communities) {
99
        this.communities = communities;
100
    }
101

    
102
    public Boolean getOpenaire() {
103
        return openaire;
104
    }
105

    
106
    public void setOpenaire(Boolean openaire) {
107
        this.openaire = openaire;
108
    }
109

    
110
    public Boolean getTop() {
111
        return top;
112
    }
113

    
114
    public void setTop(Boolean top) {
115
        this.top = top;
116
    }
117

    
118
    public Boolean getBottom() {
119
        return bottom;
120
    }
121

    
122
    public void setBottom(Boolean bottom) {
123
        this.bottom = bottom;
124
    }
125

    
126
    public Boolean getLeft() {
127
        return left;
128
    }
129

    
130
    public void setLeft(Boolean left) {
131
        this.left = left;
132
    }
133

    
134
    public Boolean getRight() {
135
        return right;
136
    }
137

    
138
    public void setRight(Boolean right) {
139
        this.right = right;
140
    }
141
}
(2-2/6)