|
|
|
@ -69,8 +69,6 @@ import org.springframework.core.env.Environment;
|
|
|
|
|
import org.springframework.core.io.FileSystemResource;
|
|
|
|
|
import org.springframework.http.*;
|
|
|
|
|
import org.springframework.stereotype.Component;
|
|
|
|
|
import org.springframework.util.LinkedMultiValueMap;
|
|
|
|
|
import org.springframework.util.MultiValueMap;
|
|
|
|
|
import org.springframework.web.client.HttpClientErrorException;
|
|
|
|
|
import org.springframework.web.client.HttpServerErrorException;
|
|
|
|
|
import org.springframework.web.client.RestTemplate;
|
|
|
|
@ -137,6 +135,7 @@ public class DataManagementPlanManager {
|
|
|
|
|
criteria.setOffset(dataManagementPlanTableRequest.getOffset());
|
|
|
|
|
criteria.setSize(dataManagementPlanTableRequest.getLength());
|
|
|
|
|
criteria.setSortCriteria(DmpCriteriaMapper.toElasticSorting(dataManagementPlanTableRequest.getOrderings()));
|
|
|
|
|
|
|
|
|
|
dmps = apiContext.getOperationsContext().getElasticRepository().getDmpRepository().query(criteria);
|
|
|
|
|
if (dmps != null && !dmps.isEmpty()) {
|
|
|
|
|
List<Dmp> finalDmps = dmps;
|
|
|
|
|