package eu.dnetlib.repo.manager.shared; import com.google.gwt.user.client.rpc.IsSerializable; import java.util.Calendar; import java.util.Date; public class AggregationDetails implements IsSerializable{ private String aggregationStage; private Date date; private int numberOfRecords; private String collectionMode; private Boolean indexedVersion; public AggregationDetails() { } public String getAggregationStage() { return aggregationStage; } public String getCollectionMode() { return collectionMode; } public void setCollectionMode(String collectionMode) { this.collectionMode = collectionMode; } public void setAggregationStage(String aggregationStage) { this.aggregationStage = aggregationStage; } public Date getDate() { return date; } public void setDate(Date date) { this.date = date; } public int getNumberOfRecords() { return numberOfRecords; } public void setNumberOfRecords(int numberOfRecords) { this.numberOfRecords = numberOfRecords; } public String getYear() { Calendar calendar = Calendar.getInstance(); calendar.setTime(getDate()); return String.valueOf(calendar.get(Calendar.YEAR)); } public Boolean getIndexedVersion() { return indexedVersion; } public void setIndexedVersion(Boolean indexedVersion) { this.indexedVersion = indexedVersion; } }