@Controller @RequestMapping(value="/admin/capabilities/ajax/offeringExtensions") public class OfferingExtensionAjaxEndpoint extends AbstractAdminCapabiltiesAjaxEndpoint
Modifier and Type | Field and Description |
---|---|
private static org.slf4j.Logger |
LOGGER |
DISABLED_PROPERTY, ERRORS_PROPERTY, EXTENSION_PROPERTY, IDENTIFIER, IDENTIFIER_PROPERTY, OFFERING, VALID_PROPERTY
Constructor and Description |
---|
OfferingExtensionAjaxEndpoint() |
Modifier and Type | Method and Description |
---|---|
private void |
checkOffering(String offering) |
void |
deleteOfferingExtension(String requestJson) |
String |
getOfferingExtensions() |
void |
saveOfferingExtension(String extensionJson) |
void |
setOfferingExtensionSettings(String settings) |
private org.codehaus.jettison.json.JSONObject |
toJson(Collection<OfferingExtension> extensionsForOffering) |
private org.codehaus.jettison.json.JSONObject |
toJson(OfferingExtension extensionForOffering) |
error, error, error, error, error, error, getCache, getDao, getSelectedStaticCapabilities, setSelectedStaticCapabilities, showDynamicCapabilities
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toSimpleMap
private org.codehaus.jettison.json.JSONObject toJson(Collection<OfferingExtension> extensionsForOffering) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
private org.codehaus.jettison.json.JSONObject toJson(OfferingExtension extensionForOffering) throws org.codehaus.jettison.json.JSONException
org.codehaus.jettison.json.JSONException
@ResponseBody @ResponseStatus(value=OK) @RequestMapping(method=GET, produces="application/json") public String getOfferingExtensions() throws org.codehaus.jettison.json.JSONException, OwsExceptionReport
org.codehaus.jettison.json.JSONException
OwsExceptionReport
private void checkOffering(String offering) throws NoSuchOfferingException
NoSuchOfferingException
@ResponseStatus(value=NO_CONTENT) @RequestMapping(value="/save", method=POST, consumes="application/json") public void saveOfferingExtension(@RequestBody String extensionJson) throws org.apache.xmlbeans.XmlException, NoSuchOfferingException, OwsExceptionReport, org.codehaus.jettison.json.JSONException
org.apache.xmlbeans.XmlException
NoSuchOfferingException
OwsExceptionReport
org.codehaus.jettison.json.JSONException
@ResponseStatus(value=NO_CONTENT) @RequestMapping(value="/edit", method=POST, consumes="application/json") public void setOfferingExtensionSettings(@RequestBody String settings) throws org.codehaus.jettison.json.JSONException, NoSuchExtensionException, NoSuchOfferingException, OwsExceptionReport
org.codehaus.jettison.json.JSONException
NoSuchExtensionException
NoSuchOfferingException
OwsExceptionReport
@ResponseStatus(value=NO_CONTENT) @RequestMapping(value="/delete", method=DELETE, consumes="application/json") public void deleteOfferingExtension(@RequestBody String requestJson) throws NoSuchExtensionException, NoSuchOfferingException, OwsExceptionReport, org.codehaus.jettison.json.JSONException
NoSuchExtensionException
NoSuchOfferingException
OwsExceptionReport
org.codehaus.jettison.json.JSONException
Copyright © 2012-2014 52north.org. All Rights Reserved.