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