1
|
package eu.dnetlib.uoaadmintools.entities;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
|
5
|
import org.springframework.data.annotation.Id;
|
6
|
|
7
|
public class PageHelpContentResponse {
|
8
|
|
9
|
@Id
|
10
|
@JsonProperty("_id")
|
11
|
private String id;
|
12
|
|
13
|
private Page page;
|
14
|
private Community community;
|
15
|
private String placement;
|
16
|
private int order;
|
17
|
private String content;
|
18
|
private boolean isActive = true;
|
19
|
private boolean isPriorTo = false;
|
20
|
|
21
|
public PageHelpContentResponse() {
|
22
|
}
|
23
|
|
24
|
public PageHelpContentResponse(PageHelpContent pageHelpContent) {
|
25
|
this.id = pageHelpContent.getId();
|
26
|
this.placement = pageHelpContent.getPlacement();
|
27
|
this.order = pageHelpContent.getOrder();
|
28
|
this.content = pageHelpContent.getContent();
|
29
|
this.isActive = pageHelpContent.getIsActive();
|
30
|
this.isPriorTo = pageHelpContent.getIsPriorTo();
|
31
|
}
|
32
|
|
33
|
public String getId() {
|
34
|
return id;
|
35
|
}
|
36
|
|
37
|
public void setId(String id) {
|
38
|
this.id = id;
|
39
|
}
|
40
|
|
41
|
public Page getPage() {
|
42
|
return page;
|
43
|
}
|
44
|
|
45
|
public void setPage(Page page) {
|
46
|
this.page = page;
|
47
|
}
|
48
|
|
49
|
public Community getCommunity() {
|
50
|
return community;
|
51
|
}
|
52
|
|
53
|
public void setCommunity(Community community) {
|
54
|
this.community = community;
|
55
|
}
|
56
|
|
57
|
public String getPlacement() {
|
58
|
return placement;
|
59
|
}
|
60
|
|
61
|
public void setPlacement(String placement) {
|
62
|
this.placement = placement;
|
63
|
}
|
64
|
|
65
|
public int getOrder() {
|
66
|
return order;
|
67
|
}
|
68
|
|
69
|
public void setOrder(int order) {
|
70
|
this.order = order;
|
71
|
}
|
72
|
|
73
|
public String getContent() {
|
74
|
return content;
|
75
|
}
|
76
|
|
77
|
public void setContent(String content) {
|
78
|
this.content = content;
|
79
|
}
|
80
|
|
81
|
public boolean getIsActive() {
|
82
|
return isActive;
|
83
|
}
|
84
|
|
85
|
public void setIsActive(boolean isActive) {
|
86
|
this.isActive = isActive;
|
87
|
}
|
88
|
|
89
|
public boolean getIsPriorTo() { return isPriorTo; }
|
90
|
|
91
|
public void setIsPriorTo(boolean isPriorTo) { this.isPriorTo = isPriorTo; }
|
92
|
}
|