1
|
package eu.dnetlib.uoaadmintools.entities;
|
2
|
|
3
|
import com.fasterxml.jackson.annotation.JsonProperty;
|
4
|
import org.springframework.data.annotation.Id;
|
5
|
|
6
|
import java.util.HashMap;
|
7
|
import java.util.Map;
|
8
|
|
9
|
/**
|
10
|
* Created by argirok on 5/3/2018.
|
11
|
*/
|
12
|
public class Statistics {
|
13
|
@Id
|
14
|
@JsonProperty("_id")
|
15
|
private String id;
|
16
|
private String pid;
|
17
|
private Map<String, StatisticsStatus> statistics;
|
18
|
|
19
|
public Statistics(String pid){
|
20
|
this.setPid(pid);
|
21
|
this.statistics = new HashMap<String, StatisticsStatus>();
|
22
|
|
23
|
this.statistics.put("publicationsNumber", new StatisticsStatus());
|
24
|
this.statistics.put("publicationsProjectNumber", new StatisticsStatus());
|
25
|
this.statistics.put("publicationsOpenNumber", new StatisticsStatus());
|
26
|
this.statistics.put("publicationsClosedNumber", new StatisticsStatus());
|
27
|
this.statistics.put("publicationsEmbargoNumber", new StatisticsStatus());
|
28
|
|
29
|
this.statistics.put("datasetsNumber", new StatisticsStatus());
|
30
|
this.statistics.put("datasetsProjectNumber", new StatisticsStatus());
|
31
|
this.statistics.put("datasetsOpenNumber", new StatisticsStatus());
|
32
|
this.statistics.put("datasetsClosedNumber", new StatisticsStatus());
|
33
|
this.statistics.put("datasetsEmbargoNumber", new StatisticsStatus());
|
34
|
|
35
|
this.statistics.put("softwareNumber", new StatisticsStatus());
|
36
|
this.statistics.put("softwareProjectNumber", new StatisticsStatus());
|
37
|
this.statistics.put("softwareOpenNumber", new StatisticsStatus());
|
38
|
this.statistics.put("softwareClosedNumber", new StatisticsStatus());
|
39
|
this.statistics.put("softwareEmbargoNumber", new StatisticsStatus());
|
40
|
|
41
|
this.statistics.put("publicationsTimeline", new StatisticsStatus());
|
42
|
this.statistics.put("datasetsTimeline", new StatisticsStatus());
|
43
|
this.statistics.put("softwareTimeline", new StatisticsStatus());
|
44
|
|
45
|
|
46
|
this.statistics.put("publicationsProjectColumn", new StatisticsStatus());
|
47
|
this.statistics.put("publicationsProjectPie", new StatisticsStatus());
|
48
|
this.statistics.put("publicationsProjectTable", new StatisticsStatus());
|
49
|
|
50
|
this.statistics.put("datasetsProjectColumn", new StatisticsStatus());
|
51
|
this.statistics.put("datasetsProjectPie", new StatisticsStatus());
|
52
|
this.statistics.put("datasetsProjectTable", new StatisticsStatus());
|
53
|
|
54
|
this.statistics.put("softwareProjectColumn", new StatisticsStatus());
|
55
|
this.statistics.put("softwareProjectPie", new StatisticsStatus());
|
56
|
this.statistics.put("softwareProjectTable", new StatisticsStatus());
|
57
|
|
58
|
}
|
59
|
|
60
|
public String getId() {
|
61
|
return id;
|
62
|
}
|
63
|
|
64
|
public void setId(String id) {
|
65
|
this.id = id;
|
66
|
}
|
67
|
|
68
|
public String getPid() {
|
69
|
return pid;
|
70
|
}
|
71
|
|
72
|
public void setPid(String pid) {
|
73
|
this.pid = pid;
|
74
|
}
|
75
|
|
76
|
public Map<String, StatisticsStatus> getStatistics() {
|
77
|
return statistics;
|
78
|
}
|
79
|
|
80
|
public void setStatistics(Map<String, StatisticsStatus> statistics) {
|
81
|
this.statistics = statistics;
|
82
|
}
|
83
|
|
84
|
@Override
|
85
|
public String toString() {
|
86
|
return "Statistics{" +
|
87
|
"id='" + id + '\'' +
|
88
|
", pid='" + pid + '\'' +
|
89
|
", statistics=" + statistics +
|
90
|
'}';
|
91
|
}
|
92
|
}
|