no message

This commit is contained in:
annabakouli 2017-12-18 18:26:38 +02:00
parent c1f2c615af
commit 176f5b3004
4 changed files with 6 additions and 6 deletions

View File

@ -18,7 +18,7 @@ public class DataManagementPlanManager {
List<eu.eudat.models.dmp.DataManagementPlan> datamanagementPlans = new DomainModelConverter<eu.eudat.entities.DMP, eu.eudat.models.dmp.DataManagementPlan>().fromDataModel( pagedItems.toList(), eu.eudat.models.dmp.DataManagementPlan.class);
DataTableData<eu.eudat.models.dmp.DataManagementPlan> dataTable = new DataTableData<eu.eudat.models.dmp.DataManagementPlan>();
dataTable.setData(datamanagementPlans);
dataTable.setTotalCount(dmpsRepository.count());
dataTable.setTotalCount(datamanagementPlans.size());
return dataTable;
}

View File

@ -24,7 +24,7 @@ public class DatasetManager {
List<Dataset> datasets = new DomainModelConverter<eu.eudat.entities.Dataset, Dataset>().fromDataModel( pagedItems.toList(), eu.eudat.models.dataset.Dataset.class);
DataTableData<eu.eudat.models.dataset.Dataset> dataTable = new DataTableData<eu.eudat.models.dataset.Dataset>();
dataTable.setData(datasets);
dataTable.setTotalCount(datatasetRepository.count());
dataTable.setTotalCount(datasets.size());
return dataTable;
}

View File

@ -18,7 +18,7 @@ public class ProjectManager {
List<eu.eudat.models.project.Project> projects = new DomainModelConverter<eu.eudat.entities.Project, Project>().fromDataModel(pagedItems.toList(), eu.eudat.models.project.Project.class);
DataTableData<eu.eudat.models.project.Project> dataTable = new DataTableData<eu.eudat.models.project.Project>();
dataTable.setData(projects);
dataTable.setTotalCount(projectRepository.count());
dataTable.setTotalCount(projects.size());
return dataTable;
}

View File

@ -3,13 +3,13 @@ package eu.eudat.models.helpers;
import java.util.List;
public class DataTableData<T> {
private Long totalCount;
private Integer totalCount;
private List<T> data;
public Long getTotalCount() {
public Integer getTotalCount() {
return totalCount;
}
public void setTotalCount(Long totalCount) {
public void setTotalCount(Integer totalCount) {
this.totalCount = totalCount;
}
public List<T> getData() {