Search in sources :

Example 1 with ComponentDto

use of org.entando.entando.aps.system.services.database.model.ComponentDto in project entando-core by entando.

the class DatabaseController method initBackup.

@RestAccessControl(permission = Permission.SUPERUSER)
@RequestMapping(value = "/initBackup", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_VALUE)
public ResponseEntity<RestResponse> initBackup() {
    logger.debug("Required actual component configuration");
    List<ComponentDto> dtos = this.getDatabaseService().getCurrentComponents();
    logger.debug("Actual component configuration -> {}", dtos);
    return new ResponseEntity<>(new RestResponse(dtos), HttpStatus.OK);
}
Also used : ResponseEntity(org.springframework.http.ResponseEntity) RestResponse(org.entando.entando.web.common.model.RestResponse) ComponentDto(org.entando.entando.aps.system.services.database.model.ComponentDto) RestAccessControl(org.entando.entando.web.common.annotation.RestAccessControl) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

ComponentDto (org.entando.entando.aps.system.services.database.model.ComponentDto)1 RestAccessControl (org.entando.entando.web.common.annotation.RestAccessControl)1 RestResponse (org.entando.entando.web.common.model.RestResponse)1 ResponseEntity (org.springframework.http.ResponseEntity)1 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)1