Class PluginController


  • @RestController
    @RequestMapping("/1/plugin")
    public class PluginController
    extends Object
    Controller that provides the UI with plugin related files
    Since:
    4.0
    Author:
    joseross
    • Field Detail

      • configurationService

        protected final ConfigurationService configurationService
        The configuration service
      • cacheControl

        protected final org.springframework.http.CacheControl cacheControl
    • Constructor Detail

    • Method Detail

      • getPluginFile

        @Valid
        @GetMapping("/file")
        public @Valid org.springframework.http.ResponseEntity<org.springframework.core.io.Resource> getPluginFile​(@RequestParam
                                                                                                                  String siteId,
                                                                                                                  @RequestParam
                                                                                                                  String type,
                                                                                                                  @RequestParam
                                                                                                                  String name,
                                                                                                                  @RequestParam(required=false)
                                                                                                                  String filename,
                                                                                                                  String pluginId)
                                                                                                           throws ContentNotFoundException
        Returns a single file for a given plugin
        Throws:
        ContentNotFoundException