Class AdminThemes


  • @RequestMapping("/cms/themes")
    public class AdminThemes
    extends Object
    • Constructor Detail

      • AdminThemes

        @Autowired
        public AdminThemes​(CMSURLHandler urlHandler)
    • Method Detail

      • themes

        @RequestMapping(method=GET)
        public String themes​(org.springframework.ui.Model model)
      • viewTheme

        @RequestMapping(value="{type}/see",
                        method=GET)
        public String viewTheme​(org.springframework.ui.Model model,
                                @PathVariable("type")
                                String type)
      • loadDefaultThemes

        @RequestMapping(value="loadDefault",
                        method=GET)
        public org.springframework.web.servlet.view.RedirectView loadDefaultThemes​(org.springframework.ui.Model model)
      • deleteTheme

        @RequestMapping(value="{type}/delete",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView deleteTheme​(org.springframework.ui.Model model,
                                                                             @PathVariable("type")
                                                                             String type)
      • importTheme

        @RequestMapping(value="create",
                        method=GET)
        public String importTheme​(org.springframework.ui.Model model)
      • addTheme

        @RequestMapping(value="create",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView addTheme​(@RequestParam("uploadedFile")
                                                                          org.springframework.web.multipart.MultipartFile uploadedFile)
                                                                   throws IOException
        Throws:
        IOException
      • editFile

        @RequestMapping(value="{type}/editFile/**",
                        method=GET)
        public String editFile​(org.springframework.ui.Model model,
                               @PathVariable("type")
                               String type,
                               javax.servlet.http.HttpServletRequest request)
      • saveFileEdition

        @ResponseStatus(OK)
        @RequestMapping(value="{type}/editFile/**",
                        method=PUT)
        public void saveFileEdition​(@PathVariable("type")
                                    String type,
                                    javax.servlet.http.HttpServletRequest request,
                                    @RequestBody
                                    String content)
      • deleteFile

        @RequestMapping(value="{type}/deleteFile",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView deleteFile​(@PathVariable("type")
                                                                            String type,
                                                                            @RequestParam
                                                                            String path)
      • newTheme

        @RequestMapping(value="new",
                        method=GET)
        public String newTheme​(org.springframework.ui.Model model)
      • newTheme

        @RequestMapping(value="new",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView newTheme​(org.springframework.ui.Model model,
                                                                          @RequestParam
                                                                          String type,
                                                                          @RequestParam
                                                                          String name,
                                                                          @RequestParam
                                                                          String description,
                                                                          @RequestParam("extends")
                                                                          String ext)
      • newFile

        @RequestMapping(value="{type}/newFile",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView newFile​(@PathVariable("type")
                                                                         String type,
                                                                         @RequestParam
                                                                         String filename)
      • importFile

        @RequestMapping(value="{type}/importFile",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView importFile​(@PathVariable("type")
                                                                            String type,
                                                                            @RequestParam
                                                                            String filename,
                                                                            @RequestParam("uploadedFile")
                                                                            org.springframework.web.multipart.MultipartFile uploadedFile)
                                                                     throws IOException
        Throws:
        IOException
      • newTemplate

        @RequestMapping(value="{type}/newTemplate",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView newTemplate​(@PathVariable("type")
                                                                             String type,
                                                                             @RequestParam("type")
                                                                             String templateType,
                                                                             @RequestParam
                                                                             String name,
                                                                             @RequestParam
                                                                             String description,
                                                                             @RequestParam
                                                                             String filename)
      • deleteTemplate

        @RequestMapping(value="{type}/deleteTemplate",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView deleteTemplate​(@PathVariable("type")
                                                                                String type,
                                                                                @RequestParam("type")
                                                                                String templateType)
      • duplicateTheme

        @RequestMapping(value="{type}/duplicate",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView duplicateTheme​(org.springframework.ui.Model model,
                                                                                @PathVariable
                                                                                String type,
                                                                                @RequestParam("newThemeType")
                                                                                String newThemeType,
                                                                                @RequestParam
                                                                                String name,
                                                                                @RequestParam
                                                                                String description)
      • moveFile

        @RequestMapping(value="{type}/moveFile",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView moveFile​(org.springframework.ui.Model model,
                                                                          @PathVariable
                                                                          String type,
                                                                          @RequestParam
                                                                          String origFilename,
                                                                          @RequestParam
                                                                          String filename)
      • editTheme

        @RequestMapping(value="{type}/edit",
                        method=GET)
        public String editTheme​(org.springframework.ui.Model model,
                                @PathVariable("type")
                                String type)
      • listFiles

        @RequestMapping(value="{type}/listFiles",
                        method=GET)
        @ResponseBody
        public String listFiles​(org.springframework.ui.Model model,
                                @PathVariable("type")
                                String type)
      • editThemeSettings

        @RequestMapping(value="{type}/editSettings",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView editThemeSettings​(@PathVariable("type")
                                                                                   String type,
                                                                                   @RequestParam
                                                                                   String name,
                                                                                   @RequestParam
                                                                                   String description,
                                                                                   @RequestParam("extends")
                                                                                   String ext,
                                                                                   @RequestParam(value="thumbnail",required=false)
                                                                                   org.springframework.web.multipart.MultipartFile thumbnail,
                                                                                   @RequestParam(value="defaultTemplate",required=false)
                                                                                   String defaultTemplate)
      • deleteDir

        @RequestMapping(value="{type}/deleteDir",
                        method=POST)
        public org.springframework.web.servlet.view.RedirectView deleteDir​(@PathVariable("type")
                                                                           String type,
                                                                           @RequestParam("path")
                                                                           String path)
      • getTemplates

        @RequestMapping(value="{type}/templates",
                        method=GET,
                        produces="application/json")
        @ResponseBody
        public String getTemplates​(@PathVariable("type")
                                   String type)
      • export

        @RequestMapping(value="{type}/export",
                        method=GET,
                        produces="application/zip")
        @ResponseBody
        public byte[] export​(@PathVariable("type")
                             String type)
                      throws IOException
        Throws:
        IOException