Search in sources :

Example 11 with PageSearchRequest

use of org.entando.entando.web.page.model.PageSearchRequest in project entando-core by entando.

the class PageSearchMapper method toPageSearchDto.

/**
 * craetes a PageSearchDto starting from the received data
 *
 * @param request
 * @param pages
 * @return the created
 */
public PagedMetadata<PageDto> toPageSearchDto(RestListRequest request, List<PageDto> pages) {
    PageSearchRequest pageSearchReq = new PageSearchRequest();
    BeanUtils.copyProperties(request, pageSearchReq);
    return toPageSearchDto(pageSearchReq, pages);
}
Also used : PageSearchRequest(org.entando.entando.web.page.model.PageSearchRequest)

Example 12 with PageSearchRequest

use of org.entando.entando.web.page.model.PageSearchRequest in project entando-core by entando.

the class PageService method getPagedResult.

private PagedMetadata<PageDto> getPagedResult(RestListRequest request, List<PageDto> pages) {
    PageSearchRequest pageSearchReq = new PageSearchRequest();
    BeanUtils.copyProperties(request, pageSearchReq);
    return getPagedResult(pageSearchReq, pages);
}
Also used : PageSearchRequest(org.entando.entando.web.page.model.PageSearchRequest)

Aggregations

PageSearchRequest (org.entando.entando.web.page.model.PageSearchRequest)12 ComponentUsageEntity (org.entando.entando.web.component.ComponentUsageEntity)8 Test (org.junit.Test)7 IPage (com.agiletec.aps.system.services.page.IPage)4 Page (com.agiletec.aps.system.services.page.Page)4 PageDto (org.entando.entando.aps.system.services.page.model.PageDto)4 ResourceNotFoundException (org.entando.entando.aps.system.exception.ResourceNotFoundException)3 ImmutableList (com.google.common.collect.ImmutableList)2 ArgumentMatchers.anyString (org.mockito.ArgumentMatchers.anyString)2 ApsSystemException (com.agiletec.aps.system.exception.ApsSystemException)1 Group (com.agiletec.aps.system.services.group.Group)1 IGroupManager (com.agiletec.aps.system.services.group.IGroupManager)1 Lang (com.agiletec.aps.system.services.lang.Lang)1 IPageManager (com.agiletec.aps.system.services.page.IPageManager)1 PageUtilizer (com.agiletec.aps.system.services.page.PageUtilizer)1 IPageModelManager (com.agiletec.aps.system.services.pagemodel.IPageModelManager)1 PageModel (com.agiletec.aps.system.services.pagemodel.PageModel)1 JsonProcessingException (com.fasterxml.jackson.core.JsonProcessingException)1 java.util (java.util)1 Collectors (java.util.stream.Collectors)1