Search in sources :

Example 1 with PagesStatusDto

use of org.entando.entando.aps.system.services.page.model.PagesStatusDto in project entando-core by entando.

the class DashboardController method getPagesStatus.

@RestAccessControl(permission = Permission.ENTER_BACKEND)
@RequestMapping(value = "/pageStatus", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SimpleRestResponse<PagesStatusDto>> getPagesStatus() {
    logger.debug("getting pages status count");
    PagesStatusDto result = this.getPageService().getPagesStatus();
    return new ResponseEntity<>(new SimpleRestResponse<>(result), HttpStatus.OK);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) PagesStatusDto(org.entando.entando.aps.system.services.page.model.PagesStatusDto) RestAccessControl(org.entando.entando.web.common.annotation.RestAccessControl) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

PagesStatusDto (org.entando.entando.aps.system.services.page.model.PagesStatusDto)1 RestAccessControl (org.entando.entando.web.common.annotation.RestAccessControl)1 ResponseEntity (org.springframework.http.ResponseEntity)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1