1
|
package eu.dnetlib.uoamonitorservice.entities;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
import org.apache.log4j.Logger;
|
5
|
import org.springframework.data.annotation.Id;
|
6
|
|
7
|
import java.util.List;
|
8
|
|
9
|
enum IndicatorType {
|
10
|
// Do not rename or remove existring values. This may cause problems with already stored values in DB
|
11
|
number, chart;
|
12
|
}
|
13
|
|
14
|
enum IndicatorWidth {
|
15
|
// Do not rename or remove existring values. This may cause problems with already stored values in DB
|
16
|
small, medium, large;
|
17
|
}
|
18
|
|
19
|
public class Indicator {
|
20
|
@Id
|
21
|
@JsonProperty("_id")
|
22
|
private String id;
|
23
|
|
24
|
private String name;
|
25
|
private String description;
|
26
|
private IndicatorType type; //number,chart
|
27
|
private IndicatorWidth width; //small,medium,large
|
28
|
private List<String> tags;
|
29
|
private boolean isActive;
|
30
|
private boolean isPublic;
|
31
|
private boolean isDefault;
|
32
|
private List<IndicatorPath> indicatorPaths;
|
33
|
|
34
|
public String getId() {
|
35
|
return id;
|
36
|
}
|
37
|
|
38
|
public void setId(String id) {
|
39
|
this.id = id;
|
40
|
}
|
41
|
|
42
|
public String getName() {
|
43
|
return name;
|
44
|
}
|
45
|
|
46
|
public void setName(String name) {
|
47
|
this.name = name;
|
48
|
}
|
49
|
|
50
|
public String getDescription() {
|
51
|
return description;
|
52
|
}
|
53
|
|
54
|
public void setDescription(String description) {
|
55
|
this.description = description;
|
56
|
}
|
57
|
|
58
|
// public IndicatorType getType() {
|
59
|
// return type;
|
60
|
// }
|
61
|
public String getType() {
|
62
|
return type.name();
|
63
|
}
|
64
|
|
65
|
public void setType(IndicatorType type) {
|
66
|
this.type = type;
|
67
|
}
|
68
|
|
69
|
public IndicatorWidth getWidth() {
|
70
|
return width;
|
71
|
}
|
72
|
|
73
|
public void setWidth(IndicatorWidth width) {
|
74
|
this.width = width;
|
75
|
}
|
76
|
|
77
|
public List<String> getTags() {
|
78
|
return tags;
|
79
|
}
|
80
|
|
81
|
public void setTags(List<String> tags) {
|
82
|
this.tags = tags;
|
83
|
}
|
84
|
|
85
|
public boolean getIsActive() {
|
86
|
return isActive;
|
87
|
}
|
88
|
|
89
|
public void setIsActive(boolean isActive) {
|
90
|
this.isActive = isActive;
|
91
|
}
|
92
|
|
93
|
public boolean getIsPublic() {
|
94
|
return isPublic;
|
95
|
}
|
96
|
|
97
|
public void setIsPublic(boolean isPublic) {
|
98
|
this.isPublic = isPublic;
|
99
|
}
|
100
|
|
101
|
public boolean getIsDefault() {
|
102
|
return isDefault;
|
103
|
}
|
104
|
|
105
|
public void setIsDefault(boolean isDefault) {
|
106
|
this.isDefault = isDefault;
|
107
|
}
|
108
|
|
109
|
public List<IndicatorPath> getIndicatorPaths() {
|
110
|
return indicatorPaths;
|
111
|
}
|
112
|
|
113
|
public void setIndicatorPaths(List<IndicatorPath> indicatorPaths) {
|
114
|
this.indicatorPaths = indicatorPaths;
|
115
|
}
|
116
|
|
117
|
// public String hasType() {
|
118
|
// return this.type.name();
|
119
|
// }
|
120
|
}
|