Class DataTablesController

java.lang.Object
sk.iway.iwcm.system.datatables.DataTablesController

@RestController @RequestMapping("/admin/rest/datatables/") @PreAuthorize("@WebjetSecurityService.isAdmin()") public class DataTablesController extends Object
DataTablesController.java DataTablesController serve as an universal entry point for displaying any data with DataTables. For example of implementation see package sk.iway.iwcm.components.enumerations Title webjet8 Company Interway a.s. (www.interway.sk) Copyright Interway a.s (c) 2001-2018 author $Author: mhruby $ version $Revision: 1.0 $ created Date: 27.03.2018 12:00:00 modified $Date: 27.03.2018 12:0:00 $
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.springframework.http.ResponseEntity<Object>
    index(String string, javax.servlet.http.HttpServletRequest request)
    Index service that lookup controller from url and then display all rows from database
    org.springframework.http.ResponseEntity<Object>
    save(String string, javax.servlet.http.HttpServletRequest request)
    Save service that lookup controller from url and then save/edit row in database.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • DataTablesController

      public DataTablesController()
  • Method Details

    • index

      @GetMapping(path="{string}/list", produces="application/json") public org.springframework.http.ResponseEntity<Object> index(@PathVariable String string, javax.servlet.http.HttpServletRequest request)
      Index service that lookup controller from url and then display all rows from database
      Parameters:
      string - class i.e. sk.iway.iwcm.components.enumerations.EnumerationDataController
      Returns:
    • save

      @RequestMapping(path="{string}/save", method={POST,PUT,DELETE}, produces="application/json") public org.springframework.http.ResponseEntity<Object> save(@PathVariable String string, javax.servlet.http.HttpServletRequest request)
      Save service that lookup controller from url and then save/edit row in database.
      Parameters:
      string - class i.e. sk.iway.iwcm.components.enumerations.EnumerationDataController
      request -
      Returns: