mirror of
https://github.com/dalbodeule/snap-admin.git
synced 2025-06-08 21:38:21 +00:00
Rename
This commit is contained in:
parent
630be403c7
commit
f69363563d
@ -55,7 +55,7 @@ import com.fasterxml.jackson.core.JsonProcessingException;
|
|||||||
import com.fasterxml.jackson.databind.ObjectMapper;
|
import com.fasterxml.jackson.databind.ObjectMapper;
|
||||||
|
|
||||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbFieldValue;
|
import tech.ailef.snapadmin.external.dbmapping.DbFieldValue;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||||
@ -79,7 +79,7 @@ public class DataExportController {
|
|||||||
private SnapAdmin dbAdmin;
|
private SnapAdmin dbAdmin;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DbAdminRepository repository;
|
private SnapAdminRepository repository;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private ConsoleQueryRepository queryRepository;
|
private ConsoleQueryRepository queryRepository;
|
||||||
|
@ -56,7 +56,7 @@ import jakarta.servlet.http.HttpServletResponse;
|
|||||||
import jakarta.validation.ConstraintViolationException;
|
import jakarta.validation.ConstraintViolationException;
|
||||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||||
import tech.ailef.snapadmin.external.SnapAdminProperties;
|
import tech.ailef.snapadmin.external.SnapAdminProperties;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.query.DbQueryResult;
|
import tech.ailef.snapadmin.external.dbmapping.query.DbQueryResult;
|
||||||
@ -84,14 +84,14 @@ import tech.ailef.snapadmin.internal.service.UserSettingsService;
|
|||||||
*/
|
*/
|
||||||
@Controller
|
@Controller
|
||||||
@RequestMapping(value= {"/${snapadmin.baseUrl}", "/${snapadmin.baseUrl}/"})
|
@RequestMapping(value= {"/${snapadmin.baseUrl}", "/${snapadmin.baseUrl}/"})
|
||||||
public class DefaultDbAdminController {
|
public class DefaultSnapAdminController {
|
||||||
private static final Logger logger = LoggerFactory.getLogger(DefaultDbAdminController.class);
|
private static final Logger logger = LoggerFactory.getLogger(DefaultSnapAdminController.class);
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SnapAdminProperties properties;
|
private SnapAdminProperties properties;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DbAdminRepository repository;
|
private SnapAdminRepository repository;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SnapAdmin dbAdmin;
|
private SnapAdmin dbAdmin;
|
@ -37,7 +37,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
|
|||||||
import org.springframework.web.server.ResponseStatusException;
|
import org.springframework.web.server.ResponseStatusException;
|
||||||
|
|
||||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbFieldValue;
|
import tech.ailef.snapadmin.external.dbmapping.DbFieldValue;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
import tech.ailef.snapadmin.external.dbmapping.DbObject;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||||
@ -50,7 +50,7 @@ import tech.ailef.snapadmin.external.exceptions.DbAdminException;
|
|||||||
@RequestMapping(value = {"/${snapadmin.baseUrl}/download", "/${snapadmin.baseUrl}/download/"})
|
@RequestMapping(value = {"/${snapadmin.baseUrl}/download", "/${snapadmin.baseUrl}/download/"})
|
||||||
public class FileDownloadController {
|
public class FileDownloadController {
|
||||||
@Autowired
|
@Autowired
|
||||||
private DbAdminRepository repository;
|
private SnapAdminRepository repository;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SnapAdmin dbAdmin;
|
private SnapAdmin dbAdmin;
|
||||||
|
@ -31,7 +31,7 @@ import org.springframework.web.bind.annotation.RequestParam;
|
|||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
import tech.ailef.snapadmin.external.SnapAdmin;
|
import tech.ailef.snapadmin.external.SnapAdmin;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbAdminRepository;
|
import tech.ailef.snapadmin.external.dbmapping.SnapAdminRepository;
|
||||||
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
import tech.ailef.snapadmin.external.dbmapping.DbObjectSchema;
|
||||||
import tech.ailef.snapadmin.external.dto.AutocompleteSearchResult;
|
import tech.ailef.snapadmin.external.dto.AutocompleteSearchResult;
|
||||||
|
|
||||||
@ -45,7 +45,7 @@ public class AutocompleteController {
|
|||||||
private SnapAdmin dbAdmin;
|
private SnapAdmin dbAdmin;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private DbAdminRepository repository;
|
private SnapAdminRepository repository;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of entities from a given table that match an input query.
|
* Returns a list of entities from a given table that match an input query.
|
||||||
|
@ -61,14 +61,14 @@ import tech.ailef.snapadmin.external.exceptions.InvalidPageException;
|
|||||||
* Implements the basic CRUD operations (and some more)
|
* Implements the basic CRUD operations (and some more)
|
||||||
*/
|
*/
|
||||||
@Component
|
@Component
|
||||||
public class DbAdminRepository {
|
public class SnapAdminRepository {
|
||||||
@Autowired
|
@Autowired
|
||||||
private JdbcTemplate jdbcTemplate;
|
private JdbcTemplate jdbcTemplate;
|
||||||
|
|
||||||
@Autowired
|
@Autowired
|
||||||
private SnapAdmin dbAdmin;
|
private SnapAdmin dbAdmin;
|
||||||
|
|
||||||
public DbAdminRepository() {
|
public SnapAdminRepository() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
Loading…
x
Reference in New Issue
Block a user