Class ConfigurationController


  • @RestController("configurationController")
    @RequestMapping("/configuration")
    public class ConfigurationController
    extends java.lang.Object
    Unauthenticated controller using various gateways to send the requested CRUD operations to the secured webservice responsible of executing the operation.

    By default, smarteditwebservices is the targeted web extension. This is defined by the property configurationServiceLocation.

    • 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.String getAuthorization​(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)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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)