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);
}
Aggregations