Package de.hybris.smartedit.controllers
Class ConfigurationController
- java.lang.Object
-
- de.hybris.smartedit.controllers.ConfigurationController
-
@RestController("configurationController") @RequestMapping("/configuration") public class ConfigurationController extends java.lang.ObjectUnauthenticated controller using various gateways to send the requested CRUD operations to the secured webservice responsible of executing the operation.By default,
smarteditwebservicesis the targeted web extension. This is defined by the propertyconfigurationServiceLocation.
-
-
Constructor Summary
Constructors Constructor Description ConfigurationController(HttpGETGateway httpGETGateway, HttpPOSTGateway httpPOSTGateway, HttpPUTGateway httpPUTGateway, HttpDELETEGateway httpDELETEGateway)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.http.ResponseEntity<java.lang.Void>deleteConfiguration(java.lang.String configId, javax.servlet.http.HttpServletRequest request)protected java.lang.StringgetAuthorization(javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<java.util.Collection<ConfigurationData>>getConfiguration(javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<ConfigurationData>saveConfiguration(java.util.Map<java.lang.String,java.lang.String> payload, javax.servlet.http.HttpServletRequest request)org.springframework.http.ResponseEntity<ConfigurationData>updateConfiguration(java.util.Map<java.lang.String,java.lang.String> payload, java.lang.String configId, javax.servlet.http.HttpServletRequest request)
-
-
-
Constructor Detail
-
ConfigurationController
@Autowired public ConfigurationController(HttpGETGateway httpGETGateway, HttpPOSTGateway httpPOSTGateway, HttpPUTGateway httpPUTGateway, HttpDELETEGateway httpDELETEGateway)
-
-
Method Detail
-
getConfiguration
@GetMapping @ResponseStatus(OK) @ResponseBody public org.springframework.http.ResponseEntity<java.util.Collection<ConfigurationData>> getConfiguration(javax.servlet.http.HttpServletRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
saveConfiguration
@PostMapping @ResponseStatus(CREATED) @ResponseBody public org.springframework.http.ResponseEntity<ConfigurationData> saveConfiguration(@RequestBody java.util.Map<java.lang.String,java.lang.String> payload, javax.servlet.http.HttpServletRequest request) throws java.io.IOException
- Throws:
java.io.IOException
-
updateConfiguration
@PutMapping("/{key:.+}") @ResponseStatus(OK) @ResponseBody public org.springframework.http.ResponseEntity<ConfigurationData> updateConfiguration(@RequestBody java.util.Map<java.lang.String,java.lang.String> payload, @PathVariable("key") java.lang.String configId, javax.servlet.http.HttpServletRequest request) throws java.io.IOException- Throws:
java.io.IOException
-
deleteConfiguration
@DeleteMapping("/{key:.+}") @ResponseStatus(NO_CONTENT) public org.springframework.http.ResponseEntity<java.lang.Void> deleteConfiguration(@PathVariable("key") java.lang.String configId, javax.servlet.http.HttpServletRequest request) throws java.io.IOException- Throws:
java.io.IOException
-
getAuthorization
protected java.lang.String getAuthorization(javax.servlet.http.HttpServletRequest request)
-
-