Project

General

Profile

1 57741 ioannis.di
package eu.dnetlib.repo.manager.domain;
2 49684 panagiotis
3 54842 panagiotis
import java.util.Calendar;
4 49684 panagiotis
import java.util.Date;
5
6 57741 ioannis.di
public class AggregationDetails{
7 49684 panagiotis
8
9
    private String aggregationStage;
10
    private Date date;
11
    private int numberOfRecords;
12
    private String collectionMode;
13 54842 panagiotis
    private Boolean indexedVersion;
14 49684 panagiotis
15
    public AggregationDetails() {
16
    }
17
18
    public String getAggregationStage() {
19
        return aggregationStage;
20
    }
21
22
    public String getCollectionMode() {
23
        return collectionMode;
24
    }
25
26
    public void setCollectionMode(String collectionMode) {
27
        this.collectionMode = collectionMode;
28
    }
29
30
    public void setAggregationStage(String aggregationStage) {
31
        this.aggregationStage = aggregationStage;
32
    }
33
34
    public Date getDate() {
35
        return date;
36
    }
37
38
    public void setDate(Date date) {
39
        this.date = date;
40
    }
41
42
    public int getNumberOfRecords() {
43
        return numberOfRecords;
44
    }
45
46
    public void setNumberOfRecords(int numberOfRecords) {
47
        this.numberOfRecords = numberOfRecords;
48
    }
49 54842 panagiotis
50
    public String getYear() {
51
        Calendar calendar = Calendar.getInstance();
52
        calendar.setTime(getDate());
53
        return String.valueOf(calendar.get(Calendar.YEAR));
54
    }
55
56
    public Boolean getIndexedVersion() {
57
        return indexedVersion;
58
    }
59
60
    public void setIndexedVersion(Boolean indexedVersion) {
61
        this.indexedVersion = indexedVersion;
62
    }
63 49684 panagiotis
}