no message
This commit is contained in:
parent
c1f2c615af
commit
176f5b3004
|
@ -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);
|
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>();
|
DataTableData<eu.eudat.models.dmp.DataManagementPlan> dataTable = new DataTableData<eu.eudat.models.dmp.DataManagementPlan>();
|
||||||
dataTable.setData(datamanagementPlans);
|
dataTable.setData(datamanagementPlans);
|
||||||
dataTable.setTotalCount(dmpsRepository.count());
|
dataTable.setTotalCount(datamanagementPlans.size());
|
||||||
return dataTable;
|
return dataTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
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>();
|
DataTableData<eu.eudat.models.dataset.Dataset> dataTable = new DataTableData<eu.eudat.models.dataset.Dataset>();
|
||||||
dataTable.setData(datasets);
|
dataTable.setData(datasets);
|
||||||
dataTable.setTotalCount(datatasetRepository.count());
|
dataTable.setTotalCount(datasets.size());
|
||||||
return dataTable;
|
return dataTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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);
|
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>();
|
DataTableData<eu.eudat.models.project.Project> dataTable = new DataTableData<eu.eudat.models.project.Project>();
|
||||||
dataTable.setData(projects);
|
dataTable.setData(projects);
|
||||||
dataTable.setTotalCount(projectRepository.count());
|
dataTable.setTotalCount(projects.size());
|
||||||
return dataTable;
|
return dataTable;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,13 @@ package eu.eudat.models.helpers;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
public class DataTableData<T> {
|
public class DataTableData<T> {
|
||||||
private Long totalCount;
|
private Integer totalCount;
|
||||||
private List<T> data;
|
private List<T> data;
|
||||||
|
|
||||||
public Long getTotalCount() {
|
public Integer getTotalCount() {
|
||||||
return totalCount;
|
return totalCount;
|
||||||
}
|
}
|
||||||
public void setTotalCount(Long totalCount) {
|
public void setTotalCount(Integer totalCount) {
|
||||||
this.totalCount = totalCount;
|
this.totalCount = totalCount;
|
||||||
}
|
}
|
||||||
public List<T> getData() {
|
public List<T> getData() {
|
||||||
|
|
Loading…
Reference in New Issue