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.openaire.exporter.model.datasource.db.Datasource;
|
7
|
import io.swagger.annotations.ApiModel;
|
8
|
import io.swagger.annotations.ApiModelProperty;
|
9
|
|
10
|
/**
|
11
|
* Created by claudio on 12/09/16.
|
12
|
*/
|
13
|
@JsonAutoDetect
|
14
|
@ApiModel(value = "Datasource response model", description = "provides information about the datasource and its aggregation status")
|
15
|
public class DatasourceInfo {
|
16
|
|
17
|
@ApiModelProperty(position = 1)
|
18
|
private long indexRecords;
|
19
|
|
20
|
@ApiModelProperty(position = 2)
|
21
|
private long fundedContent;
|
22
|
|
23
|
@ApiModelProperty(position = 3)
|
24
|
private long fulltexts;
|
25
|
|
26
|
@ApiModelProperty(position = 4)
|
27
|
private String lastIndexingDate;
|
28
|
|
29
|
@ApiModelProperty(position = 5)
|
30
|
private Datasource datasource;
|
31
|
|
32
|
@ApiModelProperty(position = 6)
|
33
|
private List<AggregationInfo> aggregationHistory;
|
34
|
|
35
|
@ApiModelProperty(position = 7)
|
36
|
private AggregationInfo lastCollection;
|
37
|
|
38
|
@ApiModelProperty(position = 8)
|
39
|
private AggregationInfo lastTransformation;
|
40
|
|
41
|
public DatasourceInfo() {
|
42
|
super();
|
43
|
}
|
44
|
|
45
|
public DatasourceInfo setIndexRecords(final long indexRecords) {
|
46
|
this.indexRecords = indexRecords;
|
47
|
return this;
|
48
|
}
|
49
|
|
50
|
public DatasourceInfo setFundedContent(final long fundedContent) {
|
51
|
this.fundedContent = fundedContent;
|
52
|
return this;
|
53
|
}
|
54
|
|
55
|
public DatasourceInfo setLastIndexingDate(final String lastIndexingDate) {
|
56
|
this.lastIndexingDate = lastIndexingDate;
|
57
|
return this;
|
58
|
}
|
59
|
|
60
|
public long getFulltexts() {
|
61
|
return fulltexts;
|
62
|
}
|
63
|
|
64
|
public DatasourceInfo setFulltexts(final long fulltexts) {
|
65
|
this.fulltexts = fulltexts;
|
66
|
return this;
|
67
|
}
|
68
|
|
69
|
|
70
|
public DatasourceInfo setAggregationHistory(final List<AggregationInfo> aggregationHistory) {
|
71
|
this.aggregationHistory = aggregationHistory;
|
72
|
return this;
|
73
|
}
|
74
|
|
75
|
public DatasourceInfo setLastCollection(final AggregationInfo lastCollection) {
|
76
|
this.lastCollection = lastCollection;
|
77
|
return this;
|
78
|
}
|
79
|
|
80
|
public DatasourceInfo setLastTransformation(final AggregationInfo lastTransformation) {
|
81
|
this.lastTransformation = lastTransformation;
|
82
|
return this;
|
83
|
}
|
84
|
|
85
|
public long getIndexRecords() {
|
86
|
return indexRecords;
|
87
|
}
|
88
|
|
89
|
public long getFundedContent() {
|
90
|
return fundedContent;
|
91
|
}
|
92
|
|
93
|
public String getLastIndexingDate() {
|
94
|
return lastIndexingDate;
|
95
|
}
|
96
|
|
97
|
public List<AggregationInfo> getAggregationHistory() {
|
98
|
return aggregationHistory;
|
99
|
}
|
100
|
|
101
|
public AggregationInfo getLastCollection() {
|
102
|
return lastCollection;
|
103
|
}
|
104
|
|
105
|
public AggregationInfo getLastTransformation() {
|
106
|
return lastTransformation;
|
107
|
}
|
108
|
|
109
|
public Datasource getDatasource() {
|
110
|
return datasource;
|
111
|
}
|
112
|
|
113
|
public void setDatasource(final Datasource datasource) {
|
114
|
this.datasource = datasource;
|
115
|
}
|
116
|
|
117
|
}
|