1
|
package eu.dnetlib.uoaadmintools.entities;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
|
5
|
import org.springframework.data.annotation.Id;
|
6
|
|
7
|
import java.util.List;
|
8
|
import java.util.Map;
|
9
|
|
10
|
public class CommunityPage {
|
11
|
|
12
|
@Id
|
13
|
@JsonProperty("_id")
|
14
|
private String id;
|
15
|
|
16
|
private String route;
|
17
|
private String name;
|
18
|
private String type;
|
19
|
private List<Entity> entities;
|
20
|
private Boolean isEnabled;
|
21
|
|
22
|
public CommunityPage() {}
|
23
|
|
24
|
public CommunityPage(Page page) {
|
25
|
this.setId(page.getId());
|
26
|
this.setRoute(page.getRoute());
|
27
|
this.setName(page.getName());
|
28
|
this.setType(page.getType());
|
29
|
}
|
30
|
|
31
|
public String getId() {
|
32
|
return id;
|
33
|
}
|
34
|
|
35
|
public void setId(String id) {
|
36
|
this.id = id;
|
37
|
}
|
38
|
|
39
|
public String getRoute() {
|
40
|
return route;
|
41
|
}
|
42
|
|
43
|
public void setRoute(String route) {
|
44
|
this.route = route;
|
45
|
}
|
46
|
|
47
|
public String getName() {
|
48
|
return name;
|
49
|
}
|
50
|
|
51
|
public void setName(String name) {
|
52
|
this.name = name;
|
53
|
}
|
54
|
|
55
|
public String getType() {
|
56
|
return type;
|
57
|
}
|
58
|
|
59
|
public void setType(String type) {
|
60
|
this.type = type;
|
61
|
}
|
62
|
|
63
|
public List<Entity> getEntities() { return entities; }
|
64
|
|
65
|
public void setEntities(List<Entity> entities) { this.entities = entities; }
|
66
|
|
67
|
public Boolean getIsEnabled() { return isEnabled; }
|
68
|
|
69
|
public void setIsEnabled(Boolean isEnabled) { this.isEnabled = isEnabled; }
|
70
|
}
|