1
|
package eu.dnetlib.repo.manager.shared;
|
2
|
|
3
|
import com.google.gwt.user.client.rpc.IsSerializable;
|
4
|
|
5
|
import java.util.Calendar;
|
6
|
import java.util.Date;
|
7
|
|
8
|
public class AggregationDetails implements IsSerializable{
|
9
|
|
10
|
|
11
|
private String aggregationStage;
|
12
|
private Date date;
|
13
|
private int numberOfRecords;
|
14
|
private String collectionMode;
|
15
|
|
16
|
public AggregationDetails() {
|
17
|
}
|
18
|
|
19
|
public String getAggregationStage() {
|
20
|
return aggregationStage;
|
21
|
}
|
22
|
|
23
|
public String getCollectionMode() {
|
24
|
return collectionMode;
|
25
|
}
|
26
|
|
27
|
public void setCollectionMode(String collectionMode) {
|
28
|
this.collectionMode = collectionMode;
|
29
|
}
|
30
|
|
31
|
public void setAggregationStage(String aggregationStage) {
|
32
|
this.aggregationStage = aggregationStage;
|
33
|
}
|
34
|
|
35
|
public Date getDate() {
|
36
|
return date;
|
37
|
}
|
38
|
|
39
|
public void setDate(Date date) {
|
40
|
this.date = date;
|
41
|
}
|
42
|
|
43
|
public int getNumberOfRecords() {
|
44
|
return numberOfRecords;
|
45
|
}
|
46
|
|
47
|
public void setNumberOfRecords(int numberOfRecords) {
|
48
|
this.numberOfRecords = numberOfRecords;
|
49
|
}
|
50
|
|
51
|
public String getYear() {
|
52
|
Calendar calendar = Calendar.getInstance();
|
53
|
calendar.setTime(getDate());
|
54
|
return String.valueOf(calendar.get(Calendar.YEAR));
|
55
|
}
|
56
|
}
|