Project

General

Profile

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
    private Boolean indexedVersion;
16

    
17
    public AggregationDetails() {
18
    }
19

    
20
    public String getAggregationStage() {
21
        return aggregationStage;
22
    }
23

    
24
    public String getCollectionMode() {
25
        return collectionMode;
26
    }
27

    
28
    public void setCollectionMode(String collectionMode) {
29
        this.collectionMode = collectionMode;
30
    }
31

    
32
    public void setAggregationStage(String aggregationStage) {
33
        this.aggregationStage = aggregationStage;
34
    }
35

    
36
    public Date getDate() {
37
        return date;
38
    }
39

    
40
    public void setDate(Date date) {
41
        this.date = date;
42
    }
43

    
44
    public int getNumberOfRecords() {
45
        return numberOfRecords;
46
    }
47

    
48
    public void setNumberOfRecords(int numberOfRecords) {
49
        this.numberOfRecords = numberOfRecords;
50
    }
51

    
52
    public String getYear() {
53
        Calendar calendar = Calendar.getInstance();
54
        calendar.setTime(getDate());
55
        return String.valueOf(calendar.get(Calendar.YEAR));
56
    }
57

    
58
    public Boolean getIndexedVersion() {
59
        return indexedVersion;
60
    }
61

    
62
    public void setIndexedVersion(Boolean indexedVersion) {
63
        this.indexedVersion = indexedVersion;
64
    }
65
}
(1-1/22)