Project

General

Profile

« Previous | Next » 

Revision 54842

Meerge dev-api to trunk ( -r50861:54841 )

View differences:

AggregationDetails.java
2 2

  
3 3
import com.google.gwt.user.client.rpc.IsSerializable;
4 4

  
5
import java.util.Calendar;
5 6
import java.util.Date;
6 7

  
7 8
public class AggregationDetails implements IsSerializable{
......
11 12
    private Date date;
12 13
    private int numberOfRecords;
13 14
    private String collectionMode;
15
    private Boolean indexedVersion;
14 16

  
15 17
    public AggregationDetails() {
16 18
    }
......
46 48
    public void setNumberOfRecords(int numberOfRecords) {
47 49
        this.numberOfRecords = numberOfRecords;
48 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
    }
49 65
}

Also available in: Unified diff