Class GridEditorController

java.lang.Object
sk.iway.iwcm.grideditor.controller.GridEditorController

@RestController @RequestMapping("/admin/grideditor") @PreAuthorize("@WebjetSecurityService.hasPermission(\'menuWebpages\')") public class GridEditorController extends Object
  • Constructor Details

    • GridEditorController

      public GridEditorController()
  • Method Details

    • getTempaltesFavoriteJSON

      @RequestMapping(path="/templates/favorite", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<List<CategoryDto>> getTempaltesFavoriteJSON(@RequestParam(required=false) Integer templateGroupId, javax.servlet.http.HttpServletRequest request)
      vrati vsetky FAVORITE bloky.
      Parameters:
      request -
      Returns:
    • getTempaltesLibraryJSON

      @RequestMapping(path="/templates/library", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<List<CategoryDto>> getTempaltesLibraryJSON(@RequestParam(required=false) Integer templateGroupId, javax.servlet.http.HttpServletRequest request)
      vrati vsetky kategorie vratane vsetkych skupin a blokov aj s html kodmi.
      Parameters:
      request -
      Returns:
    • getSelectGroupJSON

      @RequestMapping(path="/categories", method=GET, produces="application/json") public org.springframework.http.ResponseEntity<List<CategoryDto>> getSelectGroupJSON(@RequestParam(required=false) Integer templateGroupId, javax.servlet.http.HttpServletRequest request)
    • getSidebarJSON

      @RequestMapping(path="/category", method=POST, produces="application/json") public org.springframework.http.ResponseEntity<CategoryDto> getSidebarJSON(@RequestParam(required=false) Integer templateGroupId, @RequestParam String categoryDirId, javax.servlet.http.HttpServletRequest request)
    • deleteElement

      @RequestMapping(path="/delete/element", method=POST, produces="application/json") public org.springframework.http.ResponseEntity<Map<String,Object>> deleteElement(javax.servlet.http.HttpServletRequest request, String filePath, Integer templateGroupId)
    • saveElement

      @RequestMapping(path="/save/element", method=POST, produces="application/json") public org.springframework.http.ResponseEntity<Map<String,Object>> saveElement(javax.servlet.http.HttpServletRequest request, String html, String name, String type, String style, @RequestParam(required=false) Integer templateGroupId)