@Controller public class AdminDatasourceController extends AbstractDatasourceController
Modifier and Type | Field and Description |
---|---|
private ServiceLoader<GeneralQueryDAO> |
daoServiceLoader |
private static org.slf4j.Logger |
LOG |
private static String |
NAMES |
private static String |
ROWS |
private static String |
SUPPORTS_CLEAR |
private static String |
SUPPORTS_DELETE_DELETED |
Constructor and Description |
---|
AdminDatasourceController() |
Modifier and Type | Method and Description |
---|---|
void |
clearDatasource() |
org.springframework.web.servlet.ModelAndView |
index() |
String |
onError(UnsupportedOperationException e) |
String |
processQuery(String querySQL) |
getDatasource, getSettings
cacheIsLoading, updateCache
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toJSONValueMap
private static final org.slf4j.Logger LOG
private static final String ROWS
private static final String NAMES
private static final String SUPPORTS_CLEAR
private static final String SUPPORTS_DELETE_DELETED
private ServiceLoader<GeneralQueryDAO> daoServiceLoader
@RequestMapping(value="/admin/datasource") public org.springframework.web.servlet.ModelAndView index() throws SQLException, OwsExceptionReport
SQLException
OwsExceptionReport
@ResponseBody @RequestMapping(value="/admin/datasource", method=POST) public String processQuery(@RequestBody String querySQL)
@ResponseBody @ResponseStatus(value=INTERNAL_SERVER_ERROR) @ExceptionHandler(value=java.lang.UnsupportedOperationException.class) public String onError(UnsupportedOperationException e)
@ResponseStatus(value=NO_CONTENT) @RequestMapping(value="/admin/datasource/clear", method=POST) public void clearDatasource() throws OwsExceptionReport, ConnectionProviderException
Copyright © 2012-2015 52north.org. All Rights Reserved.