1
|
package eu.dnetlib.openaire.exporter.model.datasource;
|
2
|
|
3
|
import java.util.List;
|
4
|
|
5
|
import com.fasterxml.jackson.annotation.JsonAutoDetect;
|
6
|
import eu.dnetlib.enabling.datasources.common.AggregationInfo;
|
7
|
import io.swagger.annotations.ApiModel;
|
8
|
|
9
|
@JsonAutoDetect
|
10
|
@ApiModel(value = "Datasource info model", description = "provides information about the datasource and its aggregation status")
|
11
|
public class DatasourceInfo {
|
12
|
|
13
|
private long indexRecords;
|
14
|
|
15
|
private long fundedContent;
|
16
|
|
17
|
private long fulltexts;
|
18
|
|
19
|
private String lastIndexingDate;
|
20
|
|
21
|
private DatasourceDetails datasourceDetails;
|
22
|
|
23
|
private List<AggregationInfo> aggregationHistory;
|
24
|
|
25
|
private AggregationInfo lastCollection;
|
26
|
|
27
|
private AggregationInfo lastTransformation;
|
28
|
|
29
|
public DatasourceInfo() {
|
30
|
super();
|
31
|
}
|
32
|
|
33
|
public DatasourceInfo setIndexRecords(final long indexRecords) {
|
34
|
this.indexRecords = indexRecords;
|
35
|
return this;
|
36
|
}
|
37
|
|
38
|
public DatasourceInfo setFundedContent(final long fundedContent) {
|
39
|
this.fundedContent = fundedContent;
|
40
|
return this;
|
41
|
}
|
42
|
|
43
|
public DatasourceInfo setFulltexts(final long fulltexts) {
|
44
|
this.fulltexts = fulltexts;
|
45
|
return this;
|
46
|
}
|
47
|
|
48
|
public DatasourceInfo setLastIndexingDate(final String lastIndexingDate) {
|
49
|
this.lastIndexingDate = lastIndexingDate;
|
50
|
return this;
|
51
|
}
|
52
|
|
53
|
public DatasourceInfo setAggregationHistory(final List<AggregationInfo> aggregationHistory) {
|
54
|
this.aggregationHistory = aggregationHistory;
|
55
|
return this;
|
56
|
}
|
57
|
|
58
|
public DatasourceInfo setLastCollection(final AggregationInfo lastCollection) {
|
59
|
this.lastCollection = lastCollection;
|
60
|
return this;
|
61
|
}
|
62
|
|
63
|
public DatasourceInfo setLastTransformation(final AggregationInfo lastTransformation) {
|
64
|
this.lastTransformation = lastTransformation;
|
65
|
return this;
|
66
|
}
|
67
|
|
68
|
public long getIndexRecords() {
|
69
|
return indexRecords;
|
70
|
}
|
71
|
|
72
|
public long getFundedContent() {
|
73
|
return fundedContent;
|
74
|
}
|
75
|
|
76
|
public long getFulltexts() {
|
77
|
return fulltexts;
|
78
|
}
|
79
|
|
80
|
public String getLastIndexingDate() {
|
81
|
return lastIndexingDate;
|
82
|
}
|
83
|
|
84
|
public List<AggregationInfo> getAggregationHistory() {
|
85
|
return aggregationHistory;
|
86
|
}
|
87
|
|
88
|
public AggregationInfo getLastCollection() {
|
89
|
return lastCollection;
|
90
|
}
|
91
|
|
92
|
public AggregationInfo getLastTransformation() {
|
93
|
return lastTransformation;
|
94
|
}
|
95
|
|
96
|
public DatasourceDetails getDatasourceDetails() {
|
97
|
return datasourceDetails;
|
98
|
}
|
99
|
|
100
|
public DatasourceInfo setDatasourceDetails(final DatasourceDetails datasourceDetails) {
|
101
|
this.datasourceDetails = datasourceDetails;
|
102
|
return this;
|
103
|
}
|
104
|
|
105
|
}
|