Project

General

Profile

1
package eu.dnetlib.enabling.datasources.common;
2

    
3
import java.util.List;
4

    
5
public class DatasourceResponse<DS extends Datasource<?, ?>> {
6

    
7
	private long indexRecords;
8

    
9
	private long fundedContent;
10

    
11
	private String lastIndexingDate;
12

    
13
	private DS datasource;
14

    
15
	private List<AggregationInfo> aggregationHistory;
16

    
17
	private AggregationInfo lastCollection;
18

    
19
	private AggregationInfo lastTransformation;
20

    
21
	public DatasourceResponse() {
22
		super();
23
	}
24

    
25
	public DatasourceResponse<DS> setIndexRecords(final long indexRecords) {
26
		this.indexRecords = indexRecords;
27
		return this;
28
	}
29

    
30
	public DatasourceResponse<DS> setFundedContent(final long fundedContent) {
31
		this.fundedContent = fundedContent;
32
		return this;
33
	}
34

    
35
	public DatasourceResponse<DS> setLastIndexingDate(final String lastIndexingDate) {
36
		this.lastIndexingDate = lastIndexingDate;
37
		return this;
38
	}
39

    
40
	public DatasourceResponse<DS> setAggregationHistory(final List<AggregationInfo> aggregationHistory) {
41
		this.aggregationHistory = aggregationHistory;
42
		return this;
43
	}
44

    
45
	public DatasourceResponse<DS> setLastCollection(final AggregationInfo lastCollection) {
46
		this.lastCollection = lastCollection;
47
		return this;
48
	}
49

    
50
	public DatasourceResponse<DS> setLastTransformation(final AggregationInfo lastTransformation) {
51
		this.lastTransformation = lastTransformation;
52
		return this;
53
	}
54

    
55
	public long getIndexRecords() {
56
		return indexRecords;
57
	}
58

    
59
	public long getFundedContent() {
60
		return fundedContent;
61
	}
62

    
63
	public String getLastIndexingDate() {
64
		return lastIndexingDate;
65
	}
66

    
67
	public List<AggregationInfo> getAggregationHistory() {
68
		return aggregationHistory;
69
	}
70

    
71
	public AggregationInfo getLastCollection() {
72
		return lastCollection;
73
	}
74

    
75
	public AggregationInfo getLastTransformation() {
76
		return lastTransformation;
77
	}
78

    
79
	public DS getDatasource() {
80
		return datasource;
81
	}
82

    
83
	public void setDatasource(final DS datasource) {
84
		this.datasource = datasource;
85
	}
86
}
(11-11/16)