@Controller public class SettingDefinitonController extends AbstractController
Modifier and Type | Field and Description |
---|---|
private static SettingDefinitionGroup |
DEFAULT_SETTINGS_GROUP |
private SettingDefinitionEncoder |
encoder |
Constructor and Description |
---|
SettingDefinitonController() |
Modifier and Type | Method and Description |
---|---|
private boolean |
checkSettingsDefinitionGroup(SettingDefinitionGroup group,
boolean showAll,
Set<String> only) |
String |
get(boolean showAll,
String only) |
protected SettingDefinitionEncoder |
getEncoder() |
protected Map<SettingDefinitionGroup,Set<SettingDefinition>> |
sortByGroup(Set<SettingDefinition<?,?>> defs,
boolean showAll,
Set<String> only) |
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toJSONValueMap
private static final SettingDefinitionGroup DEFAULT_SETTINGS_GROUP
private SettingDefinitionEncoder encoder
@ResponseBody @RequestMapping(value="/settingDefinitions.json", method=GET, produces="application/json; charset=UTF-8") public String get(@RequestParam(value="showAll",defaultValue="true") boolean showAll, @RequestParam(value="only",required=false) String only) throws ConfigurationException, JSONException
ConfigurationException
JSONException
protected Map<SettingDefinitionGroup,Set<SettingDefinition>> sortByGroup(Set<SettingDefinition<?,?>> defs, boolean showAll, Set<String> only)
private boolean checkSettingsDefinitionGroup(SettingDefinitionGroup group, boolean showAll, Set<String> only)
protected SettingDefinitionEncoder getEncoder()
Copyright © 2012-2015 52north.org. All Rights Reserved.