Search in sources :

Example 1 with EntityTypesStatusDto

use of org.entando.entando.aps.system.services.entity.model.EntityTypesStatusDto in project entando-core by entando.

the class DataTypeController method extractStatus.

@RestAccessControl(permission = Permission.SUPERUSER)
@RequestMapping(value = "/dataTypesStatus", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<SimpleRestResponse<EntityTypesStatusDto>> extractStatus() throws Throwable {
    logger.debug("Extract data types status");
    EntityTypesStatusDto status = this.getDataObjectService().getDataTypesRefreshStatus();
    logger.debug("Extracted data types status {}", status);
    return new ResponseEntity<>(new SimpleRestResponse<>(status), HttpStatus.OK);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) EntityTypesStatusDto(org.entando.entando.aps.system.services.entity.model.EntityTypesStatusDto) RestAccessControl(org.entando.entando.web.common.annotation.RestAccessControl)

Aggregations

EntityTypesStatusDto (org.entando.entando.aps.system.services.entity.model.EntityTypesStatusDto)1 RestAccessControl (org.entando.entando.web.common.annotation.RestAccessControl)1 ResponseEntity (org.springframework.http.ResponseEntity)1