@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 com.fasterxml.jackson.databind.node.ObjectNode |
toJson(Collection<OfferingExtension> extensionsForOffering) |
private com.fasterxml.jackson.databind.node.ObjectNode |
toJson(OfferingExtension extensionForOffering) |
error, error, error, error, error, error, getCache, getDao, getSelectedStaticCapabilities, setSelectedStaticCapabilities, showDynamicCapabilities
getBasePath, getContext, getDatabaseSettingsHandler, getMetaDataHandler, getSettingsManager, parseBoolean, parseBoolean, setContext, toJSONValueMap
private com.fasterxml.jackson.databind.node.ObjectNode toJson(Collection<OfferingExtension> extensionsForOffering)
private com.fasterxml.jackson.databind.node.ObjectNode toJson(OfferingExtension extensionForOffering)
@ResponseBody @ResponseStatus(value=OK) @RequestMapping(method=GET, produces="application/json") public String getOfferingExtensions() throws OwsExceptionReport
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, IOException
org.apache.xmlbeans.XmlException
NoSuchOfferingException
OwsExceptionReport
IOException
@ResponseStatus(value=NO_CONTENT) @RequestMapping(value="/edit", method=POST, consumes="application/json") public void setOfferingExtensionSettings(@RequestBody String settings) throws NoSuchExtensionException, NoSuchOfferingException, OwsExceptionReport, IOException
@ResponseStatus(value=NO_CONTENT) @RequestMapping(value="/delete", method=DELETE, consumes="application/json") public void deleteOfferingExtension(@RequestBody String requestJson) throws NoSuchExtensionException, NoSuchOfferingException, OwsExceptionReport, IOException
Copyright © 2012-2015 52north.org. All Rights Reserved.