@Controller @RequestMapping(value="/admin/datasource/settings") public class AdminDatasourceSettingsController extends AbstractDatasourceController
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOG |
static String |
SETTINGS |
Constructor and Description |
---|
AdminDatasourceSettingsController() |
Modifier and Type | Method and Description |
---|---|
private org.codehaus.jettison.json.JSONObject |
encodeSettings() |
private org.codehaus.jettison.json.JSONObject |
encodeSettings(Map<String,Object> p) |
private org.codehaus.jettison.json.JSONObject |
encodeSettings(Properties p) |
private org.springframework.web.servlet.ModelAndView |
error(Map<String,Object> newSettings,
String message,
Throwable e) |
protected Map<String,Object> |
parseDatasourceSettings(Set<SettingDefinition<?,?>> defs,
javax.servlet.http.HttpServletRequest req) |
org.springframework.web.servlet.ModelAndView |
save(javax.servlet.http.HttpServletRequest req) |
protected void |
setDefaultValue(SettingDefinition<?,?> def,
Object val) |
protected void |
setDefaultValue(SettingDefinition<?,?> def,
String sval) |
org.springframework.web.servlet.ModelAndView |
view() |
getDatasource, getSettings
cacheIsLoading, updateCache
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toSimpleMap
private static final org.slf4j.Logger LOG
public static final String SETTINGS
@RequestMapping(method=GET) public org.springframework.web.servlet.ModelAndView view()
@RequestMapping(method=POST) public org.springframework.web.servlet.ModelAndView save(javax.servlet.http.HttpServletRequest req) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected Map<String,Object> parseDatasourceSettings(Set<SettingDefinition<?,?>> defs, javax.servlet.http.HttpServletRequest req)
private org.springframework.web.servlet.ModelAndView error(Map<String,Object> newSettings, String message, Throwable e) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private org.codehaus.jettison.json.JSONObject encodeSettings() throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private org.codehaus.jettison.json.JSONObject encodeSettings(Properties p) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private org.codehaus.jettison.json.JSONObject encodeSettings(Map<String,Object> p) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
protected void setDefaultValue(SettingDefinition<?,?> def, String sval)
protected void setDefaultValue(SettingDefinition<?,?> def, Object val)
Copyright © 2012-2014 52north.org. All Rights Reserved.